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
This commit is contained in:
eadler 2012-09-01 23:33:49 +00:00
parent 02dcf28b58
commit bb5f6cf89c

@ -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);