Skip to content

Commit

Permalink
netdev-bsd: Fix compiling error in netbsd.
Browse files Browse the repository at this point in the history
In some netbsd version, RTF_LLINFO is undefined.

Signed-off-by: Hui Kang <hkang.sunysb@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
  • Loading branch information
huikang authored and blp committed Dec 6, 2016
1 parent 1099a56 commit c8c300b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/netdev-bsd.c
Expand Up @@ -1357,7 +1357,11 @@ netdev_bsd_arp_lookup(const struct netdev *netdev OVS_UNUSED,
mib[2] = 0;
mib[3] = AF_INET;
mib[4] = NET_RT_FLAGS;
#ifdef RTF_LLINFO
mib[5] = RTF_LLINFO;
#else
mib[5] = 0;
#endif
if (sysctl(mib, 6, NULL, &needed, NULL, 0) == -1) {
error = errno;
goto error;
Expand Down

0 comments on commit c8c300b

Please sign in to comment.