Home | History | Annotate | Line # | Download | only in net
if_pppoe.h revision 1.1
      1  1.1  martin /* $NetBSD: if_pppoe.h,v 1.1 2001/04/29 09:50:37 martin Exp $ */
      2  1.1  martin 
      3  1.1  martin /*
      4  1.1  martin  * Copyright (c) 2001 Martin Husemann. All rights reserved.
      5  1.1  martin  *
      6  1.1  martin  * Redistribution and use in source and binary forms, with or without
      7  1.1  martin  * modification, are permitted provided that the following conditions
      8  1.1  martin  * are met:
      9  1.1  martin  * 1. Redistributions of source code must retain the above copyright
     10  1.1  martin  *    notice, this list of conditions and the following disclaimer.
     11  1.1  martin  * 2. Redistributions in binary form must reproduce the above copyright
     12  1.1  martin  *    notice, this list of conditions and the following disclaimer in the
     13  1.1  martin  *    documentation and/or other materials provided with the distribution.
     14  1.1  martin  *
     15  1.1  martin  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
     16  1.1  martin  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     17  1.1  martin  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     18  1.1  martin  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
     19  1.1  martin  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     20  1.1  martin  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     21  1.1  martin  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     22  1.1  martin  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     23  1.1  martin  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     24  1.1  martin  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     25  1.1  martin  * SUCH DAMAGE.
     26  1.1  martin  *
     27  1.1  martin  */
     28  1.1  martin 
     29  1.1  martin struct pppoediscparms {
     30  1.1  martin 	char	ifname[IFNAMSIZ];	/* pppoe interface name */
     31  1.1  martin 	char	eth_ifname[IFNAMSIZ];	/* external ethernet interface name */
     32  1.1  martin 	char	*ac_name;		/* access concentrator name (or NULL) */
     33  1.1  martin 	size_t	ac_name_len;		/* on write: length of buffer for ac_name */
     34  1.1  martin 	char	*service_name;		/* service name (or NULL) */
     35  1.1  martin 	size_t	service_name_len;	/* on write: length of buffer for service name */
     36  1.1  martin };
     37  1.1  martin 
     38  1.1  martin #define	PPPOESETPARMS	_IOW('i', 110, struct pppoediscparms)
     39  1.1  martin #define	PPPOEGETPARMS	_IOR('i', 111, struct pppoediscparms)
     40  1.1  martin 
     41  1.1  martin #ifdef _KERNEL
     42  1.1  martin 
     43  1.1  martin extern struct ifqueue ppoediscinq;
     44  1.1  martin extern struct ifqueue ppoeinq;
     45  1.1  martin 
     46  1.1  martin #ifdef __HAVE_GENERIC_SOFT_INTERRUPTS
     47  1.1  martin extern void * pppoe_softintr;			/* softinterrupt cookie */
     48  1.1  martin #else
     49  1.1  martin extern struct callout pppoe_softintr;		/* callout (poor mans softint) */
     50  1.1  martin extern void pppoe_softintr_handler(void*);	/* handler function */
     51  1.1  martin #endif
     52  1.1  martin 
     53  1.1  martin #endif	/* _KERNEL */
     54  1.1  martin 
     55