natm_proto.c (148158) | natm_proto.c (149848) |
---|---|
1/* $NetBSD: natm_proto.c,v 1.3 1996/09/18 00:56:41 chuck Exp $ */ 2/*- 3 * 4 * Copyright (c) 1996 Charles D. Cranor and Washington University. 5 * 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 --- 22 unchanged lines hidden (view full) --- 31 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 */ 33 34/* 35 * protocol layer for access to native mode ATM 36 */ 37 38#include <sys/cdefs.h> | 1/* $NetBSD: natm_proto.c,v 1.3 1996/09/18 00:56:41 chuck Exp $ */ 2/*- 3 * 4 * Copyright (c) 1996 Charles D. Cranor and Washington University. 5 * 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 --- 22 unchanged lines hidden (view full) --- 31 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 */ 33 34/* 35 * protocol layer for access to native mode ATM 36 */ 37 38#include <sys/cdefs.h> |
39__FBSDID("$FreeBSD: head/sys/netnatm/natm_proto.c 148158 2005-07-19 13:36:39Z rwatson $"); | 39__FBSDID("$FreeBSD: head/sys/netnatm/natm_proto.c 149848 2005-09-07 10:06:14Z obrien $"); |
40 41#include <sys/param.h> 42#include <sys/systm.h> 43#include <sys/kernel.h> 44#include <sys/socket.h> 45#include <sys/protosw.h> 46#include <sys/domain.h> 47 48#include <net/if.h> 49#include <net/netisr.h> 50 51#include <netinet/in.h> 52 53#include <netnatm/natm.h> 54 | 40 41#include <sys/param.h> 42#include <sys/systm.h> 43#include <sys/kernel.h> 44#include <sys/socket.h> 45#include <sys/protosw.h> 46#include <sys/domain.h> 47 48#include <net/if.h> 49#include <net/netisr.h> 50 51#include <netinet/in.h> 52 53#include <netnatm/natm.h> 54 |
55extern struct domain natmdomain; 56 | |
57static void natm_init(void); 58 | 55static void natm_init(void); 56 |
57static struct domain natmdomain; 58 |
|
59static struct protosw natmsw[] = { 60{ SOCK_STREAM, &natmdomain, PROTO_NATMAAL5, PR_CONNREQUIRED, 61 0, 0, 0, 0, 62 0, 63 0, 0, 0, 0, 64 &natm_usrreqs 65}, 66{ SOCK_DGRAM, &natmdomain, PROTO_NATMAAL5, PR_CONNREQUIRED | PR_ATOMIC, --- 39 unchanged lines hidden --- | 59static struct protosw natmsw[] = { 60{ SOCK_STREAM, &natmdomain, PROTO_NATMAAL5, PR_CONNREQUIRED, 61 0, 0, 0, 0, 62 0, 63 0, 0, 0, 0, 64 &natm_usrreqs 65}, 66{ SOCK_DGRAM, &natmdomain, PROTO_NATMAAL5, PR_CONNREQUIRED | PR_ATOMIC, --- 39 unchanged lines hidden --- |