Skip to content

Commit

Permalink
pcap: support LINKTYPE_IPV6 (229)
Browse files Browse the repository at this point in the history
This is just another variant of DLT_RAW.

Ticket: OISF#6943.
  • Loading branch information
victorjulien committed Apr 13, 2024
1 parent 49c67b2 commit 7632236
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/decode.h
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,7 @@ void DecodeUnregisterCounters(void);
* Libpcap on at least OpenBSD returns 101 as datalink type for RAW pcaps though. */
#define LINKTYPE_RAW2 101
#define LINKTYPE_IPV4 228
#define LINKTYPE_IPV6 229
#define LINKTYPE_GRE_OVER_IP 778
#define LINKTYPE_CISCO_HDLC DLT_C_HDLC
#define PPP_OVER_GRE 11
Expand Down
1 change: 1 addition & 0 deletions src/source-pcap-file-helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ TmEcode ValidateLinkType(int datalink, DecoderFunc *DecoderFn)
*DecoderFn = DecodePPP;
break;
case LINKTYPE_IPV4:
case LINKTYPE_IPV6:
case LINKTYPE_RAW:
case LINKTYPE_RAW2:
case LINKTYPE_GRE_OVER_IP:
Expand Down

0 comments on commit 7632236

Please sign in to comment.