aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/wtap.h
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2009-02-16 07:24:04 +0000
committerStephen Fisher <steve@stephen-fisher.com>2009-02-16 07:24:04 +0000
commit18f3436e85cd898995e4635c8de204d19d3aec86 (patch)
tree8c57e4d8da5544e0db05149a4119ebca4b7ffd0d /wiretap/wtap.h
parent5742ede54c6427d581c718ffd7c2e43cfe40bf56 (diff)
Add support for reading Apple's Bluetooth PacketLogger capture files to
wiretap. Modify various other locations to accommodate the fact that PacketLogger files do not specify the direction of packets. svn path=/trunk/; revision=27463
Diffstat (limited to 'wiretap/wtap.h')
-rw-r--r--wiretap/wtap.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/wiretap/wtap.h b/wiretap/wtap.h
index cbcee2e74e..1ead2e817d 100644
--- a/wiretap/wtap.h
+++ b/wiretap/wtap.h
@@ -269,6 +269,7 @@ extern "C" {
#define WTAP_FILE_X2E_XORAYA 52
#define WTAP_FILE_TNEF 53
#define WTAP_FILE_DCT3TRACE 54
+#define WTAP_FILE_PACKETLOGGER 55
#define WTAP_NUM_FILE_TYPES wtap_get_num_file_types()
@@ -427,9 +428,14 @@ struct ascend_phdr {
guint32 task; /* Task number */
};
+/* Also defined in epan/packet_info.h */
+#define P2P_DIR_UNKNOWN -1
+#define P2P_DIR_SENT 0
+#define P2P_DIR_RECV 1
+
/* Packet "pseudo-header" for point-to-point links with direction flags. */
struct p2p_phdr {
- gboolean sent; /* TRUE=sent, FALSE=received */
+ int sent; /* TRUE=sent, FALSE=received, -1=unknown*/
};
/*