diff options
author | Eitan Adler <eadler@FreeBSD.org> | 2012-09-01 23:33:49 +0000 |
---|---|---|
committer | Eitan Adler <eadler@FreeBSD.org> | 2012-09-01 23:33:49 +0000 |
commit | 64baf9fbe0996e6161c1738410458769b6f5a3e9 (patch) | |
tree | a349fba886162a979ab6a48e879fb79531e37758 /sys | |
parent | 902d9eafbf66c52f8513bc38f4d0c8063c0b8a03 (diff) | |
download | src-64baf9fbe0996e6161c1738410458769b6f5a3e9.tar.gz src-64baf9fbe0996e6161c1738410458769b6f5a3e9.zip |
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
Notes
Notes:
svn path=/head/; revision=239997
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/ipfw/ip_fw_log.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ipfw/ip_fw_log.c b/sys/netinet/ipfw/ip_fw_log.c index 4007125fe4b7..c0f8fcd76a83 100644 --- a/sys/netinet/ipfw/ip_fw_log.c +++ b/sys/netinet/ipfw/ip_fw_log.c @@ -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 *ifc, char *name, size_t len, if (error) return (error); - ifp = if_alloc(IFT_ETHER); + ifp = if_alloc(IFT_PFLOG); if (ifp == NULL) { ifc_free_unit(ifc, unit); return (ENOSPC); |