mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 19:13:19 +00:00
Merge pull request #1861 from ajones-rvbd/ajones-for-upstream
zebra/if_netlink: compile under musl-libc
This commit is contained in:
commit
b82aab8c86
@ -30,6 +30,7 @@
|
||||
*/
|
||||
#define _LINUX_IN6_H
|
||||
|
||||
#include <netinet/if_ether.h>
|
||||
#include <linux/if_bridge.h>
|
||||
#include <linux/if_link.h>
|
||||
#include <net/if_arp.h>
|
||||
@ -362,7 +363,7 @@ static int get_iflink_speed(struct interface *interface)
|
||||
/* initialize ethtool interface */
|
||||
memset(&ecmd, 0, sizeof(ecmd));
|
||||
ecmd.cmd = ETHTOOL_GSET; /* ETHTOOL_GLINK */
|
||||
ifdata.ifr_data = (__caddr_t)&ecmd;
|
||||
ifdata.ifr_data = (caddr_t)&ecmd;
|
||||
|
||||
/* use ioctl to get IP address of an interface */
|
||||
if (zserv_privs.change(ZPRIVS_RAISE))
|
||||
|
Loading…
Reference in New Issue
Block a user