Commit a7452b20 authored by osdl.org!shemminger's avatar osdl.org!shemminger

Solve build problems on older systems.

(Logical change 1.27)
parent a45308b2
......@@ -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
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment