Solve build problems on older systems.
(Logical change 1.27)
This commit is contained in:
parent
a45308b25a
commit
a7452b20cd
|
|
@ -17,19 +17,22 @@
|
|||
#include <sys/ioctl.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <linux/netdevice.h>
|
||||
#include <linux/if_arp.h>
|
||||
#include <linux/sockios.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <string.h>
|
||||
|
||||
char * ll_type_n2a(int type, char *buf, int len)
|
||||
#include <linux/netdevice.h>
|
||||
#include <linux/if_arp.h>
|
||||
#include <linux/sockios.h>
|
||||
|
||||
#include "rt_names.h"
|
||||
|
||||
const char * ll_type_n2a(int type, char *buf, int len)
|
||||
{
|
||||
#define __PF(f,n) { ARPHRD_##f, #n },
|
||||
static struct {
|
||||
int type;
|
||||
char *name;
|
||||
const char *name;
|
||||
} arphrd_names[] = {
|
||||
{ 0, "generic" },
|
||||
__PF(ETHER,ether)
|
||||
|
|
|
|||
|
|
@ -71,7 +71,9 @@ static char * rtnl_rtprot_tab[256] = {
|
|||
[RTPROT_ZEBRA] ="zebra",
|
||||
[RTPROT_BIRD] = "bird",
|
||||
[RTPROT_DNROUTED] = "dnrouted",
|
||||
#ifdef RTPROT_XORP
|
||||
[RTPROT_XORP] = "xorp",
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue