diff options
Diffstat (limited to 'sys/net/if_tap.c')
-rw-r--r-- | sys/net/if_tap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_tap.c b/sys/net/if_tap.c index 4e1b727..66c4a92 100644 --- a/sys/net/if_tap.c +++ b/sys/net/if_tap.c @@ -60,7 +60,7 @@ #include <net/bpf.h> #include <net/ethernet.h> #include <net/if.h> -#include <net/if_arp.h> +#include <net/if_dl.h> #include <net/route.h> #include <net/if_types.h> @@ -386,7 +386,7 @@ tapopen(dev, flag, mode, td) return (EBUSY); } - bcopy(IFP2ENADDR(tp->tap_ifp), tp->ether_addr, sizeof(tp->ether_addr)); + bcopy(IF_LLADDR(tp->tap_ifp), tp->ether_addr, sizeof(tp->ether_addr)); tp->tap_pid = td->td_proc->p_pid; tp->tap_flags |= TAP_OPEN; ifp = tp->tap_ifp; |