aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/utils.h
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-10-21 12:42:45 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-10-21 12:42:45 +0000
commit8fbd8ac8ddad83f7ea724f12a1f5e6bf4af50f88 (patch)
tree161401339554a4326c5ad2fe8f75b8b442e29b6a /networking/libiproute/utils.h
parent7effd7ae99b2288452762f29cde8311ec72c2cb8 (diff)
downloadbusybox-8fbd8ac8ddad83f7ea724f12a1f5e6bf4af50f88.tar.gz
- fix ip route rejecting dotted quads as prefix
- adjust error message for wrong prefix not to mention address Previously e.g. ip route add 127.0.0.0/255.0.0.0 dev dummy0 was rejected, saying ip: an inet address is expected rather than "127.0.0.0/255.0.0.0" function old new delta get_prefix_1 201 309 +108 get_prefix 55 73 +18 get_addr 55 73 +18 get_addr32 48 58 +10 get_addr_1 249 204 -45 .rodata 114569 114524 -45 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/2 up/down: 154/-90) Total: 64 bytes
Diffstat (limited to 'networking/libiproute/utils.h')
-rw-r--r--networking/libiproute/utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/networking/libiproute/utils.h b/networking/libiproute/utils.h
index 607083af8..1af39ffe1 100644
--- a/networking/libiproute/utils.h
+++ b/networking/libiproute/utils.h
@@ -39,6 +39,8 @@ typedef struct {
uint32_t data[4];
} inet_prefix;
+#define PREFIXLEN_SPECIFIED 1
+
#define DN_MAXADDL 20
#ifndef AF_DECnet
#define AF_DECnet 12