diff options
author | Rob Landley <rob@landley.net> | 2006-03-10 19:22:06 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-03-10 19:22:06 +0000 |
commit | bc68cd14ccaebc17e7e03a08e51fddfb91007624 (patch) | |
tree | beb32cedafc6232bf8a49fe90f0769d471ea6791 /networking/zcip.c | |
parent | dae6aa28598cb2353291f18ca52e768c3259165a (diff) | |
download | busybox-w32-bc68cd14ccaebc17e7e03a08e51fddfb91007624.tar.gz busybox-w32-bc68cd14ccaebc17e7e03a08e51fddfb91007624.tar.bz2 busybox-w32-bc68cd14ccaebc17e7e03a08e51fddfb91007624.zip |
Patch from Denis Vlasenko turning static const int (which gets emitted into
the busybox binary) into enums (which don't).
Diffstat (limited to 'networking/zcip.c')
-rw-r--r-- | networking/zcip.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/networking/zcip.c b/networking/zcip.c index 11b2db526..716c4a5e1 100644 --- a/networking/zcip.c +++ b/networking/zcip.c | |||
@@ -62,20 +62,22 @@ struct arp_packet { | |||
62 | struct in_addr target_ip; | 62 | struct in_addr target_ip; |
63 | } ATTRIBUTE_PACKED; | 63 | } ATTRIBUTE_PACKED; |
64 | 64 | ||
65 | enum { | ||
65 | /* 169.254.0.0 */ | 66 | /* 169.254.0.0 */ |
66 | static const uint32_t LINKLOCAL_ADDR = 0xa9fe0000; | 67 | LINKLOCAL_ADDR = 0xa9fe0000, |
67 | 68 | ||
68 | /* protocol timeout parameters, specified in seconds */ | 69 | /* protocol timeout parameters, specified in seconds */ |
69 | static const unsigned PROBE_WAIT = 1; | 70 | PROBE_WAIT = 1, |
70 | static const unsigned PROBE_MIN = 1; | 71 | PROBE_MIN = 1, |
71 | static const unsigned PROBE_MAX = 2; | 72 | PROBE_MAX = 2, |
72 | static const unsigned PROBE_NUM = 3; | 73 | PROBE_NUM = 3, |
73 | static const unsigned MAX_CONFLICTS = 10; | 74 | MAX_CONFLICTS = 10, |
74 | static const unsigned RATE_LIMIT_INTERVAL = 60; | 75 | RATE_LIMIT_INTERVAL = 60, |
75 | static const unsigned ANNOUNCE_WAIT = 2; | 76 | ANNOUNCE_WAIT = 2, |
76 | static const unsigned ANNOUNCE_NUM = 2; | 77 | ANNOUNCE_NUM = 2, |
77 | static const unsigned ANNOUNCE_INTERVAL = 2; | 78 | ANNOUNCE_INTERVAL = 2, |
78 | static const time_t DEFEND_INTERVAL = 10; | 79 | DEFEND_INTERVAL = 10 |
80 | }; | ||
79 | 81 | ||
80 | static const unsigned char ZCIP_VERSION[] = "0.75 (18 April 2005)"; | 82 | static const unsigned char ZCIP_VERSION[] = "0.75 (18 April 2005)"; |
81 | static char *prog; | 83 | static char *prog; |