projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pscan: new applet (portscanner). ~1350 bytes. By Tito <farmatito@tiscali.it>
[oweals/busybox.git]
/
networking
/
libiproute
/
ll_proto.c
diff --git
a/networking/libiproute/ll_proto.c
b/networking/libiproute/ll_proto.c
index 9ee5ab23f8159df78cd6c16ec095d0b84e462749..10d749881cb4fef39465e09d2be2b6c76491bb87 100644
(file)
--- a/
networking/libiproute/ll_proto.c
+++ b/
networking/libiproute/ll_proto.c
@@
-1,3
+1,4
@@
+/* vi: set sw=4 ts=4: */
/*
* ll_proto.c
*
/*
* ll_proto.c
*
@@
-9,14
+10,11
@@
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
*/
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
*/
-#include <stdio.h>
-#include <arpa/inet.h>
-#include <string.h>
-
+#include "libbb.h"
#include "rt_names.h"
#include "utils.h"
#include "rt_names.h"
#include "utils.h"
-#if
__GLIBC__ >=2 && __GLIBC_MINOR
>= 1
+#if
defined(__GLIBC__) && __GLIBC__ >=2 && __GLIBC_MINOR__
>= 1
#include <net/ethernet.h>
#else
#include <linux/if_ether.h>
#include <net/ethernet.h>
#else
#include <linux/if_ether.h>
@@
-25,7
+23,7
@@
#define __PF(f,n) { ETH_P_##f, #n },
static struct {
int id;
#define __PF(f,n) { ETH_P_##f, #n },
static struct {
int id;
- char *name;
+ c
onst c
har *name;
} llproto_names[] = {
__PF(LOOP,loop)
__PF(PUP,pup)
} llproto_names[] = {
__PF(LOOP,loop)
__PF(PUP,pup)