/net/ipv6/netfilter/ |
D | ip6t_ah.c | 39 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 …]
|
D | Kconfig | 86 tristate '"ah" match support'
|
/net/bridge/netfilter/ |
D | ebt_arp.c | 23 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 …]
|
D | ebt_log.c | 141 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()
|
D | ebt_among.c | 82 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/ |
D | ah4.c | 128 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 …]
|
D | ip_vti.c | 319 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/ |
D | ah6.c | 293 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 …]
|
D | ip6_vti.c | 606 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/ |
D | ipt_ah.c | 33 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()
|
D | Kconfig | 135 tristate '"ah" match support'
|
/net/netfilter/ |
D | nf_log_syslog.c | 66 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/ |
D | xfrm_interface_core.c | 594 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()
|
D | xfrm_state.c | 242 X(afinfo, type, ah); in xfrm_register_type() 287 X(afinfo, type, ah); in xfrm_unregister_type()
|