The following is a trivial patch to text2pcap. The Ethernet header
structure is backwards.
Some other modifications I've made to text2pcap that I thought were
useful. Command line options to set the IP addresses, Ethernet Addresses.
Randomize the UDP ports, Ip addresses, and ethernet addresses. If anyone
thinks those would be useful let me know and I'll diff that also
Jason
--- text2pcap.c 2002-10-24 21:20:10.000000000 -0400
+++ text2pcap2.c 2003-02-22 13:40:11.000000000 -0500
@@ -211,8 +211,8 @@
/* ----- Skeleton Packet Headers --------------------------------------------------*/
typedef struct {
- guint8 src_addr[6];
guint8 dest_addr[6];
+ guint8 src_addr[6];
guint16 l3pid;
} hdr_ethernet_t;