summaryrefslogtreecommitdiff
path: root/sys/kern/uipc_mbuf.c
AgeCommit message (Collapse)Author
2001-05-26Use m_tag_init() and M_COPY_HDR().Angelos D. Keromytis
2001-05-26Fix backpointer.Angelos D. Keromytis
2001-05-24If the copied tag container is empty, initialize it properly.Angelos D. Keromytis
2001-05-20m_tag_* routines, plus minor changes (convert from tdbi to tags)Angelos D. Keromytis
2001-05-18Use pool_page_alloc_nointr() and pool_page_free_nointr() since theyTodd C. Miller
are exported wheras pool_page_alloc() and pool_page_free() are static. In the non-UVM case these just call pool_page_alloc() and pool_page_free() anyway.
2001-05-17convert mbuf and cluster allocation to pool, mostly from NetBSDNiels Provos
okay art@ miod@
2001-05-16Introduce a new kernel option "SMALL_KERNEL" that will be used to keep theArtur Grabowski
kernel size down. Two changes. Uninline MALLOC and uninline a few mbuf macros. Saves 140k on alpha RAMDISK (although only 11k after gzip).
2001-05-05Get rid of CLSIZE and all related stuff.Artur Grabowski
CLSIZE -> 1 CLBYTES -> PAGE_SIZE OLOFSET -> PAGE_MASK etc. At the same time some archs needed some cleaning in vmparam.h so that goes in at the same time.
2001-04-05From angelos: (he can't commit this himself right now)Artur Grabowski
> I must have been on drugs...a deep copy is needed, or else there's double > free's when there's IPsec. [...] > This should solve the crash problems.
2001-03-30Be consistent when adjusting pkthdr.len; it doesn't matter currently,Angelos D. Keromytis
since the callers always do the right thing, but it might in the future. Pointed out by art@
2001-03-28Allow tdbi's to appear in mbufs throughout the stack; this allowsAngelos D. Keromytis
security properties of the packets to be pushed up to the application (not done yet). Eventually, this will be turned into a packet attributes framework. Make sure tdbi's are free'd/cleared properly whenever drivers (or NFS) does weird things with mbufs.
2001-03-25Not really a bug but one day panic might throw an exception or something. ↵Constantine Sapuntzakis
THanks to dawson and team for fix
2000-03-03Style.Angelos D. Keromytis
2000-03-03Remove extraneous newline.Angelos D. Keromytis
2000-03-02New function: m_getptr(), takes as argument an mbuf chain and anAngelos D. Keromytis
offset, returns a pointer to them specific mbuf and the offset inside it that corresponds to the offset argument (so one can find where the n'th byte is in an mbuf).
1999-12-31copy pkthdr correctly in m_split, okay angelos@Niels Provos
1999-12-05Add an m_inject()Angelos D. Keromytis
1999-10-01remove dependency on external storage managed by mclusters andJason Wright
add more support for external managers
1999-09-12style(9)Niklas Hallqvist
1999-08-17There was a line missing in the commit from rev 1.6 that resulted inTodd C. Miller
an uninitialized variable; art@stacken.kth.se
1999-08-09make panic messages uniqueTheo de Raadt
1999-07-02Added a simple but potentially very useful new mbuf function, m_apply().cmetz
It applies the supplied function f(state, p, len) to every contiguous region in a mbuf, thus mostly handling all the mbuf-isms for you. It's used by my TCP MD5 signature implementation to run MD5 over the TCP payload data in a mbuf so that I don't have to spread mbufism-loops all over. It might also be useful for IPsec.
1999-05-14OpenBSD has no ext_func, so that test is bogus.cmetz
1999-05-14m_zero will no longer zero the contents of a cluster if there's an alias to it.cmetz
(TCP uses cluster mbuf aliases for retransmission, and this would cause your data to get retransmitted zeroed-out)
1999-05-12Fix problem with data corruption for retransmitted TCP packetsHakan Olsson
in an IPSec ESP tunnel. OpenBSD PR 819.
1999-02-26kmem allocation changes for uvmArtur Grabowski
1999-01-07new APIs: m_pullup2, m_copym2, m_zero, MCL_ALIGN; NRL/cmetzTheo de Raadt
1998-02-03bad types; wileyc@sekiya.twics.co.jpTheo de Raadt
1997-08-20In m_split(), restore m_pkthdr.len to original length if weTodd C. Miller
get an error. From Koji Imada <koji@math.human.nagoya-u.ac.jp>
1996-09-06Need cpu.h included to get at setsoftnet defineNiklas Hallqvist
1996-09-02Don't drain the protocol queues at interrupt level.dm
1996-06-20if kmem_malloc() fails to allocate a cluster, call m_reclaim(). logTheo de Raadt
"mb_map full" message only once a minute.
1996-03-03From NetBSD: 960217 mergeNiklas Hallqvist
1995-10-18initial import of NetBSD treeTheo de Raadt