From 8edbf305d54e4f20446f8c2bc0b4cbe9317af367 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Mon, 23 May 2016 15:22:46 +0000 Subject: 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 --- sys/net/if_ppp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/net/if_ppp.c') 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); -- cgit v1.2.3