taglinefilesource code
iph75drivers/net/slhc.cextern int ip_csum(struct iphdr *iph);
iph84net/inet/icmp.cstruct iphdr *iph;
iph107net/inet/icmp.ciph = (struct iphdr *) (skb_in->data + 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;
iph145net/inet/ip.cstrict_route(struct iphdr *iph, struct options *opt)
iph151net/inet/ip.cloose_route(struct iphdr *iph, struct options *opt)
iph174net/inet/ip.cbuild_options(struct iphdr *iph, struct options *opt)
iph178net/inet/ip.cptr = (unsigned char *)(iph+1);
iph219net/inet/ip.cstruct iphdr *iph;
iph272net/inet/ip.ciph = (struct iphdr *)buff;
iph273net/inet/ip.ciph->version  = 4;
iph274net/inet/ip.ciph->tos      = tos;
iph275net/inet/ip.ciph->frag_off = 0;
iph276net/inet/ip.ciph->ttl      = ttl;
iph277net/inet/ip.ciph->daddr    = daddr;
iph278net/inet/ip.ciph->saddr    = saddr;
iph279net/inet/ip.ciph->protocol = type;
iph280net/inet/ip.ciph->ihl      = 5;
iph281net/inet/ip.ciph->id       = htons(count++);
iph285net/inet/ip.cbuild_options(iph, opt);
iph293net/inet/ip.cdo_options(struct iphdr *iph, struct options *opt)
iph312net/inet/ip.cbuff = (unsigned char *)(iph + 1);
iph315net/inet/ip.cwhile (!done && len < iph->ihl*4) switch(*buff) {
iph426net/inet/ip.cstrict_route(iph, opt);
iph432net/inet/ip.cloose_route(iph, opt);
iph513net/inet/ip.cip_csum(struct iphdr *iph)
iph515net/inet/ip.creturn ip_fast_csum((unsigned char *)iph, iph->ihl);
iph520net/inet/ip.cip_send_check(struct iphdr *iph)
iph522net/inet/ip.ciph->check = 0;
iph523net/inet/ip.ciph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
iph557net/inet/ip.cstatic struct ipq *ip_find(struct iphdr *iph)
iph566net/inet/ip.cif (iph->id== qp->iph->id && iph->saddr == qp->iph->saddr &&
iph567net/inet/ip.ciph->daddr == qp->iph->daddr && iph->protocol == qp->iph->protocol) 
iph627net/inet/ip.ckfree_s(qp->iph, qp->ihlen + 8);
iph647net/inet/ip.cicmp_send(qp->iph->ip_src.s_addr, ICMP_TIME_EXCEEDED,
iph648net/inet/ip.cICMP_EXC_FRAGTIME, qp->iph);
iph666net/inet/ip.cstatic struct ipq *ip_create(struct sk_buff *skb, struct iphdr *iph, struct device *dev)
iph681net/inet/ip.cmaclen = ((unsigned long) iph) - ((unsigned long) skb->data);
iph691net/inet/ip.cihlen = (iph->ihl * sizeof(unsigned long));
iph692net/inet/ip.cqp->iph = (struct iphdr *) kmalloc(ihlen + 8, GFP_ATOMIC);
iph693net/inet/ip.cif (qp->iph == NULL) 
iph703net/inet/ip.cmemcpy(qp->iph, iph, ihlen + 8);
iph759net/inet/ip.cstruct iphdr *iph;
iph783net/inet/ip.cmemcpy(ptr, ((unsigned char *) qp->iph), qp->ihlen);
iph812net/inet/ip.ciph = skb->h.iph;
iph813net/inet/ip.ciph->frag_off = 0;
iph814net/inet/ip.ciph->tot_len = htons((iph->ihl * sizeof(unsigned long)) + count);
iph815net/inet/ip.cskb->ip_hdr = iph;
iph821net/inet/ip.cstatic struct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev)
iph832net/inet/ip.cqp = ip_find(iph);
iph835net/inet/ip.coffset = ntohs(iph->frag_off);
iph857net/inet/ip.cif ((qp = ip_create(skb, iph, dev)) == NULL) {
iph865net/inet/ip.cihl = (iph->ihl * sizeof(unsigned long));
iph866net/inet/ip.cend = offset + ntohs(iph->tot_len) - ihl;
iph979net/inet/ip.cstruct iphdr *iph;
iph988net/inet/ip.ciph = (struct iphdr *) (raw + dev->hard_header_len);
iph990net/inet/ip.cskb->ip_hdr = iph;
iph993net/inet/ip.chlen = (iph->ihl * sizeof(unsigned long));
iph994net/inet/ip.cleft = ntohs(iph->tot_len) - hlen;
iph1001net/inet/ip.cdev->name, dev->mtu, left, in_ntoa(iph->saddr)));
iph1002net/inet/ip.cDPRINTF((DBG_IP, " DST=%s\n", in_ntoa(iph->daddr)));
iph1005net/inet/ip.cif (ntohs(iph->frag_off) & IP_DF) 
iph1009net/inet/ip.cdev->name, dev->mtu, left, in_ntoa(iph->saddr)));
iph1010net/inet/ip.cDPRINTF((DBG_IP, " DST=%s\n", in_ntoa(iph->daddr)));
iph1018net/inet/ip.coffset = (ntohs(iph->frag_off) & 0x1fff) << 3;
iph1060net/inet/ip.ciph = (struct iphdr *)(skb2->h.raw/*+dev->hard_header_len*/);
iph1061net/inet/ip.ciph->frag_off = htons((offset >> 3));
iph1065net/inet/ip.ciph->frag_off |= htons(IP_MF);
iph1085net/inet/ip.cstruct iphdr *iph;
iph1107net/inet/ip.ciph = skb->h.iph;
iph1108net/inet/ip.ciph->ttl--;
iph1109net/inet/ip.cif (iph->ttl <= 0) {
iph1111net/inet/ip.cDPRINTF((DBG_IP, "    SRC = %s   ", in_ntoa(iph->saddr)));
iph1112net/inet/ip.cDPRINTF((DBG_IP, "    DST = %s (ignored)\n", in_ntoa(iph->daddr)));
iph1120net/inet/ip.cip_send_check(iph);
iph1126net/inet/ip.crt = rt_route(iph->daddr, NULL);
iph1154net/inet/ip.c} else raddr = iph->daddr;
iph1164net/inet/ip.cDPRINTF((DBG_IP, "\nIP: *** fwd %s -> ", in_ntoa(iph->saddr)));
iph1197net/inet/ip.cif(iph->tos & IPTOS_LOWDELAY)
iph1199net/inet/ip.cif(iph->tos & IPTOS_THROUGHPUT)
iph1214net/inet/ip.cstruct iphdr *iph = skb->h.iph;
iph1226net/inet/ip.cskb->ip_hdr = iph;    /* Fragments can cause ICMP errors too! */
iph1228net/inet/ip.cif (skb->len<sizeof(struct iphdr) || iph->ihl<5 || iph->version != 4 || ip_fast_csum((unsigned char *)iph, iph->ihl) !=0) {
iph1230net/inet/ip.cDPRINTF((DBG_IP, "    SRC = %s   ", in_ntoa(iph->saddr)));
iph1231net/inet/ip.cDPRINTF((DBG_IP, "    DST = %s (ignored)\n", in_ntoa(iph->daddr)));
iph1237net/inet/ip.cif (iph->ihl != 5) {    /* Fast path for the typical optionless IP packet. */
iph1238net/inet/ip.cip_print(iph);    /* Bogus, only for debugging. */
iph1240net/inet/ip.cif (do_options(iph, &opt) != 0)
iph1245net/inet/ip.cif (iph->frag_off & 0x0020)
iph1247net/inet/ip.cif (ntohs(iph->frag_off) & 0x1fff)
iph1251net/inet/ip.cif ((brd = chk_addr(iph->daddr)) == 0) {
iph1256net/inet/ip.ciph->saddr,iph->daddr);
iph1270net/inet/ip.cskb=ip_defrag(iph,skb,dev);
iph1275net/inet/ip.ciph=skb->h.iph;
iph1278net/inet/ip.cprintk("    SRC = %s   ", in_ntoa(iph->saddr));
iph1279net/inet/ip.cprintk("    DST = %s (ignored)\n", in_ntoa(iph->daddr));
iph1300net/inet/ip.cskb->ip_hdr = iph;
iph1301net/inet/ip.cskb->h.raw += iph->ihl*4;
iph1302net/inet/ip.chash = iph->protocol & (MAX_INET_PROTOS -1);
iph1309net/inet/ip.cif (ipprot->protocol != iph->protocol) continue;
iph1343net/inet/ip.cipprot->handler(skb2, dev, opts_p ? &opt : 0, iph->daddr,
iph1344net/inet/ip.c(ntohs(iph->tot_len) - (iph->ihl * 4)),
iph1345net/inet/ip.ciph->saddr, 0, ipprot);
iph1377net/inet/ip.cstruct iphdr *iph;
iph1393net/inet/ip.ciph = (struct iphdr *)ptr;
iph1394net/inet/ip.cskb->ip_hdr = iph;
iph1395net/inet/ip.ciph->tot_len = ntohs(skb->len-dev->hard_header_len);
iph1406net/inet/ip.cip_send_check(iph);
iph1407net/inet/ip.cip_print(iph);
iph50net/inet/ip.hstruct iphdr  *iph;    /* pointer to IP header      */
iph238net/inet/raw.cstruct iphdr *iph;
iph242net/inet/raw.ciph = (struct iphdr *)buff;
iph243net/inet/raw.ciph->saddr = sk->saddr;
iph54net/inet/skbuff.hstruct iphdr  *iph;
iph256net/inet/tcp.cstruct iphdr *iph=(struct iphdr *)header;
iph258net/inet/tcp.cheader+=4*iph->ihl;