Home
last modified time | relevance | path

Searched refs:ah (Results 1 – 12 of 12) sorted by relevance

/net/ipv6/netfilter/
Dip6t_ah.c42 const struct ip_auth_hdr *ah; in ah_mt6() local
55 ah = skb_header_pointer(skb, ptr, sizeof(_ah), &_ah); in ah_mt6()
56 if (ah == NULL) { in ah_mt6()
61 hdrlen = (ah->hdrlen + 2) << 2; in ah_mt6()
63 pr_debug("IPv6 AH LEN %u %u ", hdrlen, ah->hdrlen); in ah_mt6()
64 pr_debug("RES %04X ", ah->reserved); in ah_mt6()
65 pr_debug("SPI %u %08X\n", ntohl(ah->spi), ntohl(ah->spi)); in ah_mt6()
69 ntohl(ah->spi), in ah_mt6()
77 ahinfo->hdrres, ah->reserved, in ah_mt6()
78 !(ahinfo->hdrres && ah->reserved)); in ah_mt6()
[all …]
Dip6t_LOG.c133 const struct ip_auth_hdr *ah; in dump_packet() local
143 ah = skb_header_pointer(skb, ptr, sizeof(_ahdr), in dump_packet()
145 if (ah == NULL) { in dump_packet()
156 printk("SPI=0x%x ", ntohl(ah->spi)); in dump_packet()
DKconfig62 tristate '"ah" match support'
/net/ipv4/
Dah4.c61 struct ip_auth_hdr *ah; in ah_output() local
84 ah = ip_auth_hdr(skb); in ah_output()
85 ah->nexthdr = *skb_mac_header(skb); in ah_output()
95 ah->hdrlen = (XFRM_ALIGN8(sizeof(*ah) + ahp->icv_trunc_len) >> 2) - 2; in ah_output()
97 ah->reserved = 0; in ah_output()
98 ah->spi = x->id.spi; in ah_output()
99 ah->seq_no = htonl(XFRM_SKB_CB(skb)->seq.output); in ah_output()
102 err = ah_mac_digest(ahp, skb, ah->auth_data); in ah_output()
103 memcpy(ah->auth_data, ahp->work_icv, ahp->icv_trunc_len); in ah_output()
130 struct ip_auth_hdr *ah; in ah_input() local
[all …]
/net/bridge/netfilter/
Debt_arp.c22 const struct arphdr *ah; in ebt_arp_mt() local
25 ah = skb_header_pointer(skb, 0, sizeof(_arph), &_arph); in ebt_arp_mt()
26 if (ah == NULL) in ebt_arp_mt()
29 ah->ar_op, EBT_ARP_OPCODE)) in ebt_arp_mt()
32 ah->ar_hrd, EBT_ARP_HTYPE)) in ebt_arp_mt()
35 ah->ar_pro, EBT_ARP_PTYPE)) in ebt_arp_mt()
42 if (ah->ar_pln != sizeof(__be32) || ah->ar_pro != htons(ETH_P_IP)) in ebt_arp_mt()
45 ah->ar_hln, sizeof(saddr), in ebt_arp_mt()
50 2*ah->ar_hln+sizeof(saddr), in ebt_arp_mt()
70 if (ah->ar_hln != ETH_ALEN || ah->ar_hrd != htons(ARPHRD_ETHER)) in ebt_arp_mt()
[all …]
Debt_among.c80 const struct arphdr *ah; in get_ip_dst() local
85 ah = skb_header_pointer(skb, 0, sizeof(_arph), &_arph); in get_ip_dst()
86 if (ah == NULL || in get_ip_dst()
87 ah->ar_pln != sizeof(__be32) || in get_ip_dst()
88 ah->ar_hln != ETH_ALEN) in get_ip_dst()
111 const struct arphdr *ah; in get_ip_src() local
116 ah = skb_header_pointer(skb, 0, sizeof(_arph), &_arph); in get_ip_src()
117 if (ah == NULL || in get_ip_src()
118 ah->ar_pln != sizeof(__be32) || in get_ip_src()
119 ah->ar_hln != ETH_ALEN) in get_ip_src()
Debt_log.c148 const struct arphdr *ah; in ebt_log_packet() local
151 ah = skb_header_pointer(skb, 0, sizeof(_arph), &_arph); in ebt_log_packet()
152 if (ah == NULL) { in ebt_log_packet()
157 ntohs(ah->ar_hrd), ntohs(ah->ar_pro), in ebt_log_packet()
158 ntohs(ah->ar_op)); in ebt_log_packet()
162 if (ah->ar_hrd == htons(1) && in ebt_log_packet()
163 ah->ar_hln == ETH_ALEN && in ebt_log_packet()
164 ah->ar_pln == sizeof(__be32)) { in ebt_log_packet()
/net/ipv6/
Dah6.c226 struct ip_auth_hdr *ah; in ah6_output() local
272 ah = ip_auth_hdr(skb); in ah6_output()
273 ah->nexthdr = nexthdr; in ah6_output()
282 ah->hdrlen = (XFRM_ALIGN8(sizeof(*ah) + ahp->icv_trunc_len) >> 2) - 2; in ah6_output()
284 ah->reserved = 0; in ah6_output()
285 ah->spi = x->id.spi; in ah6_output()
286 ah->seq_no = htonl(XFRM_SKB_CB(skb)->seq.output); in ah6_output()
289 err = ah_mac_digest(ahp, skb, ah->auth_data); in ah6_output()
290 memcpy(ah->auth_data, ahp->work_icv, ahp->icv_trunc_len); in ah6_output()
328 struct ip_auth_hdr *ah; in ah6_input() local
[all …]
/net/econet/
Daf_econet.c279 struct aunhdr ah; in econet_sendmsg() local
441 ah.port = port; in econet_sendmsg()
442 ah.cb = cb & 0x7f; in econet_sendmsg()
443 ah.code = 2; /* magic */ in econet_sendmsg()
444 ah.pad = 0; in econet_sendmsg()
456 iov[0].iov_base = (void *)&ah; in econet_sendmsg()
484 ah.handle = aun_seq; in econet_sendmsg()
831 struct aunhdr ah = {.code = code, .cb = cb, .handle = seq}; in aun_send_response() local
832 struct kvec iov = {.iov_base = (void *)&ah, .iov_len = sizeof(ah)}; in aun_send_response()
841 kernel_sendmsg(udpsock, &udpmsg, &iov, 1, sizeof(ah)); in aun_send_response()
[all …]
/net/ipv4/netfilter/
Dipt_ah.c42 const struct ip_auth_hdr *ah; in ah_mt() local
49 ah = skb_header_pointer(skb, par->thoff, sizeof(_ahdr), &_ahdr); in ah_mt()
50 if (ah == NULL) { in ah_mt()
60 ntohl(ah->spi), in ah_mt()
Dipt_LOG.c288 const struct ip_auth_hdr *ah; in dump_packet() local
297 ah = skb_header_pointer(skb, iphoff+ih->ihl*4, in dump_packet()
299 if (ah == NULL) { in dump_packet()
306 printk("SPI=0x%x ", ntohl(ah->spi)); in dump_packet()
DKconfig78 tristate '"ah" match support'