xref: /onnv-gate/usr/src/uts/common/inet/arp/arpddi.c (revision 11042:2d6e217af1b4)
10Sstevel@tonic-gate /*
20Sstevel@tonic-gate  * CDDL HEADER START
30Sstevel@tonic-gate  *
40Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
52958Sdr146992  * Common Development and Distribution License (the "License").
62958Sdr146992  * You may not use this file except in compliance with the License.
70Sstevel@tonic-gate  *
80Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate  * See the License for the specific language governing permissions
110Sstevel@tonic-gate  * and limitations under the License.
120Sstevel@tonic-gate  *
130Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate  *
190Sstevel@tonic-gate  * CDDL HEADER END
200Sstevel@tonic-gate  */
210Sstevel@tonic-gate /*
22*11042SErik.Nordmark@Sun.COM  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
230Sstevel@tonic-gate  * Use is subject to license terms.
240Sstevel@tonic-gate  */
250Sstevel@tonic-gate /* Copyright (c) 1990 Mentat Inc. */
260Sstevel@tonic-gate 
270Sstevel@tonic-gate #include <sys/types.h>
280Sstevel@tonic-gate #include <sys/conf.h>
290Sstevel@tonic-gate #include <sys/modctl.h>
300Sstevel@tonic-gate #include <inet/common.h>
310Sstevel@tonic-gate #include <inet/ip.h>
320Sstevel@tonic-gate 
330Sstevel@tonic-gate #define	INET_NAME	"arp"
347862SRichard.Bean@Sun.COM #define	INET_MODDESC	"ARP STREAMS module"
357862SRichard.Bean@Sun.COM #define	INET_DEVDESC	"ARP STREAMS driver"
365240Snordmark #define	INET_DEVMINOR	0
375240Snordmark #define	INET_DEVSTRTAB	ipinfov4
385240Snordmark #define	INET_MODSTRTAB	arpinfo
390Sstevel@tonic-gate #define	INET_DEVMTFLAGS	IP_DEVMTFLAGS	/* since as a driver we're ip */
40*11042SErik.Nordmark@Sun.COM #define	INET_MODMTFLAGS	D_MP
410Sstevel@tonic-gate 
423448Sdh155122 #include "../inetddi.c"
432958Sdr146992 
440Sstevel@tonic-gate int
_init(void)450Sstevel@tonic-gate _init(void)
460Sstevel@tonic-gate {
473448Sdh155122 	int	error;
482958Sdr146992 
492958Sdr146992 	error = mod_install(&modlinkage);
502964Sdr146992 	return (error);
510Sstevel@tonic-gate }
520Sstevel@tonic-gate 
530Sstevel@tonic-gate int
_fini(void)540Sstevel@tonic-gate _fini(void)
550Sstevel@tonic-gate {
563448Sdh155122 	int	error;
572958Sdr146992 
582958Sdr146992 	error = mod_remove(&modlinkage);
592964Sdr146992 	return (error);
600Sstevel@tonic-gate }
610Sstevel@tonic-gate 
620Sstevel@tonic-gate int
_info(struct modinfo * modinfop)630Sstevel@tonic-gate _info(struct modinfo *modinfop)
640Sstevel@tonic-gate {
650Sstevel@tonic-gate 	return (mod_info(&modlinkage, modinfop));
660Sstevel@tonic-gate }
67