Skip to content

Commit 7ce32a5

Browse files
authored
Merge pull request #995 from Auerswald-GmbH/NEW_DLT_297
Added new DLT_AUERSWALD_LOG and LINKTYPE_AUERSWALD_LOG
2 parents e716c4f + f47996c commit 7ce32a5

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

pcap-common.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1230,7 +1230,16 @@
12301230
#define LINKTYPE_USB_2_0_FULL_SPEED 294
12311231
#define LINKTYPE_USB_2_0_HIGH_SPEED 295
12321232

1233-
#define LINKTYPE_MATCHING_MAX 295 /* highest value in the "matching" range */
1233+
/*
1234+
* Auerswald Logger Protocol
1235+
* description is provided on
1236+
* https://github.com/Auerswald-GmbH/auerlog/blob/master/auerlog.txt
1237+
* requested by Auerswald Developer Team <developer(at)auerswald.de>
1238+
*/
1239+
#define LINKTYPE_AUERSWALD_LOG 296
1240+
1241+
#define LINKTYPE_MATCHING_MAX 296 /* highest value in the "matching" range */
1242+
12341243

12351244
/*
12361245
* The DLT_ and LINKTYPE_ values in the "matching" range should be the

pcap/dlt.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1587,6 +1587,13 @@
15871587
#define DLT_USB_2_0_FULL_SPEED 294
15881588
#define DLT_USB_2_0_HIGH_SPEED 295
15891589

1590+
/*
1591+
* Auerswald Logger Protocol
1592+
* description is provided on
1593+
* https://github.com/Auerswald-GmbH/auerlog/blob/master/auerlog.txt
1594+
*/
1595+
#define DLT_AUERSWALD_LOG 296
1596+
15901597
/*
15911598
* In case the code that includes this file (directly or indirectly)
15921599
* has also included OS files that happen to define DLT_MATCHING_MAX,
@@ -1597,6 +1604,7 @@
15971604
#ifdef DLT_MATCHING_MAX
15981605
#undef DLT_MATCHING_MAX
15991606
#endif
1600-
#define DLT_MATCHING_MAX 295 /* highest value in the "matching" range */
1607+
1608+
#define DLT_MATCHING_MAX 296 /* highest value in the "matching" range */
16011609

16021610
#endif /* !defined(lib_pcap_dlt_h) */

0 commit comments

Comments
 (0)