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: #6943.
(cherry picked from commit 7632236)
  • Loading branch information
victorjulien committed Apr 17, 2024
1 parent 677abc6 commit 04b6b96
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 @@ -1150,6 +1150,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 @@ -252,6 +252,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 04b6b96

Please sign in to comment.