Lines Matching refs:hdr
85 struct tipc_msg *hdr; in tipc_disc_init_msg() local
87 hdr = buf_msg(skb); in tipc_disc_init_msg()
88 tipc_msg_init(tn->trial_addr, hdr, LINK_CONFIG, mtyp, in tipc_disc_init_msg()
90 msg_set_size(hdr, MAX_H_SIZE + NODE_ID_LEN); in tipc_disc_init_msg()
91 msg_set_non_seq(hdr, 1); in tipc_disc_init_msg()
92 msg_set_node_sig(hdr, tn->random); in tipc_disc_init_msg()
93 msg_set_node_capabilities(hdr, TIPC_NODE_CAPABILITIES); in tipc_disc_init_msg()
94 msg_set_dest_domain(hdr, dest_domain); in tipc_disc_init_msg()
95 msg_set_bc_netid(hdr, tn->net_id); in tipc_disc_init_msg()
96 b->media->addr2msg(msg_media_addr(hdr), &b->addr); in tipc_disc_init_msg()
97 msg_set_peer_net_hash(hdr, tipc_net_hash_mixes(net, tn->random)); in tipc_disc_init_msg()
98 msg_set_node_id(hdr, tipc_own_id(net)); in tipc_disc_init_msg()
106 struct tipc_msg *hdr; in tipc_disc_msg_xmit() local
112 hdr = buf_msg(skb); in tipc_disc_msg_xmit()
114 msg_set_sugg_node_addr(hdr, sugg_addr); in tipc_disc_msg_xmit()
115 msg_set_dest_domain(hdr, dst); in tipc_disc_msg_xmit()
196 struct tipc_msg *hdr = buf_msg(skb); in tipc_disc_rcv() local
197 u32 pnet_hash = msg_peer_net_hash(hdr); in tipc_disc_rcv()
198 u16 caps = msg_node_capabilities(hdr); in tipc_disc_rcv()
200 u32 sugg = msg_sugg_node_addr(hdr); in tipc_disc_rcv()
201 u32 signature = msg_node_sig(hdr); in tipc_disc_rcv()
203 u32 dst = msg_dest_domain(hdr); in tipc_disc_rcv()
204 u32 net_id = msg_bc_netid(hdr); in tipc_disc_rcv()
206 u32 src = msg_prevnode(hdr); in tipc_disc_rcv()
207 u32 mtyp = msg_type(hdr); in tipc_disc_rcv()
217 hdr = buf_msg(skb); in tipc_disc_rcv()
220 memcpy(peer_id, msg_node_id(hdr), NODE_ID_LEN); in tipc_disc_rcv()
224 err = b->media->msg2addr(b, &maddr, msg_media_addr(hdr)); in tipc_disc_rcv()