Lines Matching +defs:string +defs:h

32 #include <sys/cdefs.h>
35 #include <sys/types.h>
36 #include <sys/socket.h>
37 #include <sys/stat.h>
39 #include <sys/sysctl.h>
41 #include <net/if.h>
42 #include <netinet/in.h>
43 #include <netinet/in_systm.h>
44 #include <netinet/ip.h>
45 #include <netinet/ip_icmp.h>
46 #include <netinet/icmp6.h>
47 #include <net/pfvar.h>
48 #include <arpa/inet.h>
49 #include <net/altq/altq.h>
50 #include <net/altq/altq_cbq.h>
51 #include <net/altq/altq_codel.h>
52 #include <net/altq/altq_priq.h>
53 #include <net/altq/altq_hfsc.h>
54 #include <net/altq/altq_fairq.h>
56 #include <assert.h>
57 #include <stdio.h>
58 #include <unistd.h>
59 #include <stdlib.h>
60 #include <netdb.h>
61 #include <stdarg.h>
62 #include <errno.h>
63 #include <string.h>
64 #include <ctype.h>
65 #include <math.h>
66 #include <err.h>
67 #include <limits.h>
68 #include <pwd.h>
69 #include <grp.h>
70 #include <md5.h>
72 #include "pfctl_parser.h"
73 #include "pfctl.h"
413 int map_tos(char *string, int *);
432 char *string;
534 %token <v.string> STRING
565 %type <v.string> label stringall tag anchorname
566 %type <v.string> string varstring numberstring
645 optimizer : string {
862 string : STRING string {
864 err(1, "string: asprintf");
873 err(1, "string: asprintf");
883 yyerror("string: asprintf");
1092 | NATANCHOR string interface af proto fromto rtable {
1113 | RDRANCHOR string interface af proto fromto rtable {
1155 | BINATANCHOR string interface af proto fromto rtable {
1192 loadrule : LOAD ANCHOR string FROM string {
1396 | TAG string {
1399 | not TAGGED string {
1571 | not TAGGED string {
1583 struct node_host *h = NULL, *hh;
1613 h = calloc(1, sizeof(*h));
1614 if (h == NULL)
1616 h->addr.type = PF_ADDR_DYNIFTL;
1617 set_ipmask(h, 128);
1618 if (strlcpy(h->addr.v.ifname, i->ifname,
1619 sizeof(h->addr.v.ifname)) >=
1620 sizeof(h->addr.v.ifname)) {
1621 free(h);
1629 bcopy(h, hh, sizeof(*hh));
1630 h->addr.iflags = PFI_AFLAG_NETWORK;
1632 h = ifa_lookup(j->ifname,
1637 if (h != NULL)
1639 NULL, NULL, h, NULL, NULL, NULL, NULL, NULL,
1656 h = hh;
1658 h = ifa_lookup(i->ifname, 0);
1659 if (h != NULL)
1661 NULL, NULL, NULL, NULL, h, NULL, NULL,
1731 struct node_host *h, *nh;
1750 for (h = ti->host; h != NULL; h = nh) {
1751 nh = h->next;
1752 free(h);
2970 | TAG string {
2973 | not TAGGED string {
3322 | TO string {
3533 mac : string '/' NUMBER {
3539 | string {
4613 | string
5189 | not TAGGED string { $$.neg = $1; $$.name = $3; }
5381 disallow_table(struct node_host *h, const char *fmt)
5383 for (; h != NULL; h = h->next)
5384 if (h->addr.type == PF_ADDR_TABLE) {
5385 yyerror(fmt, h->addr.v.tblname);
5392 disallow_urpf_failed(struct node_host *h, const char *fmt)
5394 for (; h != NULL; h = h->next)
5395 if (h->addr.type == PF_ADDR_URPFFAILED) {
5403 disallow_alias(struct node_host *h, const char *fmt)
5405 for (; h != NULL; h = h->next)
5406 if (DYNIF_MULTIADDR(h->addr)) {
5407 yyerror(fmt, h->addr.v.tblname);
6179 struct node_host *h, *osrch, *odsth;
6317 for (h = rdr_hosts; h != NULL; h = h->next) {
6321 pa->addr = h->addr;
6322 if (h->ifname != NULL) {
6323 if (strlcpy(pa->ifname, h->ifname,
6332 for (h = nat_hosts; h != NULL; h = h->next) {
6336 pa->addr = h->addr;
6337 if (h->ifname != NULL) {
6338 if (strlcpy(pa->ifname, h->ifname,
6347 for (h = route_hosts; h != NULL; h = h->next) {
6351 pa->addr = h->addr;
6352 if (h->ifname != NULL) {
6353 if (strlcpy(pa->ifname, h->ifname,
6438 freehostlist(struct node_host *h)
6440 FREE_LIST(struct node_host, h);
6621 fprintf(stderr, "string: %s\n", s);
6654 yyerror("reached end of file while parsing quoted string");
6742 yyerror("string too long");
6789 yyerror("string too long");
6794 yylval.v.string = strdup(buf);
6795 if (yylval.v.string == NULL)
6837 yyerror("string too long");
6876 yyerror("string too long");
6883 if ((yylval.v.string = strdup(buf)) == NULL)