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