diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-03-30 05:02:41 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-03-30 15:34:03 +0200 |
commit | 34687162ce39d4c34bf60bc55ea13b597b04c2ac (patch) | |
tree | 779264054eb2213622460e54fe919534f29f30e0 /pimd/pim_msg.h | |
parent | Merge pull request #297 from opensourcerouting/ldpd-openbsd (diff) | |
download | frr-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.h | 6 |
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 |