tag | line | file | source code |
iphdr | 77 | drivers/net/new_tunnel.c | #define tunnel_hlen sizeof(struct iphdr) |
iphdr | 104 | drivers/net/new_tunnel.c | void print_ip(struct iphdr *ip) |
iphdr | 132 | drivers/net/new_tunnel.c | struct iphdr *iph; /* Our new IP header */ |
iphdr | 166 | drivers/net/new_tunnel.c | iph = (struct iphdr *) skb->data; |
iphdr | 235 | drivers/net/new_tunnel.c | skb->h.iph = (struct iphdr *) skb_push(skb, tunnel_hlen); |
iphdr | 260 | drivers/net/new_tunnel.c | new_skb->ip_hdr = (struct iphdr *) skb_put(new_skb, skb->len); |
iphdr | 266 | drivers/net/new_tunnel.c | new_skb->h.iph = (struct iphdr *) skb_push(new_skb, tunnel_hlen); |
iphdr | 2856 | drivers/net/ppp.c | len = ((struct iphdr *)data) -> tot_len; |
iphdr | 251 | drivers/net/slhc.c | struct iphdr *ip; |
iphdr | 254 | drivers/net/slhc.c | ip = (struct iphdr *) icp; |
iphdr | 497 | drivers/net/slhc.c | register struct iphdr *ip; |
iphdr | 623 | drivers/net/slhc.c | stw_u(ip_fast_csum(icp, ip->ihl), &((struct iphdr *)icp)->check); |
iphdr | 625 | drivers/net/slhc.c | ((struct iphdr *)icp)->check = ip_fast_csum(icp, ((struct iphdr*)icp)->ihl); |
iphdr | 682 | drivers/net/slhc.c | memcpy(cs->cs_ipopt, icp + sizeof(struct iphdr), (ihl - 5) * 4); |
iphdr | 127 | drivers/net/slhc.h | struct iphdr cs_ip; /* ip/tcp hdr from most recent packet */ |
iphdr | 160 | include/linux/ip_fw.h | struct iphdr fwp_iph; /* IP header */ |
iphdr | 206 | include/linux/ip_fw.h | extern void ip_acct_cnt(struct iphdr *, struct device *, struct ip_fw *); |
iphdr | 211 | include/linux/ip_fw.h | extern int ip_fw_chk(struct iphdr *, struct device *rif,struct ip_fw *, int, int); |
iphdr | 63 | include/linux/skbuff.h | struct iphdr *iph; |
iphdr | 77 | include/linux/skbuff.h | struct iphdr *ip_hdr; /* For IPPROTO_RAW */ |
iphdr | 71 | include/net/ip.h | struct iphdr *iph; /* pointer to IP header */ |
iphdr | 86 | include/net/ip.h | extern void ip_print(const struct iphdr *ip); |
iphdr | 102 | include/net/ip.h | extern void ip_send_check(struct iphdr *ip); |
iphdr | 129 | include/net/ip.h | struct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev); |
iphdr | 822 | net/core/skbuff.c | n->ip_hdr=(struct iphdr *)(((char *)skb->ip_hdr)+offset); |
iphdr | 272 | net/ethernet/eth.c | struct iphdr *iph; |
iphdr | 288 | net/ethernet/eth.c | memcpy(dest->data,src,sizeof(struct iphdr)+ETH_HLEN); /* ethernet is always >= 34 */ |
iphdr | 289 | net/ethernet/eth.c | length -= sizeof(struct iphdr) + ETH_HLEN; |
iphdr | 290 | net/ethernet/eth.c | iph=(struct iphdr*)(src+ETH_HLEN); |
iphdr | 291 | net/ethernet/eth.c | ip_length = ntohs(iph->tot_len) - sizeof(struct iphdr); |
iphdr | 297 | net/ethernet/eth.c | dest->csum=csum_partial_copy(src+sizeof(struct iphdr)+ETH_HLEN,dest->data+sizeof(struct iphdr)+ETH_HLEN,length,base); |
iphdr | 256 | net/ipv4/icmp.c | struct iphdr *iph; |
iphdr | 342 | net/ipv4/icmp.c | struct iphdr *iph; |
iphdr | 347 | net/ipv4/icmp.c | iph = (struct iphdr *) (icmph + 1); |
iphdr | 484 | net/ipv4/icmp.c | struct iphdr *iph; |
iphdr | 491 | net/ipv4/icmp.c | iph = (struct iphdr *) (icmph + 1); |
iphdr | 236 | net/ipv4/igmp.c | #define MAX_IGMP_SIZE (sizeof(struct igmphdr)+sizeof(struct iphdr)+64) |
iphdr | 52 | net/ipv4/ip_forward.c | struct iphdr *iph=(struct iphdr *)skb_push(skb,sizeof(struct iphdr)); |
iphdr | 90 | net/ipv4/ip_forward.c | struct iphdr *iph; /* Our header */ |
iphdr | 117 | net/ipv4/ip_fragment.c | static struct ipq *ip_find(struct iphdr *iph) |
iphdr | 241 | net/ipv4/ip_fragment.c | static struct ipq *ip_create(struct sk_buff *skb, struct iphdr *iph, struct device *dev) |
iphdr | 260 | net/ipv4/ip_fragment.c | qp->iph = (struct iphdr *) frag_kmalloc(64 + 8, GFP_ATOMIC); |
iphdr | 332 | net/ipv4/ip_fragment.c | struct iphdr *iph; |
iphdr | 397 | net/ipv4/ip_fragment.c | struct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev) |
iphdr | 608 | net/ipv4/ip_fragment.c | struct iphdr *iph; |
iphdr | 621 | net/ipv4/ip_fragment.c | iph = (struct iphdr *) (raw + dev->hard_header_len); |
iphdr | 744 | net/ipv4/ip_fragment.c | iph = (struct iphdr *)(skb2->h.raw/*+dev->hard_header_len*/); |
iphdr | 203 | net/ipv4/ip_fw.c | int ip_fw_chk(struct iphdr *ip, struct device *rif, struct ip_fw *chain, int policy, int opt) |
iphdr | 618 | net/ipv4/ip_fw.c | struct iphdr *iph = skb->h.iph; |
iphdr | 815 | net/ipv4/ip_fw.c | struct iphdr *iph = skb->h.iph; |
iphdr | 933 | net/ipv4/ip_fw.c | struct iphdr *iph = skb->h.iph; |
iphdr | 1281 | net/ipv4/ip_fw.c | void ip_acct_cnt(struct iphdr *iph, struct device *dev, struct ip_fw *f) |
iphdr | 1365 | net/ipv4/ip_fw.c | struct iphdr *ip; |
iphdr | 1390 | net/ipv4/ip_fw.c | } else if ( ip->ihl != sizeof(struct iphdr) / sizeof(int)) { |
iphdr | 1393 | net/ipv4/ip_fw.c | sizeof(struct iphdr)/sizeof(int)); |
iphdr | 200 | net/ipv4/ip_input.c | struct iphdr *iph = skb->h.iph; |
iphdr | 247 | net/ipv4/ip_input.c | if (skb->len<sizeof(struct iphdr) || iph->ihl<5 || iph->version != 4 || ip_fast_csum((unsigned char *)iph, iph->ihl) !=0 |
iphdr | 428 | net/ipv4/ip_input.c | struct iphdr *iph=skb->h.iph; |
iphdr | 36 | net/ipv4/ip_options.c | memcpy(iph+sizeof(struct iphdr), opt->__data, opt->optlen); |
iphdr | 94 | net/ipv4/ip_options.c | sptr = (sopt->is_data ? sopt->__data - sizeof(struct iphdr) : |
iphdr | 102 | net/ipv4/ip_options.c | dopt->rr = dopt->optlen + sizeof(struct iphdr); |
iphdr | 117 | net/ipv4/ip_options.c | dopt->ts = dopt->optlen + sizeof(struct iphdr); |
iphdr | 181 | net/ipv4/ip_options.c | dopt->srr = dopt->optlen + sizeof(struct iphdr); |
iphdr | 247 | net/ipv4/ip_options.c | opt->optlen = ((struct iphdr *)iph)->ihl*4 - sizeof(struct iphdr); |
iphdr | 248 | net/ipv4/ip_options.c | optptr = iph + sizeof(struct iphdr); |
iphdr | 254 | net/ipv4/ip_options.c | iph = optptr - sizeof(struct iphdr); |
iphdr | 94 | net/ipv4/ip_output.c | newskb->ip_hdr=(struct iphdr *)skb_put(newskb, len); |
iphdr | 199 | net/ipv4/ip_output.c | struct iphdr *iph; |
iphdr | 293 | net/ipv4/ip_output.c | iph=(struct iphdr *)skb_put(skb,sizeof(struct iphdr) + opt->optlen); |
iphdr | 295 | net/ipv4/ip_output.c | iph=(struct iphdr *)skb_put(skb,sizeof(struct iphdr)); |
iphdr | 308 | net/ipv4/ip_output.c | return sizeof(struct iphdr) + tmp; |
iphdr | 319 | net/ipv4/ip_output.c | void ip_send_check(struct iphdr *iph) |
iphdr | 337 | net/ipv4/ip_output.c | struct iphdr *iph; |
iphdr | 581 | net/ipv4/ip_output.c | struct iphdr *iph; |
iphdr | 642 | net/ipv4/ip_output.c | length += sizeof(struct iphdr); |
iphdr | 683 | net/ipv4/ip_output.c | skb->ip_hdr=iph=(struct iphdr *)skb_put(skb,length); |
iphdr | 729 | net/ipv4/ip_output.c | length -= sizeof(struct iphdr); |
iphdr | 733 | net/ipv4/ip_output.c | fragheaderlen = dev->hard_header_len + sizeof(struct iphdr) + opt->optlen; |
iphdr | 734 | net/ipv4/ip_output.c | maxfraglen = ((dev->mtu-sizeof(struct iphdr)-opt->optlen) & ~7) + fragheaderlen; |
iphdr | 863 | net/ipv4/ip_output.c | skb->ip_hdr = iph = (struct iphdr *)data; |
iphdr | 474 | net/ipv4/ip_sockglue.c | unsigned char * optptr = opt->__data+opt->srr-sizeof(struct iphdr); |
iphdr | 480 | net/ipv4/ip_sockglue.c | unsigned char * optptr = opt->__data+opt->rr-sizeof(struct iphdr); |
iphdr | 486 | net/ipv4/ip_sockglue.c | unsigned char * optptr = opt->__data+opt->ts-sizeof(struct iphdr); |
iphdr | 68 | net/ipv4/ipip.c | skb_pull(skb, ((struct iphdr *)skb->data)->ihl<<2); |
iphdr | 74 | net/ipv4/ipip.c | skb->h.iph=(struct iphdr *)skb->data; |
iphdr | 75 | net/ipv4/ipip.c | skb->ip_hdr=(struct iphdr *)skb->data; |
iphdr | 267 | net/ipv4/ipmr.c | skb->ip_hdr=(struct iphdr *)skb_put(skb,ihl); |
iphdr | 176 | net/ipv4/raw.c | struct iphdr *iph=(struct iphdr *)to; |
iphdr | 247 | net/ipv4/raw.c | if(len>65535-sizeof(struct iphdr)) |
iphdr | 522 | net/ipv4/tcp.c | struct iphdr *iph=(struct iphdr *)(header-sizeof(struct iphdr)); |
iphdr | 562 | net/ipv4/tcp.c | if (sk->mtu > new_mtu - sizeof(struct iphdr) - sizeof(struct tcphdr) |
iphdr | 563 | net/ipv4/tcp.c | && new_mtu > sizeof(struct iphdr)+sizeof(struct tcphdr)) |
iphdr | 564 | net/ipv4/tcp.c | sk->mtu = new_mtu - sizeof(struct iphdr) - sizeof(struct tcphdr); |
iphdr | 2003 | net/ipv4/tcp.c | sk->mtu = rt->rt_mtu - sizeof(struct iphdr) - sizeof(struct tcphdr); |
iphdr | 2005 | net/ipv4/tcp.c | sk->mtu = 576 - sizeof(struct iphdr) - sizeof(struct tcphdr); |
iphdr | 2014 | net/ipv4/tcp.c | sk->mtu = min(sk->mtu, dev->mtu - sizeof(struct iphdr) - sizeof(struct tcphdr)); |
iphdr | 487 | net/ipv4/tcp_input.c | newsk->mtu = rt->rt_mtu - sizeof(struct iphdr) - sizeof(struct tcphdr); |
iphdr | 489 | net/ipv4/tcp_input.c | newsk->mtu = 576 - sizeof(struct iphdr) - sizeof(struct tcphdr); |
iphdr | 495 | net/ipv4/tcp_input.c | newsk->mtu = min(newsk->mtu, dev->mtu - sizeof(struct iphdr) - sizeof(struct tcphdr)); |
iphdr | 261 | net/ipv4/tcp_output.c | struct iphdr *iph; |
iphdr | 274 | net/ipv4/tcp_output.c | if (size > sk->mtu - sizeof(struct iphdr)) |
iphdr | 327 | net/ipv4/tcp_output.c | struct iphdr *iph; |
iphdr | 362 | net/ipv4/tcp_output.c | iph = (struct iphdr *)skb->data; |
iphdr | 892 | net/ipv4/tcp_output.c | struct iphdr *iph; |
iphdr | 910 | net/ipv4/tcp_output.c | iph = (struct iphdr *)skb->ip_hdr; |
iphdr | 308 | net/ipv4/udp.c | if(ulen>65535-sizeof(struct iphdr)) |