summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2016-05-23 15:22:46 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2016-05-23 15:22:46 +0000
commit8edbf305d54e4f20446f8c2bc0b4cbe9317af367 (patch)
treeb968a9dbe0a2c69b9fc27030b99c9327dd87ab1c /sys/net
parent930ffb11c330d96ed42b6192bccfc7381bfd4c14 (diff)
remove the function pointer from mbufs. this memory is shared with data
via unions, and we don't want to make it easy to control the target. instead an integer index into an array of acceptable functions is used. drivers using custom functions must register them to receive an index. ok deraadt
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_ppp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c
index 99ddaf972a9..c4763232bc7 100644
--- a/sys/net/if_ppp.c
+++ b/sys/net/if_ppp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ppp.c,v 1.98 2016/04/13 11:41:15 mpi Exp $ */
+/* $OpenBSD: if_ppp.c,v 1.99 2016/05/23 15:22:44 tedu Exp $ */
/* $NetBSD: if_ppp.c,v 1.39 1997/05/17 21:11:59 christos Exp $ */
/*
@@ -1568,7 +1568,7 @@ ppp_pkt_mbuf(struct ppp_pkt *pkt0)
goto fail;
MEXTADD(m, pkt, sizeof(*pkt), M_EXTWR,
- m_extfree_pool, &ppp_pkts);
+ MEXTFREE_POOL, &ppp_pkts);
m->m_data += sizeof(pkt->p_hdr);
m->m_len = PKT_LEN(pkt);