On Thu, Jan 30, 2003 at 02:57:11PM -0500, Derrick wrote:
| I've been looking for the sniffer.c file that the pcap.html documentation
| refers to. however none of the mirrors have this file nor the main
| www.tcpdump.org site.(arg!). I'm having problems with the structures that
| contain the TCP and IP headers. specifically
|
| /* Ethernet header */
| struct sniff_ethernet {
| u_char ether_dhost[ETHER_ADDR_LEN]; /* Destination host address */
| u_char ether_shost[ETHER_ADDR_LEN]; /* Source host address */
| u_short ether_type; /* IP? ARP? RARP? etc */
| };
| ETHER_ADDR_LEN is not defined ANYWERE !!!
| I'm new to network programming so finding this is has been difficult. I had
| hoped that finding the sniffer.c program would help unravel this mystery that
| every one else seams to know about...
ETHER_ADDR_LEN is typically defined to 6 to represent the byte lenght of
48-bit IEEE MAC adresses;
/hannes
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe