summaryrefslogtreecommitdiffstats
path: root/pimd/pim_msg.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-03-30 05:02:41 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-03-30 15:34:03 +0200
commit34687162ce39d4c34bf60bc55ea13b597b04c2ac (patch)
tree779264054eb2213622460e54fe919534f29f30e0 /pimd/pim_msg.h
parentMerge pull request #297 from opensourcerouting/ldpd-openbsd (diff)
downloadfrr-34687162ce39d4c34bf60bc55ea13b597b04c2ac.tar.xz
frr-34687162ce39d4c34bf60bc55ea13b597b04c2ac.zip
pimd: Convert pim address family from #define -> enum
Convert the pim address family from a #define into an enum. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_msg.h')
-rw-r--r--pimd/pim_msg.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/pimd/pim_msg.h b/pimd/pim_msg.h
index de663aa3b..e5676289b 100644
--- a/pimd/pim_msg.h
+++ b/pimd/pim_msg.h
@@ -34,7 +34,11 @@
From:
http://www.iana.org/assignments/address-family-numbers
*/
-#define PIM_MSG_ADDRESS_FAMILY_IPV4 (1)
+enum pim_msg_address_family {
+ PIM_MSG_ADDRESS_FAMILY_RESERVED,
+ PIM_MSG_ADDRESS_FAMILY_IPV4,
+ PIM_MSG_ADDRESS_FAMILY_IPV6,
+};
/*
* Network Order pim_msg_hdr