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);
iph497net/inet/ip.cip_csum(struct iphdr *iph)
iph499net/inet/ip.creturn ip_fast_csum((unsigned char *)iph, iph->ihl);
iph504net/inet/ip.cip_send_check(struct iphdr *iph)
iph506net/inet/ip.ciph->check = 0;
iph507net/inet/ip.ciph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
iph541net/inet/ip.cstatic struct ipq *ip_find(struct iphdr *iph)
iph550net/inet/ip.cif (iph->id== qp->iph->id && iph->saddr == qp->iph->saddr &&
iph551net/inet/ip.ciph->daddr == qp->iph->daddr && iph->protocol == qp->iph->protocol) 
iph611net/inet/ip.ckfree_s(qp->iph, qp->ihlen + 8);
iph631net/inet/ip.cicmp_send(qp->iph->ip_src.s_addr, ICMP_TIME_EXCEEDED,
iph632net/inet/ip.cICMP_EXC_FRAGTIME, qp->iph);
iph650net/inet/ip.cstatic struct ipq *ip_create(struct sk_buff *skb, struct iphdr *iph, struct device *dev)
iph665net/inet/ip.cmaclen = ((unsigned long) iph) - ((unsigned long) (skb + 1));
iph675net/inet/ip.cihlen = (iph->ihl * sizeof(unsigned long));
iph676net/inet/ip.cqp->iph = (struct iphdr *) kmalloc(ihlen + 8, GFP_ATOMIC);
iph677net/inet/ip.cif (qp->iph == NULL) 
iph687net/inet/ip.cmemcpy(qp->iph, iph, ihlen + 8);
iph743net/inet/ip.cstruct iphdr *iph;
iph768net/inet/ip.cmemcpy(ptr, ((unsigned char *) qp->iph), qp->ihlen);
iph796net/inet/ip.ciph = skb->h.iph;
iph797net/inet/ip.ciph->frag_off = 0;
iph798net/inet/ip.ciph->tot_len = htons((iph->ihl * sizeof(unsigned long)) + count);
iph804net/inet/ip.cstatic struct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev)
iph815net/inet/ip.cqp = ip_find(iph);
iph818net/inet/ip.coffset = ntohs(iph->frag_off);
iph844net/inet/ip.cif ((qp = ip_create(skb, iph, dev)) == NULL) 
iph849net/inet/ip.cihl = (iph->ihl * sizeof(unsigned long));
iph850net/inet/ip.cend = offset + ntohs(iph->tot_len) - ihl;
iph957net/inet/ip.cstruct iphdr *iph;
iph966net/inet/ip.ciph = (struct iphdr *) (raw + dev->hard_header_len);
iph969net/inet/ip.chlen = (iph->ihl * sizeof(unsigned long));
iph970net/inet/ip.cleft = ntohs(iph->tot_len) - hlen;
iph977net/inet/ip.cdev->name, dev->mtu, left, in_ntoa(iph->saddr)));
iph978net/inet/ip.cDPRINTF((DBG_IP, " DST=%s\n", in_ntoa(iph->daddr)));
iph981net/inet/ip.cif (ntohs(iph->frag_off) & IP_DF) 
iph985net/inet/ip.cdev->name, dev->mtu, left, in_ntoa(iph->saddr)));
iph986net/inet/ip.cDPRINTF((DBG_IP, " DST=%s\n", in_ntoa(iph->daddr)));
iph999net/inet/ip.coffset = (ntohs(iph->frag_off) & 0x1fff) << 3;
iph1038net/inet/ip.ciph = (struct iphdr *)(skb2->h.raw/*+dev->hard_header_len*/);
iph1039net/inet/ip.ciph->frag_off = htons((offset >> 3));
iph1043net/inet/ip.ciph->frag_off |= htons(IP_MF);
iph1063net/inet/ip.cstruct iphdr *iph;
iph1085net/inet/ip.ciph = skb->h.iph;
iph1086net/inet/ip.ciph->ttl--;
iph1087net/inet/ip.cif (iph->ttl <= 0) {
iph1089net/inet/ip.cDPRINTF((DBG_IP, "    SRC = %s   ", in_ntoa(iph->saddr)));
iph1090net/inet/ip.cDPRINTF((DBG_IP, "    DST = %s (ignored)\n", in_ntoa(iph->daddr)));
iph1098net/inet/ip.cip_send_check(iph);
iph1104net/inet/ip.crt = rt_route(iph->daddr, NULL);
iph1132net/inet/ip.c} else raddr = iph->daddr;
iph1142net/inet/ip.cDPRINTF((DBG_IP, "\nIP: *** fwd %s -> ", in_ntoa(iph->saddr)));
iph1185net/inet/ip.cstruct iphdr *iph = skb->h.iph;
iph1198net/inet/ip.cif (skb->len<sizeof(struct iphdr) || iph->ihl<5 || iph->version != 4 || ip_fast_csum((unsigned char *)iph, iph->ihl) !=0) {
iph1200net/inet/ip.cDPRINTF((DBG_IP, "    SRC = %s   ", in_ntoa(iph->saddr)));
iph1201net/inet/ip.cDPRINTF((DBG_IP, "    DST = %s (ignored)\n", in_ntoa(iph->daddr)));
iph1207net/inet/ip.cif (iph->ihl != 5) {    /* Fast path for the typical optionless IP packet. */
iph1208net/inet/ip.cip_print(iph);    /* Bogus, only for debugging. */
iph1210net/inet/ip.cif (do_options(iph, &opt) != 0)
iph1215net/inet/ip.cif (iph->frag_off & 0x0020)
iph1217net/inet/ip.cif (ntohs(iph->frag_off) & 0x1fff)
iph1221net/inet/ip.cif ((brd = chk_addr(iph->daddr)) == 0) {
iph1226net/inet/ip.ciph->saddr,iph->daddr);
iph1240net/inet/ip.cskb=ip_defrag(iph,skb,dev);
iph1245net/inet/ip.ciph=skb->h.iph;
iph1248net/inet/ip.cprintk("    SRC = %s   ", in_ntoa(iph->saddr));
iph1249net/inet/ip.cprintk("    DST = %s (ignored)\n", in_ntoa(iph->daddr));
iph1269net/inet/ip.cskb->h.raw += iph->ihl*4;
iph1270net/inet/ip.chash = iph->protocol & (MAX_INET_PROTOS -1);
iph1277net/inet/ip.cif (ipprot->protocol != iph->protocol) continue;
iph1307net/inet/ip.cipprot->handler(skb2, dev, opts_p ? &opt : 0, iph->daddr,
iph1308net/inet/ip.c(ntohs(iph->tot_len) - (iph->ihl * 4)),
iph1309net/inet/ip.ciph->saddr, 0, ipprot);
iph1341net/inet/ip.cstruct iphdr *iph;
iph1357net/inet/ip.ciph = (struct iphdr *)ptr;
iph1358net/inet/ip.ciph->tot_len = ntohs(skb->len-dev->hard_header_len);
iph1369net/inet/ip.cip_send_check(iph);
iph1370net/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;