Patch by Fillod Stephane, declare variables as static to not clobber
busybox namespace
This commit is contained in:
parent
6376b583e2
commit
6b0658f5c0
@ -28,26 +28,26 @@
|
|||||||
|
|
||||||
#define APPLET_NAME "arping"
|
#define APPLET_NAME "arping"
|
||||||
|
|
||||||
struct in_addr src;
|
static struct in_addr src;
|
||||||
struct in_addr dst;
|
static struct in_addr dst;
|
||||||
struct sockaddr_ll me;
|
static struct sockaddr_ll me;
|
||||||
struct sockaddr_ll he;
|
static struct sockaddr_ll he;
|
||||||
struct timeval last;
|
static struct timeval last;
|
||||||
int dad;
|
static int dad;
|
||||||
int unsolicited;
|
static int unsolicited;
|
||||||
int advert;
|
static int advert;
|
||||||
int quiet;
|
static int quiet;
|
||||||
int quit_on_reply = 0;
|
static int quit_on_reply = 0;
|
||||||
int count = -1;
|
static int count = -1;
|
||||||
int timeout;
|
static int timeout;
|
||||||
int unicasting;
|
static int unicasting;
|
||||||
int s;
|
static int s;
|
||||||
int broadcast_only;
|
static int broadcast_only;
|
||||||
int sent;
|
static int sent;
|
||||||
int brd_sent;
|
static int brd_sent;
|
||||||
int received;
|
static int received;
|
||||||
int brd_recv;
|
static int brd_recv;
|
||||||
int req_recv;
|
static int req_recv;
|
||||||
|
|
||||||
#define MS_TDIFF(tv1,tv2) ( ((tv1).tv_sec-(tv2).tv_sec)*1000 + \
|
#define MS_TDIFF(tv1,tv2) ( ((tv1).tv_sec-(tv2).tv_sec)*1000 + \
|
||||||
((tv1).tv_usec-(tv2).tv_usec)/1000 )
|
((tv1).tv_usec-(tv2).tv_usec)/1000 )
|
||||||
|
Loading…
Reference in New Issue
Block a user