]>
The Tcpdump Group git mirrors - tcpdump/blob - missing/win_ether_ntohost.h
2 * Redistribution and use in source and binary forms, with or without
3 * modification, are permitted provided that: (1) source code distributions
4 * retain the above copyright notice and this paragraph in its entirety, (2)
5 * distributions including binary code include the above copyright notice and
6 * this paragraph in its entirety in the documentation or other materials
7 * provided with the distribution, and (3) all advertising materials mentioning
8 * features or use of this software display the following acknowledgement:
9 * ``This product includes software developed by the University of California,
10 * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
11 * the University nor the names of its contributors may be used to endorse
12 * or promote products derived from this software without specific prior
14 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
15 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
16 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
18 * tcpdump/Win32 functions for reading and parsing system's Ethernet
20 * '%SystemRoot%/drivers/etc/ethers' (Win-NT+)
21 * or '%Windir%/etc/ethers' (Win-9x/ME)
23 * G. Vanem <gvanem@yahoo.no> 2012.
27 * The number of bytes in an ethernet (MAC) address.
29 #define ETHER_ADDR_LEN 6
31 typedef struct ether_addr
{
32 unsigned char octet
[ETHER_ADDR_LEN
];