diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2007-12-31 10:29:52 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2007-12-31 10:29:52 -0800 |
commit | 6b1ac654e9364ad279d3c82d8a3ef93efa9f3dfa (patch) | |
tree | 3fde7787703385eefe5d6dfbc541349f71e70ae2 /include/utils.h | |
parent | ea5dd59c03b36fe2acec8f03a8d7a2f7b7036b04 (diff) |
add decode of match rules
Show ip address etc when decoding output of tc filter show
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
Diffstat (limited to 'include/utils.h')
-rw-r--r-- | include/utils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/utils.h b/include/utils.h index 7223a10d..5daed6b3 100644 --- a/include/utils.h +++ b/include/utils.h @@ -74,6 +74,7 @@ extern int get_addr_1(inet_prefix *dst, const char *arg, int family); extern int get_prefix_1(inet_prefix *dst, char *arg, int family); extern int get_addr(inet_prefix *dst, const char *arg, int family); extern int get_prefix(inet_prefix *dst, char *arg, int family); +extern int mask2bits(__u32 netmask); extern int get_integer(int *val, const char *arg, int base); extern int get_unsigned(unsigned *val, const char *arg, int base); |