View | Details | Raw Unified | Return to bug 24074 | Differences between
and this patch

Collapse All | Expand All

(-)src/sys/net/if_iso88025_var.h (+63 lines)
Line 0 Link Here
1
/*
2
 * Copyright (c) 1998, Larry Lile
3
 * All rights reserved.
4
 *
5
 * For latest sources and information on this driver, please
6
 * go to http://anarchy.stdio.com.
7
 *
8
 * Questions, comments or suggestions should be directed to
9
 * Larry Lile <lile@stdio.com>.
10
 *
11
 * Redistribution and use in source and binary forms, with or without
12
 * modification, are permitted provided that the following conditions
13
 * are met:
14
 * 1. Redistributions of source code must retain the above copyright
15
 *    notice unmodified, this list of conditions, and the following
16
 *    disclaimer.
17
 * 2. Redistributions in binary form must reproduce the above copyright
18
 *    notice, this list of conditions and the following disclaimer in the
19
 *    documentation and/or other materials provided with the distribution.
20
 *
21
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
22
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
25
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31
 * SUCH DAMAGE.
32
 *
33
 * Information gathered from tokenring@freebsd, /sys/net/ethernet.h and
34
 * the Mach token ring driver.
35
 */
36
37
#ifndef _NET_IF_ISO88025VAR_H_
38
#define _NET_IF_ISO88025VAR_H_
39
40
struct iso88025_sockaddr_data {
41
	u_char ether_dhost[ISO88025_ADDR_LEN];
42
	u_char ether_shost[ISO88025_ADDR_LEN];
43
	u_char ac;
44
	u_char fc;
45
};
46
47
/*
48
 * Structure of a 48-bit iso 802.5 address.
49
 *  ( We could also add the 16 bit addresses as a union)
50
 */
51
struct	iso88025_addr {
52
	u_char octet[ISO88025_ADDR_LEN];
53
};
54
55
#define ISO88025_MAX_MTU	18000
56
#define ISO88025_DEFAULT_MTU	1500
57
58
void	iso88025_ifattach(struct ifnet *);
59
int	iso88025_ioctl(struct ifnet *, int , caddr_t);
60
int	iso88025_output(struct ifnet *, struct mbuf *, struct sockaddr *, struct rtentry *);
61
void	iso88025_input(struct ifnet *, struct iso88025_header *, struct mbuf *);
62
63
#endif

Return to bug 24074