ethernet.h (62267) | ethernet.h (63090) |
---|---|
1/* 2 * Fundamental constants relating to ethernet. 3 * | 1/* 2 * Fundamental constants relating to ethernet. 3 * |
4 * $FreeBSD: head/sys/net/ethernet.h 62267 2000-06-29 22:30:42Z archie $ | 4 * $FreeBSD: head/sys/net/ethernet.h 63090 2000-07-13 22:54:34Z archie $ |
5 * 6 */ 7 8#ifndef _NET_ETHERNET_H_ 9#define _NET_ETHERNET_H_ 10 11/* 12 * The number of bytes in an ethernet (MAC) address. --- 64 unchanged lines hidden (view full) --- 77#define ETHERTYPE_TRAIL 0x1000 /* Trailer packet */ 78#define ETHERTYPE_NTRAILER 16 79 80#define ETHERMTU (ETHER_MAX_LEN-ETHER_HDR_LEN-ETHER_CRC_LEN) 81#define ETHERMIN (ETHER_MIN_LEN-ETHER_HDR_LEN-ETHER_CRC_LEN) 82 83#ifdef _KERNEL 84 | 5 * 6 */ 7 8#ifndef _NET_ETHERNET_H_ 9#define _NET_ETHERNET_H_ 10 11/* 12 * The number of bytes in an ethernet (MAC) address. --- 64 unchanged lines hidden (view full) --- 77#define ETHERTYPE_TRAIL 0x1000 /* Trailer packet */ 78#define ETHERTYPE_NTRAILER 16 79 80#define ETHERMTU (ETHER_MAX_LEN-ETHER_HDR_LEN-ETHER_CRC_LEN) 81#define ETHERMIN (ETHER_MIN_LEN-ETHER_HDR_LEN-ETHER_CRC_LEN) 82 83#ifdef _KERNEL 84 |
85/* 86 * For device drivers to specify whether they support BPF or not 87 */ 88#define ETHER_BPF_UNSUPPORTED 0 89#define ETHER_BPF_SUPPORTED 1 90 |
|
85struct ifnet; 86struct mbuf; 87 88extern void (*ng_ether_input_p)(struct ifnet *ifp, 89 struct mbuf **mp, struct ether_header *eh); 90extern void (*ng_ether_input_orphan_p)(struct ifnet *ifp, 91 struct mbuf *m, struct ether_header *eh); 92extern int (*ng_ether_output_p)(struct ifnet *ifp, struct mbuf **mp); --- 21 unchanged lines hidden --- | 91struct ifnet; 92struct mbuf; 93 94extern void (*ng_ether_input_p)(struct ifnet *ifp, 95 struct mbuf **mp, struct ether_header *eh); 96extern void (*ng_ether_input_orphan_p)(struct ifnet *ifp, 97 struct mbuf *m, struct ether_header *eh); 98extern int (*ng_ether_output_p)(struct ifnet *ifp, struct mbuf **mp); --- 21 unchanged lines hidden --- |