diff options
author | eadler <eadler@FreeBSD.org> | 2012-09-01 23:33:49 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2012-09-01 23:33:49 +0000 |
commit | bb5f6cf89c971de695ae610d7d6d9eed8800e7ab (patch) | |
tree | a349fba886162a979ab6a48e879fb79531e37758 /sys/netinet | |
parent | 02dcf28b5875df173bef8c14a9ddd3d3ce67c5d4 (diff) | |
download | FreeBSD-src-bb5f6cf89c971de695ae610d7d6d9eed8800e7ab.zip FreeBSD-src-bb5f6cf89c971de695ae610d7d6d9eed8800e7ab.tar.gz |
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
Diffstat (limited to 'sys/netinet')
-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 4007125..c0f8fcd 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); |