Date: Sat, 2 Nov 2013 00:11:38 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r257535 - head/sys/netgraph Message-ID: <201311020011.rA20BchL020170@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adrian Date: Sat Nov 2 00:11:38 2013 New Revision: 257535 URL: http://svnweb.freebsd.org/changeset/base/257535 Log: Teach the netgraph code to use a const char * pointer too. Pointy hat to: adrian Modified: head/sys/netgraph/ng_iface.c Modified: head/sys/netgraph/ng_iface.c ============================================================================== --- head/sys/netgraph/ng_iface.c Fri Nov 1 23:30:54 2013 (r257534) +++ head/sys/netgraph/ng_iface.c Sat Nov 2 00:11:38 2013 (r257535) @@ -776,7 +776,7 @@ ng_iface_rcvdata(hook_p hook, item_p ite 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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311020011.rA20BchL020170>