| Age | Commit message (Collapse) | Author |
|
Done with a combination of regex'ing and banging my head against a wall.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
|
|
This commit adds a new option to control whether a VRRPv3 group
accepts / computes its checksum with a prepended IPv4 pseudoheader.
This should improve interoperability with other devices.
Signed-off-by: Siger Yang <siger.yang@outlook.com>
|
|
const const const your boat, merrily down the stream...
Signed-off-by: David Lamparter <equinox@diac24.net>
|
|
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
|
|
Based on looking at other vendors, seems I misinterpreted the RFC - type
0 auth (no authentication) still requires the authentication fields to
be present, just set to all zero.
This should fix VRRPv2 interop with other vendors.
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
|
|
Move a bit more validation into vrrp_packet.c
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
|
|
And retrieve source address, since we need it anyway.
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
|
|
* Prefix all packet functions with 'vrrp_pkt'
* Break out checksum computation into separate function
* Accept version field when building advertisements
* Update doc comments
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
|
|
* Add include guards where missing
* Add include guard comments where missing
* Fix copyright notices
* Sort includes
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
|
|
Correctly compute VRRPv3 checksum. Pseudoheaders are used for both IPv4
and IPv6.
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
|
|
* Validate IPvX headers and packet contents
* Remove filter of non-255 TTL IPv4 packets; better to receive, log and
drop them ourselves
* Set outgoing packet TTL / hop limit to 255
* Use existing sockopt functions
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
|
|
Add initial support for IPv6.
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
|
|
* Properly encode VRRP packets
* Calculate checksum appropriately
* Update signature to provide caller both packet and result length
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
|
|
Pick up some smartness from keepalived.
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
|
|
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
|