Skip to content

Commit 06832d3

Browse files
committed
pkt-gen: more fix FreeBSD build
1 parent b40972c commit 06832d3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/pkt-gen/pkt-gen.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ check_link_up(const char *ifname)
685685
struct sockaddr_dl *sdl =
686686
(struct sockaddr_dl*)ifap->ifa_addr;
687687

688-
if (!sdl || sdl->sdl_family != PF_PACKET)
688+
if (!sdl || sdl->sdl_family != AF_LINK)
689689
continue;
690690
if (!strncmp(ifap->ifa_name, ifname, IFNAMSIZ))
691691
break;

0 commit comments

Comments
 (0)