Date: Mon, 16 Jul 2012 08:42:57 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r238522 - projects/pf/head/sys/contrib/pf/net Message-ID: <201207160842.q6G8gvPn021081@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: glebius Date: Mon Jul 16 08:42:57 2012 New Revision: 238522 URL: http://svn.freebsd.org/changeset/base/238522 Log: Restore assigning/clearing of pflogifs[] which was accidentially removed in r234307,r234640. Reported by: flo Modified: projects/pf/head/sys/contrib/pf/net/if_pflog.c Modified: projects/pf/head/sys/contrib/pf/net/if_pflog.c ============================================================================== --- projects/pf/head/sys/contrib/pf/net/if_pflog.c Mon Jul 16 08:17:30 2012 (r238521) +++ projects/pf/head/sys/contrib/pf/net/if_pflog.c Mon Jul 16 08:42:57 2012 (r238522) @@ -138,12 +138,19 @@ pflog_clone_create(struct if_clone *ifc, bpfattach(ifp, DLT_PFLOG, PFLOG_HDRLEN); + pflogifs[unit] = ifp; + return (0); } static void pflog_clone_destroy(struct ifnet *ifp) { + int i; + + for (i = 0; i < PFLOGIFS_MAX; i++) + if (pflogifs[i] == ifp) + pflogifs[i] = NULL; bpfdetach(ifp); if_detach(ifp);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207160842.q6G8gvPn021081>