2 * Copyright (c) 2004 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
21 * @APPLE_LICENSE_HEADER_END@
24 #ifndef _NET_IF_ETHER_H
25 #define _NET_IF_ETHER_H
28 #include <net/kpi_interface.h>
33 * These functions may be used for an interface emulating an ethernet
34 * interface and not using IOKit. If you use IOKit and the IOKit
35 * Ethernet Family, these functions will be set for you. Use these
36 * functions when filling out the ifnet_init_params structure.
38 errno_t
ether_demux(ifnet_t interface
, mbuf_t packet
, char* header
,
39 protocol_family_t
*protocol
);
40 errno_t
ether_add_proto(ifnet_t interface
, protocol_family_t protocol
,
41 const struct ifnet_demux_desc
*demux_list
,
42 u_int32_t demux_count
);
43 errno_t
ether_del_proto(ifnet_t interface
, protocol_family_t protocol
);
44 errno_t
ether_frameout(ifnet_t interface
, mbuf_t
*packet
,
45 const struct sockaddr
*dest
, const char *dest_lladdr
,
46 const char *frame_type
);
47 errno_t
ether_ioctl(ifnet_t interface
, u_int32_t command
, void* data
);
48 errno_t
ether_check_multi(ifnet_t ifp
, const struct sockaddr
*multicast
);
53 #endif _NET_IF_ETHER_H