| plan 9 kernel history: overview | file list | diff list |
1991/1029/port/devarp.c (diff list | history)
| 1991/1029/sys/src/9/port/devarp.c:282,288 – 1991/1030/sys/src/9/port/devarp.c:282,287 (short | long | prev | next) | ||
| 1991/1029 | if(bp->type != M_DATA) { if(Servq == 0 && streamparse("arpd", bp)) { | |
| 1991/1029/sys/src/9/port/devarp.c:298,314 – 1991/1030/sys/src/9/port/devarp.c:297,316 | ||
| 1991/1029 | } eh = (Etherhdr *)bp->rptr; | |
| 1991/1030 | if(nhgets(eh->type) != ET_IP) { PUTNEXT(q, bp); return; } | |
| 1991/1029 | iproute(eh->dst, ip); /* Send downstream to the ethernet */ if(arplookup(ip, eh->d)) { | |
| 1991/1030 | /* Push the packet up to the arp server for address resolution */ | |
| 1991/1029 | memmove(eh->d, ip, sizeof(ip)); PUTNEXT(Servq, bp); | |
| 1991/1027 | } | |