| plan 9 kernel history: overview | file list | diff list |
1998/0318/ip/ipifc.c (diff list | history)
| 1998/0316/sys/src/9/ip/ipifc.c:369,378 – 1998/0318/sys/src/9/ip/ipifc.c:369,389 (short | long | prev | next) | ||
|
Add subnet- and network-directed broadcast addresses to self cache.
Note bizarre computation of broadcast. rsc Fri Mar 4 12:44:25 2005 | ||
| 1998/0306 | bcast[i] = (ip[i] & mask[i]) | ~mask[i]; | |
| 1998/0313 | addselfcache(f, ifc, lifc, bcast, Rbcast); | |
| 1998/0306 | ||
| 1998/0318 | /* add old subnet directed broadcast addresses to the self cache */ for(i = 0; i < IPaddrlen; i++) bcast[i] = (ip[i] & mask[i]) & mask[i]; addselfcache(f, ifc, lifc, bcast, Rbcast); | |
| 1998/0306 | /* add network directed broadcast addresses to the self cache */ memmove(mask, defmask(ip), IPaddrlen); for(i = 0; i < IPaddrlen; i++) bcast[i] = (ip[i] & mask[i]) | ~mask[i]; | |
| 1998/0318 | addselfcache(f, ifc, lifc, bcast, Rbcast); /* add old network directed broadcast addresses to the self cache */ memmove(mask, defmask(ip), IPaddrlen); for(i = 0; i < IPaddrlen; i++) bcast[i] = (ip[i] & mask[i]) & mask[i]; | |
| 1998/0313 | addselfcache(f, ifc, lifc, bcast, Rbcast); | |
| 1998/0306 | ||
| 1998/0313 | addselfcache(f, ifc, lifc, IPv4bcast, Rbcast); | |