diff options
author | Klement Sekera <ksekera@cisco.com> | 2017-02-14 07:11:52 +0100 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2017-02-15 12:10:23 +0000 |
commit | aeeac3bf4429235c952ce54abad7d3729be6a2f5 (patch) | |
tree | cbdd7eb65a86687988557f87f92ecde6ed0f97b8 /test/bfd.py | |
parent | 12ba252193148c06137a4f811aee71fec0801ea4 (diff) |
BFD: loop back echo packets
Change-Id: I772b63ac25ebfccaff9ab9d8d0b1445e85f21df7
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'test/bfd.py')
-rw-r--r-- | test/bfd.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/bfd.py b/test/bfd.py index 09a7681c..8eb3b36a 100644 --- a/test/bfd.py +++ b/test/bfd.py @@ -6,7 +6,7 @@ from scapy.all import bind_layers from scapy.layers.inet import UDP from scapy.packet import Packet from scapy.fields import BitField, BitEnumField, XByteField, FlagsField,\ - ConditionalField, StrField + ConditionalField, StrField from vpp_object import VppObject from util import NumericConstant @@ -110,6 +110,7 @@ class BFD(Packet): """ BFD protocol layer for scapy """ udp_dport = 3784 #: BFD destination port per RFC 5881 + udp_dport_echo = 3785 # : BFD destination port for ECHO per RFC 5881 udp_sport_min = 49152 #: BFD source port min value per RFC 5881 udp_sport_max = 65535 #: BFD source port max value per RFC 5881 bfd_pkt_len = 24 # : length of BFD pkt without authentication section |