diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-05-04 16:44:51 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-06-02 19:44:37 +0200 |
commit | 7656e7fc468b89dec8399a8034c18064f7ddf71b (patch) | |
tree | b9f48c2e503a658dd65637a6f83668a8e2c1e167 /pimd/pimd.c | |
parent | ospfd: Make OSPF TE warnings be less chatty (diff) | |
download | frr-7656e7fc468b89dec8399a8034c18064f7ddf71b.tar.xz frr-7656e7fc468b89dec8399a8034c18064f7ddf71b.zip |
pimd: Remove qpim_inaddr_any
In prep for switching over to having PIM understand VRF
remove the qpim_inaddr_any global variable and just
use INADDR_ANY directly.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pimd.c')
-rw-r--r-- | pimd/pimd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pimd/pimd.c b/pimd/pimd.c index 51a0833cd..c31d2a99a 100644 --- a/pimd/pimd.c +++ b/pimd/pimd.c @@ -61,7 +61,6 @@ struct thread *qpim_rpf_cache_refresher = NULL; int64_t qpim_rpf_cache_refresh_requests = 0; int64_t qpim_rpf_cache_refresh_events = 0; int64_t qpim_rpf_cache_refresh_last = 0; -struct in_addr qpim_inaddr_any; struct list *qpim_ssmpingd_list = NULL; struct in_addr qpim_ssmpingd_group_addr; int64_t qpim_scan_oil_events = 0; @@ -293,7 +292,6 @@ void pim_init() pim_mroute_socket_enable(); - qpim_inaddr_any.s_addr = PIM_NET_INADDR_ANY; /* RFC 4601: 4.6.3. Assert Metrics @@ -306,7 +304,7 @@ void pim_init() qpim_infinite_assert_metric.rpt_bit_flag = 1; qpim_infinite_assert_metric.metric_preference = PIM_ASSERT_METRIC_PREFERENCE_MAX; qpim_infinite_assert_metric.route_metric = PIM_ASSERT_ROUTE_METRIC_MAX; - qpim_infinite_assert_metric.ip_address = qpim_inaddr_any; + qpim_infinite_assert_metric.ip_address.s_addr = INADDR_ANY; pim_if_init(); pim_cmd_init(); |