From 1f43ebd2b982dc82ad4ad94c6463ab1e4c43ffd8 Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Sat, 2 Nov 2013 00:11:38 +0000 Subject: [PATCH] Teach the netgraph code to use a const char * pointer too. Pointy hat to: adrian --- sys/netgraph/ng_iface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netgraph/ng_iface.c b/sys/netgraph/ng_iface.c index e2d345435c9a..910d30fc8a5d 100644 --- a/sys/netgraph/ng_iface.c +++ b/sys/netgraph/ng_iface.c @@ -776,7 +776,7 @@ ng_iface_rcvdata(hook_p hook, item_p item) return (EAFNOSUPPORT); } if (harvest.point_to_point) - random_harvest(&(m->m_data), 12, 2, RANDOM_NET_NG); + random_harvest(mtod(m, const void *), 12, 2, RANDOM_NET_NG); M_SETFIB(m, ifp->if_fib); netisr_dispatch(isr, m); return (0);