Lines Matching refs:mask
67 { "mask", TOK_MASK }, /* alias for both */
391 /* print a mask and header for the subsequent list of flows */
397 "mask: %s 0x%02x 0x%08x/0x%04x -> 0x%08x/0x%04x\n",
404 printf("\n mask: %sproto: 0x%02x, flow_id: 0x%08x, ",
1280 struct ipfw_flow_id *mask = NULL;
1328 * If we do a 'pipe config' mask -> sched_mask.
1346 mask = &sch->sched_mask;
1365 mask = &fs->flow_mask;
1382 mask = &sch->sched_mask;
1393 * XXX todo: support reuse of the mask.
1447 NEED(mask, "tok_mask");
1448 NEED1("mask needs mask specifier\n");
1450 * per-flow queue, mask is dst_ip, dst_port,
1454 bzero(mask, sizeof(*mask));
1472 mask->dst_ip = ~0;
1473 mask->src_ip = ~0;
1474 mask->dst_port = ~0;
1475 mask->src_port = ~0;
1476 mask->proto = ~0;
1477 n2mask(&mask->dst_ip6, 128);
1478 n2mask(&mask->src_ip6, 128);
1479 mask->flow_id6 = ~0;
1484 mask->extra = ~0;
1489 mask->addr_type = 4;
1490 p32 = &mask->dst_ip;
1494 mask->addr_type = 4;
1495 p32 = &mask->src_ip;
1499 mask->addr_type = 6;
1500 pa6 = &mask->dst_ip6;
1504 mask->addr_type = 6;
1505 pa6 = &mask->src_ip6;
1509 mask->addr_type = 6;
1510 p20 = &mask->flow_id6;
1514 p16 = &mask->dst_port;
1518 p16 = &mask->src_port;
1529 errx(EX_USAGE, "mask: value missing");
1541 "port mask must be 16 bit");
1546 "flow_id mask must be 20 bit");
1551 "in6addr invalid mask len");
1557 "proto mask must be 8 bit");
1558 mask->proto = (uint8_t)a;