Use a normal malloc() for PCB allocations instead of the really aweful mbuf
authorMatthew Dillon <dillon@dragonflybsd.org>
Fri, 4 Jun 2004 20:27:32 +0000 (20:27 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Fri, 4 Jun 2004 20:27:32 +0000 (20:27 +0000)
commitc5fc48dc628493a078951d5ee3dd43f66eea397a
treec3c0b4354c564b97b91346d10ae937623b04c898
parent48585d99a1e66f685f5ffaa060612c174278d8b5
Use a normal malloc() for PCB allocations instead of the really aweful mbuf
hacks that were previously being used (which also gets rid of the remaining
dtom() calls).

Get rid of the packet/queue overloading and instead malloc() a queue header
for queueing packets.  The old code depended on dtom() to figure out the
mbuf associated with the packet and we are removing dtom().

Give NS a default usrreq so it doesn't panic the system on boot, but note
that NS will remain broken until the usrreq can be tied into the existing
code.

Review and testing by: Hiten Pandya and David Rhodus
sys/netproto/ipx/spx.h
sys/netproto/ipx/spx_usrreq.c
sys/netproto/ns/ns.h
sys/netproto/ns/ns_input.c
sys/netproto/ns/ns_pcb.c
sys/netproto/ns/ns_proto.c
sys/netproto/ns/spidp.h
sys/netproto/ns/spp_usrreq.c
sys/netproto/ns/spp_var.h