Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Sep 2012 23:33:49 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r239997 - head/sys/netinet/ipfw
Message-ID:  <201209012333.q81NXnas099696@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Sat Sep  1 23:33:49 2012
New Revision: 239997
URL: http://svn.freebsd.org/changeset/base/239997

Log:
      Mark the ipfw interface type as not being ether. This fixes an issue
      where uuidgen tried to obtain a ipfw device's mac address which was
      always zero.
  
      PR:		170460
      Submitted by:	wxs
      Reviewed by:	bdrewery
      Reviewed by:	delphij
      Approved by:	cperciva
      MFC after:	1 week

Modified:
  head/sys/netinet/ipfw/ip_fw_log.c

Modified: head/sys/netinet/ipfw/ip_fw_log.c
==============================================================================
--- head/sys/netinet/ipfw/ip_fw_log.c	Sat Sep  1 15:59:09 2012	(r239996)
+++ head/sys/netinet/ipfw/ip_fw_log.c	Sat Sep  1 23:33:49 2012	(r239997)
@@ -50,7 +50,7 @@ __FBSDID("$FreeBSD$");
 #include <net/if.h>
 #include <net/if_clone.h>
 #include <net/vnet.h>
-#include <net/if_types.h>	/* for IFT_ETHER */
+#include <net/if_types.h>	/* for IFT_PFLOG */
 #include <net/bpf.h>		/* for BPF */
 
 #include <netinet/in.h>
@@ -151,7 +151,7 @@ ipfw_log_clone_create(struct if_clone *i
 	if (error)
 		return (error);
 
-	ifp = if_alloc(IFT_ETHER);
+	ifp = if_alloc(IFT_PFLOG);
 	if (ifp == NULL) {
 		ifc_free_unit(ifc, unit);
 		return (ENOSPC);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209012333.q81NXnas099696>