diff options
author | Thomas Graf <tgraf@suug.ch> | 2005-05-04 01:29:39 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-05-04 01:29:39 +0400 |
commit | db46edc6d3b66bf708a8f23a9aa89f63a49ebe33 (patch) | |
tree | 7b3d9568a5561b5344e98dc8d881481420b8e581 /include/linux/rtnetlink.h | |
parent | f90a0a74b864fdc46737614f03b8868f4f31e3bf (diff) | |
download | linux-db46edc6d3b66bf708a8f23a9aa89f63a49ebe33.tar.xz |
[RTNETLINK] Cleanup rtnetlink_link tables
Converts remaining rtnetlink_link tables to use c99 designated
initializers to make greping a little bit easier.
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/rtnetlink.h')
-rw-r--r-- | include/linux/rtnetlink.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/rtnetlink.h b/include/linux/rtnetlink.h index 1ecaea74d55a..91ac97c20777 100644 --- a/include/linux/rtnetlink.h +++ b/include/linux/rtnetlink.h @@ -93,6 +93,8 @@ enum { #define RTM_MAX (((__RTM_MAX + 3) & ~3) - 1) }; +#define RTM_NR_MSGTYPES (RTM_MAX + 1 - RTM_BASE) +#define RTM_NR_FAMILIES (RTM_NR_MSGTYPES >> 2) #define RTM_FAM(cmd) (((cmd) - RTM_BASE) >> 2) /* |