diff options
author | Donald Sharp <sharpd@cumulusnetwroks.com> | 2016-07-13 02:13:32 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetwroks.com> | 2016-07-13 02:13:32 +0200 |
commit | 4416b1f6c2d8b8a08a34ad19a22f24c30a922fff (patch) | |
tree | 6792c0c0d263e91a02f9866e387f53f026ecd881 /pimd/pim_assert.c | |
parent | pimd: Some Initial Groundwork for register stop (diff) | |
download | frr-4416b1f6c2d8b8a08a34ad19a22f24c30a922fff.tar.xz frr-4416b1f6c2d8b8a08a34ad19a22f24c30a922fff.zip |
pimd: Refactor some encode/decode functions
Some encode/decode functions are needed in multiple places.
Start the refactoring to be able to use them in a more generic
manner.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_assert.c')
-rw-r--r-- | pimd/pim_assert.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/pimd/pim_assert.c b/pimd/pim_assert.c index 9f9c9e66f..d3df6a110 100644 --- a/pimd/pim_assert.c +++ b/pimd/pim_assert.c @@ -258,9 +258,7 @@ int pim_assert_recv(struct interface *ifp, /* Parse assert group addr */ - offset = pim_parse_addr_group(ifp->name, src_addr, - &msg_group_addr, - curr, curr_size); + offset = pim_parse_addr_group (&msg_group_addr, curr, curr_size); if (offset < 1) { char src_str[100]; pim_inet4_dump("<src?>", src_addr, src_str, sizeof(src_str)); @@ -275,9 +273,7 @@ int pim_assert_recv(struct interface *ifp, /* Parse assert source addr */ - offset = pim_parse_addr_ucast(ifp->name, src_addr, - &msg_source_addr, - curr, curr_size); + offset = pim_parse_addr_ucast (&msg_source_addr, curr, curr_size); if (offset < 1) { char src_str[100]; pim_inet4_dump("<src?>", src_addr, src_str, sizeof(src_str)); |