summaryrefslogtreecommitdiffstats
path: root/include/linux/rtnetlink.h
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2005-05-03 14:29:39 -0700
committerDavid S. Miller <davem@davemloft.net>2005-05-03 14:29:39 -0700
commitdb46edc6d3b66bf708a8f23a9aa89f63a49ebe33 (patch)
tree7b3d9568a5561b5344e98dc8d881481420b8e581 /include/linux/rtnetlink.h
parentf90a0a74b864fdc46737614f03b8868f4f31e3bf (diff)
downloadop-kernel-dev-db46edc6d3b66bf708a8f23a9aa89f63a49ebe33.zip
op-kernel-dev-db46edc6d3b66bf708a8f23a9aa89f63a49ebe33.tar.gz
[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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/rtnetlink.h b/include/linux/rtnetlink.h
index 1ecaea7..91ac97c 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)
/*
OpenPOWER on IntegriCloud