Lines Matching defs:ehdr

270 static inline int tipc_ehdr_size(struct tipc_ehdr *ehdr);
735 struct tipc_ehdr *ehdr;
795 ehdr = (struct tipc_ehdr *)skb->data;
798 salt ^= ehdr->addr; /* __be32 */
802 memcpy(iv + 4, (u8 *)&ehdr->seqno, 8);
805 ehsz = tipc_ehdr_size(ehdr);
889 struct tipc_ehdr *ehdr;
920 ehdr = (struct tipc_ehdr *)skb->data;
923 salt ^= ehdr->addr; /* __be32 */
924 else if (ehdr->destined)
927 memcpy(iv + 4, (u8 *)&ehdr->seqno, 8);
930 ehsz = tipc_ehdr_size(ehdr);
993 static inline int tipc_ehdr_size(struct tipc_ehdr *ehdr)
995 return (ehdr->user != LINK_CONFIG) ? EHDR_SIZE : EHDR_CFG_SIZE;
1006 struct tipc_ehdr *ehdr;
1012 ehdr = (struct tipc_ehdr *)skb->data;
1013 if (unlikely(ehdr->version != TIPC_EVERSION))
1015 ehsz = tipc_ehdr_size(ehdr);
1039 struct tipc_ehdr *ehdr;
1047 ehdr = (struct tipc_ehdr *)skb_push(skb, ehsz);
1063 ehdr->seqno = cpu_to_be64(seqno);
1066 ehdr->version = TIPC_EVERSION;
1067 ehdr->user = 0;
1068 ehdr->keepalive = 0;
1069 ehdr->tx_key = tx_key;
1070 ehdr->destined = (__rx) ? 1 : 0;
1071 ehdr->rx_key_active = (__rx) ? __rx->key.active : 0;
1072 ehdr->rx_nokey = (__rx) ? __rx->nokey : 0;
1073 ehdr->master_key = aead->crypto->key_master;
1074 ehdr->reserved_1 = 0;
1075 ehdr->reserved_2 = 0;
1079 ehdr->user = LINK_CONFIG;
1080 memcpy(ehdr->id, tipc_own_id(net), NODE_ID_LEN);
1084 ehdr->user = LINK_PROTOCOL;
1085 ehdr->keepalive = msg_is_keepalive(hdr);
1087 ehdr->addr = hdr->hdr[3];
1373 * @skb: TIPCv2 message buffer (incl. the ehdr from peer)
1387 struct tipc_ehdr *ehdr = (struct tipc_ehdr *)skb_network_header(skb);
1397 rx->key_master = ehdr->master_key;
1402 if (!ehdr->destined || msg_short(hdr) || msg_destnode(hdr) != self)
1406 if (ehdr->rx_nokey) {
1425 new = ehdr->rx_key_active;
1899 struct tipc_ehdr *ehdr;
1922 ehdr = (struct tipc_ehdr *)(*skb)->data;
1924 WARN_ON(ehdr->user != LINK_CONFIG);
1925 n = tipc_node_create(net, 0, ehdr->id, 0xffffu, 0,
1933 if (ehdr->tx_key == KEY_MASTER)
1938 if (tipc_crypto_key_attach(rx, tmp, ehdr->tx_key, false) < 0) {
1958 /* Remove ehdr & auth. tag prior to tipc_rcv() */
1959 ehdr = (struct tipc_ehdr *)(*skb)->data;
1962 if (rx->key.passive && ehdr->tx_key == rx->key.passive)
1966 skb_pull(*skb, tipc_ehdr_size(ehdr));