Max Khon
4cf39b5da4
- Fix potential double mbuf free: M_PREPEND may free mbuf chain and return
...
NULL but item will still have the reference ot the mbuf chain and will free
it upon destruction.
- Fix memory leak (unfree'd item on error path).
2011-11-06 05:24:54 +00:00
Gleb Smirnoff
674d86bf91
Node constructor methods are supposed to be called in syscall
...
context always. Convert nodes to consistently use M_WAITOK flag
for memory allocation.
Reviewed by: julian
2011-04-18 09:12:27 +00:00
Dag-Erling Smørgrav
1ede983cc9
Retire the MALLOC and FREE macros. They are an abomination unto style(9).
...
MFC after: 3 months
2008-10-23 15:53:51 +00:00
Warner Losh
c398230b64
/* -> /*- for license, minor formatting changes
2005-01-07 01:45:51 +00:00
Julian Elischer
f8aae7776f
Switch to using C99 sparse initialisers for the type methods array.
...
Should make no binary difference.
Submitted by: Gleb Smirnoff <glebius@cell.sick.ru>
Reviewed by: Harti Brandt <harti@freebsd.org>
MFC after: 1 week
2004-05-29 00:51:19 +00:00
Benno Rice
bde778e9f2
Add a netgraph node to handle ATM LLC encapsulation. This currently handles
...
ethernet (tested) and FDDI (not tested). The main use for this is on ADSL (or
other ATM) connections where bridged ethernet is used, PPPoE being a prime
example.
There is no manual page as yet, I will write one shortly.
Reviewed by: harti
2004-03-08 10:54:35 +00:00