-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pim6d: Handle receive of pimv6 register packet #10707
Conversation
This should probably be combined with the register changes in #10661 (and the mroute changes be separate) |
Yeah David, I have discussed with Saranya, she is going to split the "mroute" and "sending of register msg" changes into 2 separate PRs. We will keep this PR to handle the receive of register packet. This PR is ready for review. |
Continuous Integration Result: SUCCESSFULContinuous Integration Result: SUCCESSFULCongratulations, this patch passed basic tests Tested-by: NetDEF / OpenSourceRouting.org CI System CI System Testrun URL: https://ci1.netdef.org/browse/FRR-PULLREQ2-3850/ This is a comment from an automated CI system. Warnings Generated during build:Checkout code: Successful with additional warnings
|
Continuous Integration Result: SUCCESSFULContinuous Integration Result: SUCCESSFULCongratulations, this patch passed basic tests Tested-by: NetDEF / OpenSourceRouting.org CI System CI System Testrun URL: https://ci1.netdef.org/browse/FRR-PULLREQ2-3853/ This is a comment from an automated CI system. Warnings Generated during build:Checkout code: Successful with additional warnings
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
has room for a few minor improvements
pimd/pim_register.c
Outdated
if (PIM_DEBUG_PIM_PACKETS) | ||
zlog_debug( | ||
"%s: Received Register message with Border bit set", | ||
__func__); | ||
|
||
if (pimbr.s_addr == pim_br_unknown.s_addr) | ||
if (!pim_addr_cmp(pimbr, PIMADDR_ANY)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pim_addr_is_any
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
pimd/pim_msg.h
Outdated
@@ -158,10 +161,16 @@ struct pim_encoded_source_ipv6 { | |||
typedef struct pim_encoded_ipv4_unicast pim_encoded_unicast; | |||
typedef struct pim_encoded_group_ipv4 pim_encoded_group; | |||
typedef struct pim_encoded_source_ipv4 pim_encoded_source; | |||
typedef struct ip ipv_hdr; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be done better: create two (for each IP version, in ifdef) pim_sgaddr pim_sgaddr_from_iphdr(const void *iphdr)
helper functions ⇒ no need for ipv_hdr
+ IPV_SRC
+ IPV_DST
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
IPv4 uses "struct ip" and IPv6 uses "struct ip6_hdr" as headers. Get the src and dst in pim_sgaddr. Added api pim_sgaddr_from_iphdr to do so. Signed-off-by: Mobashshera Rasool <mrasool@vmwaer.com>
2a132b1
to
5792446
Compare
Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
5792446
to
e782863
Compare
Continuous Integration Result: FAILEDContinuous Integration Result: FAILEDSee below for issues. This is a comment from an automated CI system. Get source / Pull Request: SuccessfulBuilding Stage: SuccessfulBasic Tests: FailedTopotests Ubuntu 18.04 amd64 part 9: Failed (click for details)Topology Test Results are at https://ci1.netdef.org/browse/FRR-PULLREQ2-TOPO9U18AMD64-4039/test Topology Tests failed for Topotests Ubuntu 18.04 amd64 part 9 Successful on other platforms/tests
|
Continuous Integration Result: FAILEDContinuous Integration Result: FAILEDSee below for issues. This is a comment from an automated CI system. Get source / Pull Request: SuccessfulBuilding Stage: SuccessfulBasic Tests: FailedTopotests debian 10 amd64 part 9: Failed (click for details)Topology Test Results are at https://ci1.netdef.org/browse/FRR-PULLREQ2-TOPO9DEB10AMD64-4040/test Topology Tests failed for Topotests debian 10 amd64 part 9 Successful on other platforms/tests
|
ospf test case has failed which is unrelated to this change. rerunning the ci. |
ci:rerun |
Continuous Integration Result: SUCCESSFULCongratulations, this patch passed basic tests Tested-by: NetDEF / OpenSourceRouting.org CI System CI System Testrun URL: https://ci1.netdef.org/browse/FRR-PULLREQ2-4044/ This is a comment from an automated CI system. |
Handle receive of pimv6 register packet
Once the send register flow is handled, will move the pim_register.c to pim_common in subdir.am
Signed-off-by: Mobashshera Rasool mrasool@vmware.com