/linux-2.4.37.9/net/ipv4/ |
D | ipip.c | 300 struct iphdr *iph = (struct iphdr*)skb->data; in ipip_err() 349 struct iphdr *iph = (struct iphdr*)dp; in ipip_err() 351 struct iphdr *eiph; in ipip_err() 360 if (len < hlen + sizeof(struct iphdr)) in ipip_err() 362 eiph = (struct iphdr*)(dp + hlen); in ipip_err() 467 static inline void ipip_ecn_decapsulate(struct iphdr *outer_iph, struct sk_buff *skb) in ipip_ecn_decapsulate() 469 struct iphdr *inner_iph = skb->nh.iph; in ipip_ecn_decapsulate() 478 struct iphdr *iph; in ipip_rcv() 481 if (!pskb_may_pull(skb, sizeof(struct iphdr))) in ipip_rcv() 527 struct iphdr *tiph = &tunnel->parms.iph; in ipip_tunnel_xmit() [all …]
|
D | ip_output.c | 89 __inline__ void ip_send_check(struct iphdr *iph) in ip_send_check() 126 struct iphdr *iph; in ip_build_and_send_pkt() 130 iph=(struct iphdr *)skb_push(skb,sizeof(struct iphdr) + opt->optlen); in ip_build_and_send_pkt() 132 iph=(struct iphdr *)skb_push(skb,sizeof(struct iphdr)); in ip_build_and_send_pkt() 294 struct iphdr *iph = skb->nh.iph; in ip_queue_xmit2() 352 struct iphdr *iph; in ip_queue_xmit() 389 iph = (struct iphdr *) skb_push(skb, sizeof(struct iphdr) + (opt ? opt->optlen : 0)); in ip_queue_xmit() 464 length -= sizeof(struct iphdr); in ip_build_xmit_slow() 467 fragheaderlen = sizeof(struct iphdr) + opt->optlen; in ip_build_xmit_slow() 468 maxfraglen = ((mtu-sizeof(struct iphdr)-opt->optlen) & ~7) + fragheaderlen; in ip_build_xmit_slow() [all …]
|
D | ip_gre.c | 334 struct iphdr *iph = (struct iphdr*)skb->data; in ipgre_err() 402 struct iphdr *iph = (struct iphdr*)dp; in ipgre_err() 403 struct iphdr *eiph; in ipgre_err() 429 if (len < grehlen + sizeof(struct iphdr)) in ipgre_err() 431 eiph = (struct iphdr*)(dp + grehlen); in ipgre_err() 535 static inline void ipgre_ecn_decapsulate(struct iphdr *iph, struct sk_buff *skb) in ipgre_ecn_decapsulate() 549 ipgre_ecn_encapsulate(u8 tos, struct iphdr *old_iph, struct sk_buff *skb) in ipgre_ecn_encapsulate() 561 struct iphdr *iph; in ipgre_rcv() 672 struct iphdr *old_iph = skb->nh.iph; in ipgre_tunnel_xmit() 673 struct iphdr *tiph; in ipgre_tunnel_xmit() [all …]
|
D | ip_options.c | 42 memcpy(iph+sizeof(struct iphdr), opt->__data, opt->optlen); in ip_options_build() 114 dopt->rr = dopt->optlen + sizeof(struct iphdr); in ip_options_echo() 128 dopt->ts = dopt->optlen + sizeof(struct iphdr); in ip_options_echo() 189 dopt->srr = dopt->optlen + sizeof(struct iphdr); in ip_options_echo() 258 opt->optlen = ((struct iphdr *)iph)->ihl*4 - sizeof(struct iphdr); in ip_options_compile() 259 optptr = iph + sizeof(struct iphdr); in ip_options_compile() 263 iph = optptr - sizeof(struct iphdr); in ip_options_compile() 467 unsigned char * optptr = opt->__data+opt->srr-sizeof(struct iphdr); in ip_options_undo() 472 unsigned char * optptr = opt->__data+opt->rr-sizeof(struct iphdr); in ip_options_undo() 477 unsigned char * optptr = opt->__data+opt->ts-sizeof(struct iphdr); in ip_options_undo() [all …]
|
D | icmp.c | 375 struct iphdr *iph; in icmp_send() 503 room -= sizeof(struct iphdr) + icmp_param.replyopts.optlen; in icmp_send() 528 struct iphdr *iph; in icmp_unreach() 541 if (!pskb_may_pull(skb, sizeof(struct iphdr))) { in icmp_unreach() 547 iph = (struct iphdr *) skb->data; in icmp_unreach() 625 iph = (struct iphdr *) skb->data; in icmp_unreach() 641 iph = (struct iphdr *)skb->data; in icmp_unreach() 680 struct iphdr *iph; in icmp_redirect() 683 if (skb->len < sizeof(struct iphdr)) { in icmp_redirect() 691 if (!pskb_may_pull(skb, sizeof(struct iphdr))) in icmp_redirect() [all …]
|
D | ipmr.c | 204 dev->mtu = 1500 - sizeof(struct iphdr) - 8; in ipmr_reg_vif() 299 struct nlmsghdr *nlh = (struct nlmsghdr *)skb_pull(skb, sizeof(struct iphdr)); in ipmr_destroy_unres() 508 struct nlmsghdr *nlh = (struct nlmsghdr *)skb_pull(skb, sizeof(struct iphdr)); in ipmr_cache_resolve() 543 skb = skb_realloc_headroom(pkt, sizeof(struct iphdr)); in ipmr_cache_report() 558 msg = (struct igmpmsg*)skb_push(skb, sizeof(struct iphdr)); in ipmr_cache_report() 560 memcpy(msg, pkt->nh.raw, sizeof(struct iphdr)); in ipmr_cache_report() 564 skb->nh.iph->ihl = sizeof(struct iphdr) >> 2; in ipmr_cache_report() 565 skb->nh.iph->tot_len = htons(ntohs(pkt->nh.iph->tot_len) + sizeof(struct iphdr)); in ipmr_cache_report() 574 skb->nh.iph = (struct iphdr *)skb_put(skb, ihl); in ipmr_cache_report() 1089 struct iphdr *iph = (struct iphdr *)skb_push(skb,sizeof(struct iphdr)); in ip_encap() [all …]
|
D | ip_nat_dumb.c | 50 struct iphdr *iph = skb->nh.iph; in ip_do_nat() 95 struct iphdr *ciph; in ip_do_nat() 104 ciph = (struct iphdr *) (icmph + 1); in ip_do_nat()
|
D | ip_input.c | 198 static int ip_run_ipprot(struct sk_buff *skb, struct iphdr *iph, in ip_run_ipprot() 306 struct iphdr *iph = skb->nh.iph; in ip_rcv_finish() 378 struct iphdr *iph; in ip_rcv() 391 if (!pskb_may_pull(skb, sizeof(struct iphdr))) in ip_rcv()
|
/linux-2.4.37.9/net/ipv4/netfilter/ |
D | ipt_LOG.c | 41 struct iphdr *iph, unsigned int len, int recurse) in dump_packet() 70 && iph->ihl * 4 > sizeof(struct iphdr) in dump_packet() 76 for (i = sizeof(struct iphdr); i < iph->ihl * 4; i++) in dump_packet() 167 = 8 + sizeof(struct iphdr) + 8, in dump_packet() 169 = 8 + sizeof(struct iphdr) + 8, in dump_packet() 171 = 8 + sizeof(struct iphdr) + 8, in dump_packet() 174 = 8 + sizeof(struct iphdr) + 8, in dump_packet() 176 = 8 + sizeof(struct iphdr) + 8, in dump_packet() 230 (struct iphdr *)(icmph + 1), in dump_packet() 309 struct iphdr *iph = (*pskb)->nh.iph; in ipt_log_target()
|
D | ipt_unclean.c | 34 check_ip(struct iphdr *iph, size_t length, int embedded); 109 struct iphdr *inner = (void *)icmph + 8; in check_icmp() 113 if (datalen - 8 < sizeof(struct iphdr)) { in check_icmp() 156 struct iphdr *iph = (void *)icmph + 8; in check_icmp() 195 check_udp(const struct iphdr *iph, in check_udp() 283 check_tcp(const struct iphdr *iph, in check_tcp() 402 check_ip(struct iphdr *iph, size_t length, int embedded) in check_ip() 414 if (length < sizeof(struct iphdr) || length < iph->ihl * 4) { in check_ip() 429 for (i = sizeof(struct iphdr); i < iph->ihl * 4; ) { in check_ip()
|
D | ipt_REJECT.c | 27 struct iphdr *iph = skb->nh.iph; in route_reverse() 190 struct iphdr *iph; in send_unreach() 259 length = skb_in->len + sizeof(struct iphdr) + sizeof(struct icmphdr); in send_unreach() 280 = (struct iphdr *)skb_put(nskb, sizeof(struct iphdr)); in send_unreach() 307 length - sizeof(struct iphdr) - sizeof(struct icmphdr)); in send_unreach() 310 length - sizeof(struct iphdr) - sizeof(struct icmphdr)); in send_unreach() 312 length - sizeof(struct iphdr)); in send_unreach() 331 if ((*pskb)->nh.iph->ihl<<2 != sizeof(struct iphdr)) in reject()
|
D | ipt_ecn.c | 22 const struct iphdr *iph, in match_ip() 29 const struct iphdr *iph, in match_tcp() 63 const struct iphdr *iph = skb->nh.iph; in match()
|
D | ip_conntrack_proto_generic.c | 43 struct iphdr *iph, size_t len, in established() 52 new(struct ip_conntrack *conntrack, struct iphdr *iph, size_t len) in new()
|
D | ip_nat_standalone.c | 94 struct iphdr *iph = (*pskb)->nh.iph; in ip_nat_fn() 193 if ((*pskb)->len < sizeof(struct iphdr) in ip_nat_out() 194 || (*pskb)->nh.iph->ihl * 4 < sizeof(struct iphdr)) in ip_nat_out() 228 if ((*pskb)->len < sizeof(struct iphdr) in ip_nat_local_fn() 229 || (*pskb)->nh.iph->ihl * 4 < sizeof(struct iphdr)) in ip_nat_local_fn()
|
D | ip_fw_compat_redir.c | 98 struct iphdr *iph = skb->nh.iph; in do_tcp_redir() 138 struct iphdr *iph = skb->nh.iph; in do_tcp_unredir() 170 struct iphdr *iph = skb->nh.iph; in do_redirect() 256 struct iphdr *iph = skb->nh.iph; in check_for_redirect() 284 struct iphdr *iph = skb->nh.iph; in check_for_unredirect()
|
D | ipt_ECN.c | 25 set_ect_ip(struct sk_buff **pskb, struct iphdr *iph, in set_ect_ip() 58 set_ect_tcp(struct sk_buff **pskb, struct iphdr *iph, in set_ect_tcp() 114 struct iphdr *iph = (*pskb)->nh.iph; in target()
|
D | ipt_MIRROR.c | 45 struct iphdr *iph = skb->nh.iph; in route_mirror() 85 struct iphdr *iph = skb->nh.iph; in ip_rewrite() 133 struct iphdr *iph = (*pskb)->nh.iph; in ipt_mirror_target()
|
D | ip_conntrack_proto_udp.c | 49 struct iphdr *iph, size_t len, in udp_packet() 66 struct iphdr *iph, size_t len) in udp_new()
|
D | ipt_TCPMSS.c | 47 struct iphdr *iph; in ipt_tcpmss_target() 88 if((*pskb)->dst->pmtu <= (sizeof(struct iphdr) + sizeof(struct tcphdr))) { in ipt_tcpmss_target() 95 newmss = (*pskb)->dst->pmtu - sizeof(struct iphdr) - sizeof(struct tcphdr); in ipt_tcpmss_target()
|
/linux-2.4.37.9/net/ipv6/ |
D | sit.c | 241 struct iphdr *iph = (struct iphdr*)skb->data; in ipip6_err() 290 struct iphdr *iph = (struct iphdr*)dp; in ipip6_err() 376 static inline void ipip6_ecn_decapsulate(struct iphdr *iph, struct sk_buff *skb) in ipip6_ecn_decapsulate() 385 struct iphdr *iph; in ipip6_rcv() 449 struct iphdr *tiph = &tunnel->parms.iph; in ipip6_tunnel_xmit() 454 struct iphdr *iph; /* Our new IP header */ in ipip6_tunnel_xmit() 516 mtu = rt->u.dst.pmtu - sizeof(struct iphdr); in ipip6_tunnel_xmit() 553 max_headroom = (((tdev->hard_header_len+15)&~15)+sizeof(struct iphdr)); in ipip6_tunnel_xmit() 572 skb->nh.raw = skb_push(skb, sizeof(struct iphdr)); in ipip6_tunnel_xmit() 583 iph->ihl = sizeof(struct iphdr)>>2; in ipip6_tunnel_xmit() [all …]
|
/linux-2.4.37.9/net/ipv4/ipvs/ |
D | ip_vs_core.c | 155 ip_vs_sched_persist(struct ip_vs_service *svc, struct iphdr *iph) in ip_vs_sched_persist() 330 ip_vs_schedule(struct ip_vs_service *svc, struct iphdr *iph) in ip_vs_schedule() 397 struct iphdr *iph = skb->nh.iph; in ip_vs_leave() 498 struct iphdr *iph; in ip_vs_out_icmp() 500 struct iphdr *ciph; /* The ip header contained within the ICMP */ in ip_vs_out_icmp() 546 if (clen < sizeof(struct iphdr)) in ip_vs_out_icmp() 548 ciph = (struct iphdr *) (icmph + 1); in ip_vs_out_icmp() 640 struct iphdr *iph; in ip_vs_out() 855 struct iphdr *iph; in ip_vs_in_icmp() 857 struct iphdr *ciph; /* The ip header contained within the ICMP */ in ip_vs_in_icmp() [all …]
|
/linux-2.4.37.9/include/linux/netfilter_ipv4/ |
D | ip_nat_protocol.h | 7 struct iphdr; 22 void (*manip_pkt)(struct iphdr *iph, size_t len,
|
D | ip_conntrack_protocol.h | 37 struct iphdr *iph, size_t len, 42 int (*new)(struct ip_conntrack *conntrack, struct iphdr *iph,
|
/linux-2.4.37.9/include/net/ |
D | dsfield.h | 15 static inline __u8 ipv4_get_dsfield(struct iphdr *iph) in ipv4_get_dsfield() 27 static inline void ipv4_change_dsfield(struct iphdr *iph,__u8 mask, in ipv4_change_dsfield()
|
D | ip.h | 98 extern void ip_send_check(struct iphdr *ip); 175 int ip_decrease_ttl(struct iphdr *iph) in ip_decrease_ttl() 191 extern void __ip_select_ident(struct iphdr *iph, struct dst_entry *dst); 193 static inline void ip_select_ident(struct iphdr *iph, struct dst_entry *dst, struct sock *sk) in ip_select_ident()
|