Home
last modified time | relevance | path

Searched refs:ih (Results 1 – 9 of 9) sorted by relevance

/net/ipv4/netfilter/
Dipt_LOG.c40 const struct iphdr *ih; in dump_packet() local
48 ih = skb_header_pointer(skb, iphoff, sizeof(_iph), &_iph); in dump_packet()
49 if (ih == NULL) { in dump_packet()
58 &ih->saddr, &ih->daddr); in dump_packet()
62 ntohs(ih->tot_len), ih->tos & IPTOS_TOS_MASK, in dump_packet()
63 ih->tos & IPTOS_PREC_MASK, ih->ttl, ntohs(ih->id)); in dump_packet()
66 if (ntohs(ih->frag_off) & IP_CE) in dump_packet()
68 if (ntohs(ih->frag_off) & IP_DF) in dump_packet()
70 if (ntohs(ih->frag_off) & IP_MF) in dump_packet()
74 if (ntohs(ih->frag_off) & IP_OFFSET) in dump_packet()
[all …]
/net/netfilter/ipvs/
Dip_vs_proto.c161 struct iphdr _iph, *ih; in ip_vs_tcpudp_debug_packet_v4() local
163 ih = skb_header_pointer(skb, offset, sizeof(_iph), &_iph); in ip_vs_tcpudp_debug_packet_v4()
164 if (ih == NULL) in ip_vs_tcpudp_debug_packet_v4()
166 else if (ih->frag_off & htons(IP_OFFSET)) in ip_vs_tcpudp_debug_packet_v4()
168 pp->name, &ih->saddr, &ih->daddr); in ip_vs_tcpudp_debug_packet_v4()
172 pptr = skb_header_pointer(skb, offset + ih->ihl*4, in ip_vs_tcpudp_debug_packet_v4()
176 pp->name, &ih->saddr, &ih->daddr); in ip_vs_tcpudp_debug_packet_v4()
180 &ih->saddr, ntohs(pptr[0]), in ip_vs_tcpudp_debug_packet_v4()
181 &ih->daddr, ntohs(pptr[1])); in ip_vs_tcpudp_debug_packet_v4()
195 struct ipv6hdr _iph, *ih; in ip_vs_tcpudp_debug_packet_v6() local
[all …]
Dip_vs_proto_ah_esp.c132 struct iphdr _iph, *ih; in ah_esp_debug_packet_v4() local
134 ih = skb_header_pointer(skb, offset, sizeof(_iph), &_iph); in ah_esp_debug_packet_v4()
135 if (ih == NULL) in ah_esp_debug_packet_v4()
139 pp->name, &ih->saddr, &ih->daddr); in ah_esp_debug_packet_v4()
150 struct ipv6hdr _iph, *ih; in ah_esp_debug_packet_v6() local
152 ih = skb_header_pointer(skb, offset, sizeof(_iph), &_iph); in ah_esp_debug_packet_v6()
153 if (ih == NULL) in ah_esp_debug_packet_v6()
157 pp->name, &ih->saddr, &ih->daddr); in ah_esp_debug_packet_v6()
/net/bridge/netfilter/
Debt_log.c107 const struct iphdr *ih; in ebt_log_packet() local
110 ih = skb_header_pointer(skb, 0, sizeof(_iph), &_iph); in ebt_log_packet()
111 if (ih == NULL) { in ebt_log_packet()
116 &ih->saddr, &ih->daddr, ih->tos, ih->protocol); in ebt_log_packet()
117 print_ports(skb, ih->protocol, ih->ihl*4); in ebt_log_packet()
124 const struct ipv6hdr *ih; in ebt_log_packet() local
129 ih = skb_header_pointer(skb, 0, sizeof(_iph), &_iph); in ebt_log_packet()
130 if (ih == NULL) { in ebt_log_packet()
135 &ih->saddr, &ih->daddr, ih->priority, ih->nexthdr); in ebt_log_packet()
136 nexthdr = ih->nexthdr; in ebt_log_packet()
Debt_ip.c31 const struct iphdr *ih; in ebt_ip_mt() local
36 ih = skb_header_pointer(skb, 0, sizeof(_iph), &_iph); in ebt_ip_mt()
37 if (ih == NULL) in ebt_ip_mt()
40 FWINV(info->tos != ih->tos, EBT_IP_TOS)) in ebt_ip_mt()
43 FWINV((ih->saddr & info->smsk) != in ebt_ip_mt()
47 FWINV((ih->daddr & info->dmsk) != in ebt_ip_mt()
51 if (FWINV(info->protocol != ih->protocol, EBT_IP_PROTO)) in ebt_ip_mt()
56 if (ntohs(ih->frag_off) & IP_OFFSET) in ebt_ip_mt()
58 pptr = skb_header_pointer(skb, ih->ihl*4, in ebt_ip_mt()
Debt_among.c72 const struct iphdr *ih; in get_ip_dst() local
75 ih = skb_header_pointer(skb, 0, sizeof(_iph), &_iph); in get_ip_dst()
76 if (ih == NULL) in get_ip_dst()
78 *addr = ih->daddr; in get_ip_dst()
103 const struct iphdr *ih; in get_ip_src() local
106 ih = skb_header_pointer(skb, 0, sizeof(_iph), &_iph); in get_ip_src()
107 if (ih == NULL) in get_ip_src()
109 *addr = ih->saddr; in get_ip_src()
/net/ipv6/netfilter/
Dip6t_LOG.c47 const struct ipv6hdr *ih; in dump_packet() local
57 ih = skb_header_pointer(skb, ip6hoff, sizeof(_ip6h), &_ip6h); in dump_packet()
58 if (ih == NULL) { in dump_packet()
64 printk("SRC=%pI6 DST=%pI6 ", &ih->saddr, &ih->daddr); in dump_packet()
68 ntohs(ih->payload_len) + sizeof(struct ipv6hdr), in dump_packet()
69 (ntohl(*(__be32 *)ih) & 0x0ff00000) >> 20, in dump_packet()
70 ih->hop_limit, in dump_packet()
71 (ntohl(*(__be32 *)ih) & 0x000fffff)); in dump_packet()
75 currenthdr = ih->nexthdr; in dump_packet()
/net/netfilter/
Dnf_conntrack_proto_sctp.c359 sctp_inithdr_t _inithdr, *ih; in sctp_packet() local
361 ih = skb_header_pointer(skb, offset + sizeof(sctp_chunkhdr_t), in sctp_packet()
363 if (ih == NULL) in sctp_packet()
366 ih->init_tag, !dir); in sctp_packet()
367 ct->proto.sctp.vtag[!dir] = ih->init_tag; in sctp_packet()
435 sctp_inithdr_t _inithdr, *ih; in sctp_new() local
437 ih = skb_header_pointer(skb, offset + sizeof(sctp_chunkhdr_t), in sctp_new()
439 if (ih == NULL) in sctp_new()
443 ih->init_tag); in sctp_new()
446 ih->init_tag; in sctp_new()
/net/ipv4/
Digmp.c630 struct igmphdr *ih; in igmp_send_report() local
684 ih = (struct igmphdr *)skb_put(skb, sizeof(struct igmphdr)); in igmp_send_report()
685 ih->type = type; in igmp_send_report()
686 ih->code = 0; in igmp_send_report()
687 ih->csum = 0; in igmp_send_report()
688 ih->group = group; in igmp_send_report()
689 ih->csum = ip_compute_csum((void *)ih, sizeof(struct igmphdr)); in igmp_send_report()
828 struct igmphdr *ih = igmp_hdr(skb); in igmp_heard_query() local
831 __be32 group = ih->group; in igmp_heard_query()
837 if (ih->code == 0) { in igmp_heard_query()
[all …]