]> git.ipfire.org Git - thirdparty/lldpd.git/commit
lldpd: limit tx ttl to 65535 672/head
authorHangbin Liu <liuhangbin@gmail.com>
Wed, 10 Jul 2024 07:49:32 +0000 (15:49 +0800)
committerHangbin Liu <liuhangbin@gmail.com>
Wed, 10 Jul 2024 08:16:23 +0000 (16:16 +0800)
commita73e04f46ebe3d5e9d0805c52b9e5d0472e65069
treecfda8bd7283a8d34fe572a43e273ea4fb7aaf26d
parent7b9abb819337dd50583350105afbdc82302f00ff
lldpd: limit tx ttl to 65535

Based on IEEE 802.1AB(2016) 9.2.5.22 txTTL:
  During normal operation, txTTL is set to whichever is the smaller of the
  values represented by Equation (1) and Equation (2):
      (msgTxInterval x msgTxHold) + 1   (1)
      65535                             (2)

Reported-by: Matt Lucius <malucius@redhat.com>
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
src/daemon/client.c
src/daemon/lldpd.c