taglinefilesource code
iph75drivers/net/slhc.cextern int ip_csum(struct iphdr *iph);
iph83net/inet/icmp.cstruct iphdr *iph;
iph106net/inet/icmp.ciph = (struct iphdr *) (skb_in + 1);
iph107net/inet/icmp.ciph = (struct iphdr *) ((unsigned char *) iph + dev->hard_header_len);
iph110net/inet/icmp.coffset = ip_build_header(skb, dev->pa_addr, iph->saddr,
iph125net/inet/icmp.cmemcpy(icmph + 1, iph, sizeof(struct iphdr) + 8);
iph143net/inet/icmp.cstruct iphdr *iph;
iph148net/inet/icmp.ciph = (struct iphdr *) (icmph + 1);
iph152net/inet/icmp.cin_ntoa(iph->daddr)));
iph156net/inet/icmp.cin_ntoa(iph->daddr)));
iph160net/inet/icmp.cin_ntoa(iph->daddr), ntohs(iph->protocol));
iph164net/inet/icmp.cin_ntoa(iph->daddr), -1 /* FIXME: ntohs(iph->port) */));
iph168net/inet/icmp.cin_ntoa(iph->daddr));
iph171net/inet/icmp.cprintk("ICMP: %s: Source Route Failed.\n", in_ntoa(iph->daddr));
iph175net/inet/icmp.c(icmph->code & 7), in_ntoa(iph->daddr)));
iph180net/inet/icmp.chash = iph->protocol & (MAX_INET_PROTOS -1);
iph190net/inet/icmp.cif (iph->protocol == ipprot->protocol && ipprot->err_handler) {
iph192net/inet/icmp.ciph->daddr, iph->saddr, ipprot);
iph206net/inet/icmp.cstruct iphdr *iph;
iph209net/inet/icmp.ciph = (struct iphdr *) (icmph + 1);
iph210net/inet/icmp.cip = iph->daddr;
iph130net/inet/ip.cstrict_route(struct iphdr *iph, struct options *opt)
iph136net/inet/ip.cloose_route(struct iphdr *iph, struct options *opt)
iph159net/inet/ip.cbuild_options(struct iphdr *iph, struct options *opt)
iph163net/inet/ip.cptr = (unsigned char *)(iph+1);
iph204net/inet/ip.cstruct iphdr *iph;
iph257net/inet/ip.ciph = (struct iphdr *)buff;
iph258net/inet/ip.ciph->version  = 4;
iph259net/inet/ip.ciph->tos      = 0;
iph260net/inet/ip.ciph->frag_off = 0;
iph261net/inet/ip.ciph->ttl      = 32;
iph262net/inet/ip.ciph->daddr    = daddr;
iph263net/inet/ip.ciph->saddr    = saddr;
iph264net/inet/ip.ciph->protocol = type;
iph265net/inet/ip.ciph->ihl      = 5;
iph266net/inet/ip.ciph->id       = htons(count++);
iph270net/inet/ip.cbuild_options(iph, opt);
iph278net/inet/ip.cdo_options(struct iphdr *iph, struct options *opt)
iph297net/inet/ip.cbuff = (unsigned char *)(iph + 1);
iph300net/inet/ip.cwhile (!done && len < iph->ihl*4) switch(*buff) {
iph411net/inet/ip.cstrict_route(iph, opt);
iph417net/inet/ip.cloose_route(iph, opt);
iph498net/inet/ip.cip_csum(struct iphdr *iph)
iph500net/inet/ip.creturn ip_fast_csum((unsigned char *)iph, iph->ihl);
iph505net/inet/ip.cip_send_check(struct iphdr *iph)
iph507net/inet/ip.ciph->check = 0;
iph508net/inet/ip.ciph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
iph542net/inet/ip.cstatic struct ipq *ip_find(struct iphdr *iph)
iph551net/inet/ip.cif (iph->id== qp->iph->id && iph->saddr == qp->iph->saddr &&
iph552net/inet/ip.ciph->daddr == qp->iph->daddr && iph->protocol == qp->iph->protocol) 
iph612net/inet/ip.ckfree_s(qp->iph, qp->ihlen + 8);
iph632net/inet/ip.cicmp_send(qp->iph->ip_src.s_addr, ICMP_TIME_EXCEEDED,
iph633net/inet/ip.cICMP_EXC_FRAGTIME, qp->iph);
iph651net/inet/ip.cstatic struct ipq *ip_create(struct sk_buff *skb, struct iphdr *iph, struct device *dev)
iph666net/inet/ip.cmaclen = ((unsigned long) iph) - ((unsigned long) (skb + 1));
iph676net/inet/ip.cihlen = (iph->ihl * sizeof(unsigned long));
iph677net/inet/ip.cqp->iph = (struct iphdr *) kmalloc(ihlen + 8, GFP_ATOMIC);
iph678net/inet/ip.cif (qp->iph == NULL) 
iph688net/inet/ip.cmemcpy(qp->iph, iph, ihlen + 8);
iph744net/inet/ip.cstruct iphdr *iph;
iph769net/inet/ip.cmemcpy(ptr, ((unsigned char *) qp->iph), qp->ihlen);
iph797net/inet/ip.ciph = skb->h.iph;
iph798net/inet/ip.ciph->frag_off = 0;
iph799net/inet/ip.ciph->tot_len = htons((iph->ihl * sizeof(unsigned long)) + count);
iph805net/inet/ip.cstatic struct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev)
iph816net/inet/ip.cqp = ip_find(iph);
iph819net/inet/ip.coffset = ntohs(iph->frag_off);
iph845net/inet/ip.cif ((qp = ip_create(skb, iph, dev)) == NULL) 
iph850net/inet/ip.cihl = (iph->ihl * sizeof(unsigned long));
iph851net/inet/ip.cend = offset + ntohs(iph->tot_len) - ihl;
iph958net/inet/ip.cstruct iphdr *iph;
iph967net/inet/ip.ciph = (struct iphdr *) (raw + dev->hard_header_len);
iph970net/inet/ip.chlen = (iph->ihl * sizeof(unsigned long));
iph971net/inet/ip.cleft = ntohs(iph->tot_len) - hlen;
iph978net/inet/ip.cdev->name, dev->mtu, left, in_ntoa(iph->saddr)));
iph979net/inet/ip.cDPRINTF((DBG_IP, " DST=%s\n", in_ntoa(iph->daddr)));
iph982net/inet/ip.cif (ntohs(iph->frag_off) & IP_DF) 
iph986net/inet/ip.cdev->name, dev->mtu, left, in_ntoa(iph->saddr)));
iph987net/inet/ip.cDPRINTF((DBG_IP, " DST=%s\n", in_ntoa(iph->daddr)));
iph1000net/inet/ip.coffset = (ntohs(iph->frag_off) & 0x1fff) << 3;
iph1039net/inet/ip.ciph = (struct iphdr *)(skb2->h.raw/*+dev->hard_header_len*/);
iph1040net/inet/ip.ciph->frag_off = htons((offset >> 3));
iph1044net/inet/ip.ciph->frag_off |= htons(IP_MF);
iph1064net/inet/ip.cstruct iphdr *iph;
iph1086net/inet/ip.ciph = skb->h.iph;
iph1087net/inet/ip.ciph->ttl--;
iph1088net/inet/ip.cif (iph->ttl <= 0) {
iph1090net/inet/ip.cDPRINTF((DBG_IP, "    SRC = %s   ", in_ntoa(iph->saddr)));
iph1091net/inet/ip.cDPRINTF((DBG_IP, "    DST = %s (ignored)\n", in_ntoa(iph->daddr)));
iph1099net/inet/ip.cip_send_check(iph);
iph1105net/inet/ip.crt = rt_route(iph->daddr, NULL);
iph1133net/inet/ip.c} else raddr = iph->daddr;
iph1143net/inet/ip.cDPRINTF((DBG_IP, "\nIP: *** fwd %s -> ", in_ntoa(iph->saddr)));
iph1186net/inet/ip.cstruct iphdr *iph = skb->h.iph;
iph1199net/inet/ip.cif (skb->len<sizeof(struct iphdr) || iph->ihl<5 || iph->version != 4 || ip_fast_csum((unsigned char *)iph, iph->ihl) !=0) {
iph1201net/inet/ip.cDPRINTF((DBG_IP, "    SRC = %s   ", in_ntoa(iph->saddr)));
iph1202net/inet/ip.cDPRINTF((DBG_IP, "    DST = %s (ignored)\n", in_ntoa(iph->daddr)));
iph1208net/inet/ip.cif (iph->ihl != 5) {    /* Fast path for the typical optionless IP packet. */
iph1209net/inet/ip.cip_print(iph);    /* Bogus, only for debugging. */
iph1211net/inet/ip.cif (do_options(iph, &opt) != 0)
iph1216net/inet/ip.cif (iph->frag_off & 0x0020)
iph1218net/inet/ip.cif (ntohs(iph->frag_off) & 0x1fff)
iph1222net/inet/ip.cif ((brd = chk_addr(iph->daddr)) == 0) {
iph1227net/inet/ip.ciph->saddr,iph->daddr);
iph1241net/inet/ip.cskb=ip_defrag(iph,skb,dev);
iph1246net/inet/ip.ciph=skb->h.iph;
iph1249net/inet/ip.cprintk("    SRC = %s   ", in_ntoa(iph->saddr));
iph1250net/inet/ip.cprintk("    DST = %s (ignored)\n", in_ntoa(iph->daddr));
iph1270net/inet/ip.cskb->h.raw += iph->ihl*4;
iph1271net/inet/ip.chash = iph->protocol & (MAX_INET_PROTOS -1);
iph1278net/inet/ip.cif (ipprot->protocol != iph->protocol) continue;
iph1308net/inet/ip.cipprot->handler(skb2, dev, opts_p ? &opt : 0, iph->daddr,
iph1309net/inet/ip.c(ntohs(iph->tot_len) - (iph->ihl * 4)),
iph1310net/inet/ip.ciph->saddr, 0, ipprot);
iph1342net/inet/ip.cstruct iphdr *iph;
iph1358net/inet/ip.ciph = (struct iphdr *)ptr;
iph1359net/inet/ip.ciph->tot_len = ntohs(skb->len-dev->hard_header_len);
iph1370net/inet/ip.cip_send_check(iph);
iph1371net/inet/ip.cip_print(iph);
iph50net/inet/ip.hstruct iphdr  *iph;    /* pointer to IP header      */
iph233net/inet/raw.cstruct iphdr *iph;
iph237net/inet/raw.ciph = (struct iphdr *)buff;
iph238net/inet/raw.ciph->saddr = sk->saddr;
iph54net/inet/skbuff.hstruct iphdr  *iph;
iph200net/inet/tcp.cstruct iphdr *iph=(struct iphdr *)header;
iph202net/inet/tcp.cheader+=4*iph->ihl;