mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Add declaration for struct ether_addr (this is where Sun documents
it to go).
This commit is contained in:
parent
812647ed6b
commit
5f6d32c735
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7575
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)if_ether.h 8.1 (Berkeley) 6/10/93
|
||||
* $Id: if_ether.h,v 1.6 1994/12/22 21:56:22 wollman Exp $
|
||||
* $Id: if_ether.h,v 1.7 1994/12/22 22:00:30 wollman Exp $
|
||||
*/
|
||||
|
||||
#ifndef _NETINET_IF_ETHER_H_
|
||||
@ -46,6 +46,13 @@ struct ether_header {
|
||||
u_short ether_type;
|
||||
};
|
||||
|
||||
/*
|
||||
* Structure of a 48-bit Ethernet address.
|
||||
*/
|
||||
struct ether_addr {
|
||||
u_char octet[6];
|
||||
};
|
||||
|
||||
#define ETHERTYPE_PUP 0x0200 /* PUP protocol */
|
||||
#define ETHERTYPE_IP 0x0800 /* IP protocol */
|
||||
#define ETHERTYPE_ARP 0x0806 /* Addr. resolution protocol */
|
||||
|
Loading…
Reference in New Issue
Block a user