aboutsummaryrefslogtreecommitdiff
path: root/networking/route.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/route.c')
-rw-r--r--networking/route.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/networking/route.c b/networking/route.c
index bb5f9405b..49d219ae0 100644
--- a/networking/route.c
+++ b/networking/route.c
@@ -86,7 +86,7 @@
86/* We remap '-' to '#' to avoid problems with getopt. */ 86/* We remap '-' to '#' to avoid problems with getopt. */
87static const char tbl_hash_net_host[] = 87static const char tbl_hash_net_host[] =
88 "\007\001#net\0" 88 "\007\001#net\0"
89/* "\010\002#host\0" */ 89/* "\010\002#host\0" */
90 "\007\002#host" /* Since last, we can save a byte. */ 90 "\007\002#host" /* Since last, we can save a byte. */
91; 91;
92 92
@@ -128,7 +128,7 @@ static const char tbl_ipvx[] =
128#endif 128#endif
129 "\006\041mod\0" 129 "\006\041mod\0"
130 "\006\042dyn\0" 130 "\006\042dyn\0"
131/* "\014\043reinstate\0" */ 131/* "\014\043reinstate\0" */
132 "\013\043reinstate" /* Since last, we can save a byte. */ 132 "\013\043reinstate" /* Since last, we can save a byte. */
133; 133;
134 134
@@ -186,7 +186,7 @@ static void INET_setroute(int action, char **args)
186 const char *target = *args++; 186 const char *target = *args++;
187 187
188 /* Prefer hostname lookup is -host flag (xflag==1) was given. */ 188 /* Prefer hostname lookup is -host flag (xflag==1) was given. */
189 isnet = INET_resolve(target, (struct sockaddr_in *) &rt.rt_dst, 189 isnet = INET_resolve(target, (struct sockaddr_in *) &rt.rt_dst,
190 (xflag & HOST_FLAG)); 190 (xflag & HOST_FLAG));
191 if (isnet < 0) { 191 if (isnet < 0) {
192 bb_error_msg_and_die("resolving %s", target); 192 bb_error_msg_and_die("resolving %s", target);
@@ -459,7 +459,7 @@ static const unsigned int flagvals[] = { /* Must agree with flagchars[]. */
459#define IPV4_MASK (RTF_GATEWAY|RTF_HOST|RTF_REINSTATE|RTF_DYNAMIC|RTF_MODIFIED) 459#define IPV4_MASK (RTF_GATEWAY|RTF_HOST|RTF_REINSTATE|RTF_DYNAMIC|RTF_MODIFIED)
460#define IPV6_MASK (RTF_GATEWAY|RTF_HOST|RTF_DEFAULT|RTF_ADDRCONF|RTF_CACHE) 460#define IPV6_MASK (RTF_GATEWAY|RTF_HOST|RTF_DEFAULT|RTF_ADDRCONF|RTF_CACHE)
461 461
462static const char flagchars[] = /* Must agree with flagvals[]. */ 462static const char flagchars[] = /* Must agree with flagvals[]. */
463 "GHRDM" 463 "GHRDM"
464#ifdef CONFIG_FEATURE_IPV6 464#ifdef CONFIG_FEATURE_IPV6
465 "DAC" 465 "DAC"
@@ -645,10 +645,10 @@ static void INET6_displayroutes(int noresolve)
645#define ROUTE_OPT_INET6 0x08 /* Not an actual option. See below. */ 645#define ROUTE_OPT_INET6 0x08 /* Not an actual option. See below. */
646 646
647/* 1st byte is offset to next entry offset. 2nd byte is return value. */ 647/* 1st byte is offset to next entry offset. 2nd byte is return value. */
648static const char tbl_verb[] = /* 2nd byte matches RTACTION_* code */ 648static const char tbl_verb[] = /* 2nd byte matches RTACTION_* code */
649 "\006\001add\0" 649 "\006\001add\0"
650 "\006\002del\0" 650 "\006\002del\0"
651/* "\011\002delete\0" */ 651/* "\011\002delete\0" */
652 "\010\002delete" /* Since last, we can save a byte. */ 652 "\010\002delete" /* Since last, we can save a byte. */
653; 653;
654 654