1/*
2 * Copyright (c) 1995, 1996
3 * Matt Thomas <matt@3am-software.com>. All rights reserved.
4 * Copyright (c) 1982, 1989, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
--- 19 unchanged lines hidden (view full) ---
28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
34 *
35 * from: if_ethersubr.c,v 1.5 1994/12/13 22:31:45 wollman Exp
36 * $FreeBSD: head/sys/net/if_fddisubr.c 93376 2002-03-29 09:41:03Z mdodd $
37 */
38
39#include "opt_atalk.h"
40#include "opt_inet.h"
41#include "opt_inet6.h"
42#include "opt_ipx.h"
43
44#include <sys/param.h>
--- 163 unchanged lines hidden (view full) ---
208 type = htons(ETHERTYPE_NS);
209 bcopy((caddr_t)&(((struct sockaddr_ns *)dst)->sns_addr.x_host),
210 (caddr_t)edst, FDDI_ADDR_LEN);
211 break;
212#endif
213
214 case pseudo_AF_HDRCMPLT:
215 {
216 struct ether_header *eh;
217 hdrcmplt = 1;
218 eh = (struct ether_header *)dst->sa_data;
219 bcopy((caddr_t)eh->ether_shost, (caddr_t)esrc, FDDI_ADDR_LEN);
220 /* FALLTHROUGH */
221 }
222
223 case AF_UNSPEC:
224 {
225 struct ether_header *eh;
226 loop_copy = -1;
227 eh = (struct ether_header *)dst->sa_data;
--- 373 unchanged lines hidden ---
2 * Copyright (c) 1995, 1996
3 * Matt Thomas <matt@3am-software.com>. All rights reserved.
4 * Copyright (c) 1982, 1989, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
--- 19 unchanged lines hidden (view full) ---
28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
34 *
35 * from: if_ethersubr.c,v 1.5 1994/12/13 22:31:45 wollman Exp
36 * $FreeBSD: head/sys/net/if_fddisubr.c 93376 2002-03-29 09:41:03Z mdodd $
37 */
38
39#include "opt_atalk.h"
40#include "opt_inet.h"
41#include "opt_inet6.h"
42#include "opt_ipx.h"
43
44#include <sys/param.h>
--- 163 unchanged lines hidden (view full) ---
208 type = htons(ETHERTYPE_NS);
209 bcopy((caddr_t)&(((struct sockaddr_ns *)dst)->sns_addr.x_host),
210 (caddr_t)edst, FDDI_ADDR_LEN);
211 break;
212#endif
213
214 case pseudo_AF_HDRCMPLT:
215 {
216 struct ether_header *eh;
217 hdrcmplt = 1;
218 eh = (struct ether_header *)dst->sa_data;
219 bcopy((caddr_t)eh->ether_shost, (caddr_t)esrc, FDDI_ADDR_LEN);
220 /* FALLTHROUGH */
221 }
222
223 case AF_UNSPEC:
224 {
225 struct ether_header *eh;
226 loop_copy = -1;
227 eh = (struct ether_header *)dst->sa_data;
--- 373 unchanged lines hidden ---