summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTill Straumann <strauman@slac.stanford.edu>2009-10-20 23:40:57 +0000
committerTill Straumann <strauman@slac.stanford.edu>2009-10-20 23:40:57 +0000
commitb0125716e760ee28cf5c15af3dd5f1ead97e1158 (patch)
treec4849701cf3d37c25740fb7fcfc5483594d92171
parent701f0670f77521b2fb82a242570c85fa7dc7cf39 (diff)
2009-10-20 Till Straumann <Till.Straumann@TU-Berlin.de>
* libbsdport/libbsdport_post.h: added missing declaration of m_defrag() (Chris replaced the dummy #define a while ago and provided an implementation instead [thanks!] but we also need a declaration).
-rw-r--r--bsd_eth_drivers/libbsdport/libbsdport_post.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/bsd_eth_drivers/libbsdport/libbsdport_post.h b/bsd_eth_drivers/libbsdport/libbsdport_post.h
index a760a34..ca3fe04 100644
--- a/bsd_eth_drivers/libbsdport/libbsdport_post.h
+++ b/bsd_eth_drivers/libbsdport/libbsdport_post.h
@@ -103,3 +103,18 @@ ether_setaddr(struct ifnet *ifp, u_int8_t *eaddr);
*/
int
rtems_mii_phy_probe(struct rtems_mdio_info *mdio, void *if_softc);
+
+/*
+ * Defragment a mbuf chain, returning the shortest possible
+ * chain of mbufs and clusters. If allocation fails and
+ * this cannot be completed, NULL will be returned, but
+ * the passed in chain will be unchanged. Upon success,
+ * the original chain will be freed, and the new chain
+ * will be returned.
+ *
+ * If a non-packet header is passed in, the original
+ * mbuf (chain?) will be returned unharmed.
+ */
+struct mbuf *
+m_defrag(struct mbuf *m0, int how);
+