Home
last modified time | relevance | path

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

/net/ipv6/netfilter/
Dip6t_ah.c39 const struct ip_auth_hdr *ah; in ah_mt6() local
52 ah = skb_header_pointer(skb, ptr, sizeof(_ah), &_ah); in ah_mt6()
53 if (ah == NULL) { in ah_mt6()
58 hdrlen = ipv6_authlen(ah); in ah_mt6()
60 pr_debug("IPv6 AH LEN %u %u ", hdrlen, ah->hdrlen); in ah_mt6()
61 pr_debug("RES %04X ", ah->reserved); in ah_mt6()
62 pr_debug("SPI %u %08X\n", ntohl(ah->spi), ntohl(ah->spi)); in ah_mt6()
66 ntohl(ah->spi), in ah_mt6()
74 ahinfo->hdrres, ah->reserved, in ah_mt6()
75 !(ahinfo->hdrres && ah->reserved)); in ah_mt6()
[all …]
DKconfig86 tristate '"ah" match support'
/net/bridge/netfilter/
Debt_arp.c23 const struct arphdr *ah; in ebt_arp_mt() local
26 ah = skb_header_pointer(skb, 0, sizeof(_arph), &_arph); in ebt_arp_mt()
27 if (ah == NULL) in ebt_arp_mt()
30 NF_INVF(info, EBT_ARP_OPCODE, info->opcode != ah->ar_op)) in ebt_arp_mt()
33 NF_INVF(info, EBT_ARP_HTYPE, info->htype != ah->ar_hrd)) in ebt_arp_mt()
36 NF_INVF(info, EBT_ARP_PTYPE, info->ptype != ah->ar_pro)) in ebt_arp_mt()
43 if (ah->ar_pln != sizeof(__be32) || ah->ar_pro != htons(ETH_P_IP)) in ebt_arp_mt()
46 ah->ar_hln, sizeof(saddr), in ebt_arp_mt()
51 2*ah->ar_hln+sizeof(saddr), in ebt_arp_mt()
72 if (ah->ar_hln != ETH_ALEN || ah->ar_hrd != htons(ARPHRD_ETHER)) in ebt_arp_mt()
[all …]
Debt_log.c141 const struct arphdr *ah; in ebt_log_packet() local
144 ah = skb_header_pointer(skb, 0, sizeof(_arph), &_arph); in ebt_log_packet()
145 if (ah == NULL) { in ebt_log_packet()
150 ntohs(ah->ar_hrd), ntohs(ah->ar_pro), in ebt_log_packet()
151 ntohs(ah->ar_op)); in ebt_log_packet()
156 if (ah->ar_hrd == htons(1) && in ebt_log_packet()
157 ah->ar_hln == ETH_ALEN && in ebt_log_packet()
158 ah->ar_pln == sizeof(__be32)) { in ebt_log_packet()
Debt_among.c82 const struct arphdr *ah; in get_ip_dst() local
87 ah = skb_header_pointer(skb, 0, sizeof(_arph), &_arph); in get_ip_dst()
88 if (ah == NULL || in get_ip_dst()
89 ah->ar_pln != sizeof(__be32) || in get_ip_dst()
90 ah->ar_hln != ETH_ALEN) in get_ip_dst()
113 const struct arphdr *ah; in get_ip_src() local
118 ah = skb_header_pointer(skb, 0, sizeof(_arph), &_arph); in get_ip_src()
119 if (ah == NULL || in get_ip_src()
120 ah->ar_pln != sizeof(__be32) || in get_ip_src()
121 ah->ar_hln != ETH_ALEN) in get_ip_src()
/net/ipv4/
Dah4.c128 struct ip_auth_hdr *ah = ip_auth_hdr(skb); in ah_output_done() local
133 memcpy(ah->auth_data, icv, ahp->icv_trunc_len); in ah_output_done()
158 struct ip_auth_hdr *ah; in ah_output() local
173 ah = ip_auth_hdr(skb); in ah_output()
190 memset(ah->auth_data, 0, ahp->icv_trunc_len); in ah_output()
206 ah->nexthdr = *skb_mac_header(skb); in ah_output()
216 ah->hdrlen = (XFRM_ALIGN4(sizeof(*ah) + ahp->icv_trunc_len) >> 2) - 2; in ah_output()
218 ah->hdrlen = (XFRM_ALIGN8(sizeof(*ah) + ahp->icv_trunc_len) >> 2) - 2; in ah_output()
220 ah->reserved = 0; in ah_output()
221 ah->spi = x->id.spi; in ah_output()
[all …]
Dip_vti.c319 struct ip_auth_hdr *ah ; in vti4_err() local
339 ah = (struct ip_auth_hdr *)(skb->data+(iph->ihl<<2)); in vti4_err()
340 spi = ah->spi; in vti4_err()
/net/ipv6/
Dah6.c293 struct ip_auth_hdr *ah = ip_auth_hdr(skb); in ah6_output_done() local
304 memcpy(ah->auth_data, icv, ahp->icv_trunc_len); in ah6_output_done()
332 struct ip_auth_hdr *ah; in ah6_output() local
370 ah = ip_auth_hdr(skb); in ah6_output()
371 memset(ah->auth_data, 0, ahp->icv_trunc_len); in ah6_output()
398 ah->nexthdr = nexthdr; in ah6_output()
406 ah->hdrlen = (XFRM_ALIGN8(sizeof(*ah) + ahp->icv_trunc_len) >> 2) - 2; in ah6_output()
408 ah->reserved = 0; in ah6_output()
409 ah->spi = x->id.spi; in ah6_output()
410 ah->seq_no = htonl(XFRM_SKB_CB(skb)->seq.output.low); in ah6_output()
[all …]
Dip6_vti.c606 struct ip_auth_hdr *ah; in vti6_err() local
624 ah = (struct ip_auth_hdr *)(skb->data + offset); in vti6_err()
625 spi = ah->spi; in vti6_err()
/net/ipv4/netfilter/
Dipt_ah.c33 const struct ip_auth_hdr *ah; in ah_mt() local
40 ah = skb_header_pointer(skb, par->thoff, sizeof(_ahdr), &_ahdr); in ah_mt()
41 if (ah == NULL) { in ah_mt()
51 ntohl(ah->spi), in ah_mt()
DKconfig135 tristate '"ah" match support'
/net/netfilter/
Dnf_log_syslog.c66 const struct arphdr *ah; in dump_arp_packet() local
70 ah = skb_header_pointer(skb, nhoff, sizeof(_arph), &_arph); in dump_arp_packet()
71 if (!ah) { in dump_arp_packet()
90 ntohs(ah->ar_hrd), ntohs(ah->ar_pro), ntohs(ah->ar_op)); in dump_arp_packet()
94 if (ah->ar_hrd != htons(ARPHRD_ETHER) || in dump_arp_packet()
95 ah->ar_hln != ETH_ALEN || in dump_arp_packet()
96 ah->ar_pln != sizeof(__be32)) in dump_arp_packet()
459 const struct ip_auth_hdr *ah; in dump_ipv4_packet() local
469 ah = skb_header_pointer(skb, iphoff + ih->ihl * 4, in dump_ipv4_packet()
471 if (!ah) { in dump_ipv4_packet()
[all …]
/net/xfrm/
Dxfrm_interface_core.c594 struct ip_auth_hdr *ah ; in xfrmi4_err() local
605 ah = (struct ip_auth_hdr *)(skb->data+(iph->ihl<<2)); in xfrmi4_err()
606 spi = ah->spi; in xfrmi4_err()
655 struct ip_auth_hdr *ah; in xfrmi6_err() local
666 ah = (struct ip_auth_hdr *)(skb->data + offset); in xfrmi6_err()
667 spi = ah->spi; in xfrmi6_err()
Dxfrm_state.c242 X(afinfo, type, ah); in xfrm_register_type()
287 X(afinfo, type, ah); in xfrm_unregister_type()