aboutsummaryrefslogtreecommitdiffstats
path: root/savefile.c
diff options
context:
space:
mode:
authorguy <guy>2008-11-18 07:48:56 +0000
committerguy <guy>2008-11-18 07:48:56 +0000
commitb77695d2ec47dbccafd1ae7048b5cf7a1c7888ea (patch)
tree636041dcead65ffe10b002116bc6673d3fcf1121 /savefile.c
parente8fbb040cedf65c409dd5d82d9307a1f52690d7b (diff)
Propagate from the git tree:
Author: Michael Richardson <mcr@sandelman.ca> Date: Thu Nov 13 11:42:19 2008 -0500 added DLT_LINUX_EVDEV for David Gibson <david@gibson.dropbear.id.au> Fix the name of the devices, and add LINKTYPE_LINUX_EVDEV.
Diffstat (limited to 'savefile.c')
-rw-r--r--savefile.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/savefile.c b/savefile.c
index 2624e2f..66ba16b 100644
--- a/savefile.c
+++ b/savefile.c
@@ -30,7 +30,7 @@
#ifndef lint
static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/libpcap/savefile.c,v 1.178 2008-10-06 15:27:32 gianluca Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/savefile.c,v 1.179 2008-11-18 07:48:56 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -647,6 +647,14 @@ static const char rcsid[] _U_ =
*/
#define LINKTYPE_IEEE802_15_4_NONASK_PHY 215
+/*
+ * David Gibson <david@gibson.dropbear.id.au> requested this for
+ * captures from the Linux kernel /dev/input/eventN devices. This
+ * is used to communicate keystrokes and mouse movements from the
+ * Linux kernel to display systems, such as Xorg.
+ */
+#define LINKTYPE_LINUX_EVDEV 216
+
static struct linktype_map {
int dlt;
@@ -952,6 +960,9 @@ static struct linktype_map {
/* IEEE 802.15.4 with PHY data for non-ASK PHYs */
{ DLT_IEEE802_15_4_NONASK_PHY, LINKTYPE_IEEE802_15_4_NONASK_PHY },
+ /* Input device events from Linux /dev/input/eventN devices */
+ { DLT_LINUX_EVDEV, LINKTYPE_LINUX_EVDEV },
+
{ -1, -1 }
};