diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-10-21 16:42:45 +0400 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-10-21 16:42:45 +0400 |
commit | 8fbd8ac8ddad83f7ea724f12a1f5e6bf4af50f88 (patch) | |
tree | 161401339554a4326c5ad2fe8f75b8b442e29b6a /networking/libiproute/utils.h | |
parent | 7effd7ae99b2288452762f29cde8311ec72c2cb8 (diff) |
- 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.h | 2 |
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 |