Commit Graph

9 Commits

Author SHA1 Message Date
Francois-Xavier Le Bail
94a3708f00 Include <config.h> unconditionally
Builds using Autotools or CMake generate config.h, thus remove the
'#ifdef HAVE_CONFIG_H'/'#endif'.

Remove also the 'add_definitions(-DHAVE_CONFIG_H)' in CMakeLists.txt.
2024-03-28 05:34:34 +00:00
Francois-Xavier Le Bail
196eeb1953 NHRP: Remove an unnecessary include 2023-10-27 21:45:36 +00:00
Guy Harris
7865163989 Speak of MAC-48s rather than MAC or Ethernet addresses.
Not all MAC-48s are Ethernet addresses; a lot of them are IEEE 802.11
addresses, for example.

Use the IEEE term.
2023-07-14 00:27:39 -07:00
Denis Ovsienko
1996f8b960 NHRP: Fix typos in a comment. [skip ci] 2023-04-28 21:15:05 +01:00
Guy Harris
f305b205c5 nhrp: fix infinite loop on malformed packets.
If a CIE doesn't fit in the remainder of the mandatory part, return the
length of that remainder, so that the loop processing the CIE
terminates.

Add capture that produced the infinite loop.
2023-04-25 13:37:56 -07:00
Francois-Xavier Le Bail
5c13f551fa Fix a typo
[skip ci]
2023-04-22 11:00:31 +02:00
Guy Harris
7a8e7f79c4 nhrp: handle draft-detienne-dmvpn-01, improve indication decoding.
Handle the I-D draft-detienne-dmvpn-01 traffic indication packet.

Print the error code in an error indication symbolically if it's a known
code.

Print the address fields in the mandatory part of the header for error
and traffic indication packets.
2023-04-12 00:14:53 -07:00
Guy Harris
1f3cdf9e55 nhrp: add casts to squelch narrowing warnings.
Get rid of some commented-out code while we're at it.
2023-04-11 04:21:10 -07:00
Guy Harris
6c8a3facc7 Add support for dissecting RFC 2332 NHRP.
This is from the OpenBSD tcpdump.
2023-04-11 04:11:49 -07:00