Home | History | Annotate | Download | only in pfctl

Lines Matching refs:PORT

97 	u_int16_t		 port[2];
161 struct node_port *port;
355 struct node_port *port;
412 %token ICMP6TYPE CODE KEEP MODULATE STATE PORT RDR NAT BINAT ARROW NODF
435 %type <v.range> port rport
447 %type <v.port> portspec port_list port_item
759 $8.src.host, $8.src.port, $8.dst.host, $8.dst.port,
782 $6.src.host, $6.src.port, $6.dst.host, $6.dst.port,
802 if ($6.src.port != NULL) {
803 yyerror("source port parameter not supported"
807 if ($6.dst.port != NULL) {
808 if ($6.dst.port->next != NULL) {
809 yyerror("destination port list "
813 } else if ($6.dst.port->op != PF_OP_EQ) {
814 yyerror("destination port operators"
818 r.dst.port[0] = $6.dst.port->port[0];
819 r.dst.port[1] = $6.dst.port->port[1];
820 r.dst.port_op = $6.dst.port->op;
824 $6.src.host, $6.src.port, $6.dst.host, $6.dst.port,
850 if ($6.src.host != NULL || $6.src.port != NULL ||
851 $6.dst.host != NULL || $6.dst.port != NULL) {
946 $7.src.host, $7.src.port, $7.dst.host, $7.dst.port,
2029 $8.src.host, $8.src.port, $8.dst.host, $8.dst.port,
2396 $$.src.port = NULL;
2398 $$.dst.port = NULL;
2432 $$.port = NULL;
2441 $$.port = NULL;
2453 $$.port = NULL;
2455 | ipspec PORT portspec {
2457 $$.port = $3;
2459 | PORT portspec {
2461 $$.port = $2;
2662 port_item : port {
2666 $$->port[0] = $1.a;
2667 $$->port[1] = $1.b;
2675 | unaryop port {
2678 "port operator");
2684 $$->port[0] = $2.a;
2685 $$->port[1] = $2.b;
2690 | port PORTBINARY port {
2693 "port operator");
2699 $$->port[0] = $1.a;
2700 $$->port[1] = $3.a;
2707 port : STRING {
2717 int port[2];
2720 if ((port[0] = getservice($1)) == -1 ||
2721 (port[1] = getservice(p)) == -1) {
2725 $$.a = port[0];
2726 $$.b = port[1];
3330 | ARROW redirspec PORT rport {
3433 yyerror("static-port cannot be redefined");
3456 | ARROW host PORT rport {
3568 $5.dst.port != NULL) {
3572 $5.dst.port->port[1]) -
3574 $5.dst.port->port[0]));
3634 yyerror("the 'static-port' option is "
3642 yyerror("the 'static-port' option can't"
3643 " be used when specifying a port"
3659 $5.src_os, $5.src.host, $5.src.port, $5.dst.host,
3660 $5.dst.port, 0, 0, 0, "");
4066 yyerror("port only applies to tcp/udp");
4128 yyerror("src port only applies to tcp/udp");
4132 yyerror("dst port only applies to tcp/udp");
4136 yyerror("rpool port only applies to tcp/udp");
4142 yyerror("invalid port operator for rdr destination port");
4319 struct node_port *port)
4324 snprintf(a1, sizeof(a1), "%u", ntohs(port->port[0]));
4325 snprintf(a2, sizeof(a2), "%u", ntohs(port->port[1]));
4326 if (!port->op)
4328 else if (port->op == PF_OP_IRG)
4330 else if (port->op == PF_OP_XRG)
4332 else if (port->op == PF_OP_EQ)
4334 else if (port->op == PF_OP_NE)
4336 else if (port->op == PF_OP_LT)
4338 else if (port->op == PF_OP_LE)
4340 else if (port->op == PF_OP_GT)
4342 else if (port->op == PF_OP_GE)
4739 r->src.port[0] = src_port->port[0];
4740 r->src.port[1] = src_port->port[1];
4744 r->dst.port[0] = dst_port->port[0];
4745 r->dst.port[1] = dst_port->port[1];
4955 { "port", PORT},
4988 { "static-port", STATICPORT},
5453 yyerror("illegal port value %lu", ulval);
5462 yyerror("unknown port %s", n);