diff options
Diffstat (limited to 'proto/bfd/packets.c')
-rw-r--r-- | proto/bfd/packets.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/proto/bfd/packets.c b/proto/bfd/packets.c index 964172d8..49b69bed 100644 --- a/proto/bfd/packets.c +++ b/proto/bfd/packets.c @@ -101,8 +101,8 @@ bfd_rx_hook(sock *sk, int len) uint err_val = 0; char fb[8]; - if ((sk->sport == BFD_CONTROL_PORT) && (sk->ttl < 255)) - DROP("wrong TTL", sk->ttl); + if ((sk->sport == BFD_CONTROL_PORT) && (sk->rcv_ttl < 255)) + DROP("wrong TTL", sk->rcv_ttl); if (len < BFD_BASE_LEN) DROP("too short", len); @@ -209,6 +209,7 @@ bfd_open_rx_sk(struct bfd_proto *p, int multihop) return sk; err: + sk_log_error(sk, p->p.name); rfree(sk); return NULL; } @@ -243,6 +244,7 @@ bfd_open_tx_sk(struct bfd_proto *p, ip_addr local, struct iface *ifa) return sk; err: + sk_log_error(sk, p->p.name); rfree(sk); return NULL; } |