1 /* $OpenBSD: pppoe_conf.h,v 1.1 2012/09/18 13:14:08 yasuoka Exp $ */ 2 3 /* 4 * Copyright (c) 2012 YASUOKA Masahiko <yasuoka@openbsd.org> 5 * 6 * Permission to use, copy, modify, and distribute this software for any 7 * purpose with or without fee is hereby granted, provided that the above 8 * copyright notice and this permission notice appear in all copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 */ 18 #ifndef PPPOE_CONF_H 19 #define PPPOE_CONF_H 1 20 21 #include <sys/types.h> 22 #include <sys/queue.h> 23 #include <sys/socket.h> 24 25 #include <stdbool.h> 26 27 #define PPPOE_NAME_LEN 16 28 29 TAILQ_HEAD(pppoe_confs, pppoe_conf); 30 31 #include <net/if.h> 32 33 struct pppoe_conf { 34 TAILQ_ENTRY(pppoe_conf) entry; 35 char name[PPPOE_NAME_LEN]; 36 char if_name[IF_NAMESIZE]; 37 char *service_name; 38 char *ac_name; 39 bool accept_any_service; 40 bool desc_in_pktdump; 41 bool desc_out_pktdump; 42 bool session_in_pktdump; 43 bool session_out_pktdump; 44 }; 45 46 #endif 47