| plan 9 kernel history: overview | file list | diff list |
2001/0430/ip/ip.c (diff list | history)
| 2000/1111/sys/src/9/ip/ip.c:206,212 – 2001/0430/sys/src/9/ip/ip.c:206,213 (short | long | prev | next) | ||
| 1999/10041 | if(!gating) | |
| 1997/0327 | eh->vihl = IP_VER|IP_HLEN; | |
| 1999/10041 | eh->ttl = ttl; | |
| 2001/0430 | if(!gating) eh->tos = tos; | |
| 1997/0327 | ||
| 1999/0302 | if(!canrlock(ifc)) goto free; | |
| 2000/1111/sys/src/9/ip/ip.c:223,230 – 2001/0430/sys/src/9/ip/ip.c:224,233 | ||
| 1997/0327 | if(!gating) | |
| 1999/0302 | hnputs(eh->id, incref(&ip->id)); | |
| 1997/0327 | hnputs(eh->length, len); | |
| 2001/0430 | if(!gating){ eh->frag[0] = 0; eh->frag[1] = 0; } | |
| 1997/0327 | eh->cksum[0] = 0; eh->cksum[1] = 0; hnputs(eh->cksum, ipcsum(&eh->vihl)); | |
| 2000/1111/sys/src/9/ip/ip.c:265,271 – 2001/0430/sys/src/9/ip/ip.c:268,279 | ||
| 1997/0327 | } xp->rp += offset; | |
| 2001/0430 | if(gating) fragoff = nhgets(eh->frag); else fragoff = 0; dlen += fragoff; for(; fragoff < dlen; fragoff += seglen) { | |
| 1997/0327 | nb = allocb(IPHDR+seglen); feh = (Iphdr*)(nb->rp); | |