summaryrefslogtreecommitdiff
path: root/bfdd/bfd_packet.c
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2023-03-07 09:33:33 -0500
committerGitHub <noreply@github.com>2023-03-07 09:33:33 -0500
commitbafc9c5dbf274df2bc179277db13a0063390c085 (patch)
tree48b05d9adc663a97f3f22483a34886019bc17788 /bfdd/bfd_packet.c
parent44ff41e5660f8181cb6de94a61d15447e983b8bc (diff)
parentc9aac2c38a2639c17d77cd85b20bf42237b70aa6 (diff)
Merge pull request #12940 from anlancs/fix/bfd-clean-echo
bfdd: remove useless check for ECHO packet
Diffstat (limited to 'bfdd/bfd_packet.c')
-rw-r--r--bfdd/bfd_packet.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/bfdd/bfd_packet.c b/bfdd/bfd_packet.c
index 7be235326c..88a9310bc6 100644
--- a/bfdd/bfd_packet.c
+++ b/bfdd/bfd_packet.c
@@ -140,7 +140,7 @@ int _ptm_bfd_send(struct bfd_session *bs, uint16_t *port, const void *data,
* sizeof(*pkt)
*
* ip
- * IP address that pkt will be transmitted from and too.
+ * IP address that pkt will be transmitted from and to.
*
* Returns:
* Checksum in network byte order.
@@ -481,12 +481,6 @@ ssize_t bfd_recv_ipv4_fp(int sd, uint8_t *msgbuf, size_t msgbuflen,
*ttl = ip->ttl;
if (*ttl != 254) {
- /* Echo should be looped in peer's forwarding plane, but it also
- * comes up to BFD so silently drop it
- */
- if (ip->daddr == ip->saddr)
- return -1;
-
if (bglobal.debug_network)
zlog_debug("%s: invalid TTL: %u", __func__, *ttl);
return -1;