8
#include <sys/socket.h>
9
#include <netinet/in.h>
10
#include <arpa/inet.h>
12
#include <sys/resource.h>
14
#include <port/port.h>
19
void yyerror(char *c);
24
service return(T_SERVICE);
27
protocol return(T_PROTO);
32
backlog return(T_BACKLOG);
33
instances return(T_INSTANCES);
34
defaults return(T_DEFAULT);
36
rlimit return(T_RLIMIT);
37
cpu return(T_LIM_CPU);
38
fsize return(T_LIM_FSIZE);
39
data return(T_LIM_DATA);
40
stack return(T_LIM_STACK);
41
core return(T_LIM_CORE);
42
rss return(T_LIM_RSS);
43
nproc return(T_LIM_NPROC);
44
nofile return(T_LIM_NOFILE);
45
memlock return(T_LIM_MEMLOCK);
46
unlimited return(T_LIM_INFINITY);
47
interface return(T_INTERFACE);
52
chroot return(T_CHROOT);
54
syslog return(T_SYSLOG);
58
server return(T_SERVER);
59
directory return(T_DIR);
61
version return(T_VERSION);
64
capability return(T_CAPS);
65
family return(T_FAMILY);
68
initgroups return(T_INITGROUPS);
69
accept return(T_ACCEPT);
71
close return(T_CLOSE);
72
banner return(T_BANNER);
75
discard return(T_DISCARD);
76
filter return(T_FILTER);
77
chargen return(T_CHARGEN);
78
loopback return(T_LOOPBACK);
94
yylval.cp = malloc(yyleng - 1);
95
memcpy(yylval.cp, yytext + 1, yyleng - 2);
96
yylval.cp[yyleng - 2] = '\0';
99
([[:digit:]]{1,3}"."){1,3}([[:digit:]]{1,3})? {
100
yylval.cp = strdup(yytext);
104
yylval.num = strtol(yytext, NULL, 0);
108
yylval.cp = strdup(yytext);
113
rl_pwarn(curfile_name, curfile_line,
114
"unknown directive: %s", strdup(yytext));
120
yy_delete_buffer(YY_CURRENT_BUFFER);
123
void dummy() { yyunput(0, NULL); } /* shutup gcc */