aboutsummaryrefslogtreecommitdiffstats
path: root/text2pcap.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2010-10-19 16:13:48 +0000
committerBill Meier <wmeier@newsguy.com>2010-10-19 16:13:48 +0000
commit6e011bbf6e13c131be90721f3f48bea292555f1b (patch)
tree916563012a95043b3508a8f8e7216a7ed5ee16cd /text2pcap.c
parent88622252b1af45f2e1f087701acce4ed8bfa6ee4 (diff)
Change dummy MAC addresses so we don't get Wireshark expert message:
"[...] Source MAC must not be a group address: IEEE 802.3-2002, Section 3.2.3(b)" Specifically: use 0a:01:01:01:01:01 and 0a:02:02:02;02:02 (and dummy IP addresses 10.1.1.1 and 10.2.2.2). svn path=/trunk/; revision=34571
Diffstat (limited to 'text2pcap.c')
-rw-r--r--text2pcap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/text2pcap.c b/text2pcap.c
index f75a9f48df..4b0ee8a236 100644
--- a/text2pcap.c
+++ b/text2pcap.c
@@ -250,8 +250,8 @@ typedef struct {
} hdr_ethernet_t;
static hdr_ethernet_t HDR_ETHERNET = {
- {0x02, 0x02, 0x02, 0x02, 0x02, 0x02},
- {0x01, 0x01, 0x01, 0x01, 0x01, 0x01},
+ {0x0a, 0x02, 0x02, 0x02, 0x02, 0x02},
+ {0x0a, 0x01, 0x01, 0x01, 0x01, 0x01},
0};
typedef struct {
@@ -268,7 +268,7 @@ typedef struct {
guint32 dest_addr;
} hdr_ip_t;
-static hdr_ip_t HDR_IP = {0x45, 0, 0, 0x3412, 0, 0, 0xff, 0, 0, 0x01010101, 0x02020202};
+static hdr_ip_t HDR_IP = {0x45, 0, 0, 0x3412, 0, 0, 0xff, 0, 0, 0x0101010a, 0x0202020a};
static struct { /* pseudo header for checksum calculation */
guint32 src_addr;