]> git.puffer.fish Git - mirror/frr.git/commit
bfdd: Remove useless check for ECHO packet 12940/head
authoranlan_cs <vic.lan@pica8.com>
Thu, 2 Mar 2023 09:57:17 +0000 (17:57 +0800)
committeranlan_cs <vic.lan@pica8.com>
Fri, 3 Mar 2023 10:25:12 +0000 (18:25 +0800)
commitc9aac2c38a2639c17d77cd85b20bf42237b70aa6
tree2e942c525342f0796c483933428f0bd612301a7d
parenta91520cfaff0485346f8cf8a1c575f51fef3c46b
bfdd: Remove useless check for ECHO packet

The check with `ip->daddr == ip->saddr` in `bfd_recv_ipv4_fp()` is
useless, instead of it the ECHO packets should simply exit with
TTL checking failure regardless of this condition check.

Just remove the check.

Signed-off-by: anlan_cs <vic.lan@pica8.com>
bfdd/bfd_packet.c