mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 07:03:07 +00:00
babeld: add AE!=0 check when type is 7 or 10.
Signed-off-by: zmw12306 <zmw12306@gmail.com>
This commit is contained in:
parent
9b96394d05
commit
2178d131b9
@ -493,7 +493,7 @@ parse_packet(const unsigned char *from, struct interface *ifp,
|
|||||||
int rc;
|
int rc;
|
||||||
rc = network_address(message[2], message + 4, len - 2,
|
rc = network_address(message[2], message + 4, len - 2,
|
||||||
nh);
|
nh);
|
||||||
if(rc < 0) {
|
if(rc <= 0) {
|
||||||
have_v4_nh = 0;
|
have_v4_nh = 0;
|
||||||
have_v6_nh = 0;
|
have_v6_nh = 0;
|
||||||
goto fail;
|
goto fail;
|
||||||
@ -644,7 +644,7 @@ parse_packet(const unsigned char *from, struct interface *ifp,
|
|||||||
DO_NTOHS(seqno, message + 4);
|
DO_NTOHS(seqno, message + 4);
|
||||||
rc = network_prefix(message[2], message[3], 0,
|
rc = network_prefix(message[2], message[3], 0,
|
||||||
message + 16, NULL, len - 14, prefix);
|
message + 16, NULL, len - 14, prefix);
|
||||||
if(rc < 0) goto fail;
|
if(rc <= 0) goto fail;
|
||||||
plen = message[3] + (message[2] == 1 ? 96 : 0);
|
plen = message[3] + (message[2] == 1 ? 96 : 0);
|
||||||
debugf(BABEL_DEBUG_COMMON,"Received request (%d) for %s from %s on %s (%s, %d).",
|
debugf(BABEL_DEBUG_COMMON,"Received request (%d) for %s from %s on %s (%s, %d).",
|
||||||
message[6],
|
message[6],
|
||||||
|
Loading…
Reference in New Issue
Block a user