more build problems on older systems.
(Logical change 1.28)
This commit is contained in:
parent
d1fe9d22b8
commit
ea7436fb2d
|
|
@ -17,13 +17,15 @@
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <linux/netdevice.h>
|
|
||||||
#include <linux/if_arp.h>
|
|
||||||
#include <linux/sockios.h>
|
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include <linux/netdevice.h>
|
||||||
|
#include <linux/if_arp.h>
|
||||||
|
#include <linux/sockios.h>
|
||||||
|
|
||||||
|
#include "rt_names.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,20 +17,22 @@
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <linux/netdevice.h>
|
|
||||||
#include <linux/if_arp.h>
|
|
||||||
#include <linux/sockios.h>
|
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include <linux/netdevice.h>
|
||||||
|
#include <linux/if_arp.h>
|
||||||
|
#include <linux/sockios.h>
|
||||||
|
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
#include "rt_names.h"
|
||||||
|
|
||||||
|
|
||||||
#define __PF(f,n) { ETH_P_##f, #n },
|
#define __PF(f,n) { ETH_P_##f, #n },
|
||||||
static struct {
|
static struct {
|
||||||
int id;
|
int id;
|
||||||
char *name;
|
const char *name;
|
||||||
} llproto_names[] = {
|
} llproto_names[] = {
|
||||||
__PF(LOOP,loop)
|
__PF(LOOP,loop)
|
||||||
__PF(PUP,pup)
|
__PF(PUP,pup)
|
||||||
|
|
@ -97,7 +99,7 @@ __PF(ECONET,econet)
|
||||||
#undef __PF
|
#undef __PF
|
||||||
|
|
||||||
|
|
||||||
char * ll_proto_n2a(unsigned short id, char *buf, int len)
|
const char * ll_proto_n2a(unsigned short id, char *buf, int len)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue