/net/ipv6/netfilter/ |
D | ip6t_ah.c | 42 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 …]
|
D | ip6t_LOG.c | 133 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()
|
D | Kconfig | 62 tristate '"ah" match support'
|
/net/ipv4/ |
D | ah4.c | 61 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/ |
D | ebt_arp.c | 22 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 …]
|
D | ebt_among.c | 80 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()
|
D | ebt_log.c | 148 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/ |
D | ah6.c | 226 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/ |
D | af_econet.c | 279 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/ |
D | ipt_ah.c | 42 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()
|
D | ipt_LOG.c | 288 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()
|
D | Kconfig | 78 tristate '"ah" match support'
|