In FreeBSD's ifreq, ifr_ifru.ifru_flags is an array of two chars, while Linux
defines it as a short. Change that to an array of one short so that FreeBSD's ifr_flags macro will work (it evaluates to ifr_ifru.ifru_flags[0]).
This commit is contained in:
parent
211f625a91
commit
268aeb1ed3
@ -482,7 +482,7 @@ struct l_ifreq {
|
||||
struct l_sockaddr ifru_broadaddr;
|
||||
struct l_sockaddr ifru_netmask;
|
||||
struct l_sockaddr ifru_hwaddr;
|
||||
l_short ifru_flags;
|
||||
l_short ifru_flags[1];
|
||||
l_int ifru_metric;
|
||||
l_int ifru_mtu;
|
||||
struct l_ifmap ifru_map;
|
||||
|
@ -641,7 +641,7 @@ struct l_ifreq {
|
||||
struct l_sockaddr ifru_broadaddr;
|
||||
struct l_sockaddr ifru_netmask;
|
||||
struct l_sockaddr ifru_hwaddr;
|
||||
l_short ifru_flags;
|
||||
l_short ifru_flags[1];
|
||||
l_int ifru_metric;
|
||||
l_int ifru_mtu;
|
||||
struct l_ifmap ifru_map;
|
||||
|
Loading…
x
Reference in New Issue
Block a user