Lines Matching +full:egress +full:- +full:policy
2 * m_egress.c ingress/egress packet mirror/redir actions module
34 fprintf(stderr, "\tDIRECTION := <ingress | egress>\n"); in explain()
36 fprintf(stderr, "\tINDEX is the specific policy instance id\n"); in explain()
45 exit(-1); in usage()
52 return "Egress Redirect"; in mirred_n2a()
56 return "Egress Mirror"; in mirred_n2a()
71 int ok = 0, iok = 0, mirror = 0, redir = 0, ingress = 0, egress = 0; in parse_direction() local
80 } else if (!egress && matches(*argv, "egress") == 0) { in parse_direction()
81 egress = 1; in parse_direction()
83 fprintf(stderr, "Can't have both egress and ingress\n"); in parse_direction()
84 return -1; in parse_direction()
91 if (egress) { in parse_direction()
92 fprintf(stderr, "Can't have both ingress and egress\n"); in parse_direction()
93 return -1; in parse_direction()
104 return -1; in parse_direction()
108 argc--; in parse_direction()
113 fprintf(stderr, "was expecting egress or ingress (%s)\n", *argv); in parse_direction()
120 return -1; in parse_direction()
122 p.eaction = egress ? TCA_EGRESS_MIRROR : in parse_direction()
130 return -1; in parse_direction()
132 p.eaction = egress ? TCA_EGRESS_REDIR : in parse_direction()
141 strncpy(d, *argv, sizeof(d)-1); in parse_direction()
142 argc--; in parse_direction()
154 return -1; in parse_direction()
166 return -1; in parse_direction()
179 return -1; in parse_direction()
185 return -1; in parse_direction()
187 argc--; in parse_direction()
196 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail; in parse_direction()
214 return -1; in parse_mirred()
221 return -1; in parse_mirred()
225 if (matches(*argv, "egress") == 0 || matches(*argv, "ingress") == 0 || in parse_mirred()
241 return -1; in parse_mirred()
253 return -1; in print_mirred()
259 return -1; in print_mirred()
268 if ((dev = ll_index_to_name(p->ifindex)) == 0) { in print_mirred()
269 fprintf(stderr, "Cannot find device %d\n", p->ifindex); in print_mirred()
270 return -1; in print_mirred()
273 fprintf(f, "mirred (%s to device %s)", mirred_n2a(p->eaction), dev); in print_mirred()
274 print_action_control(f, " ", p->action, ""); in print_mirred()
277 fprintf(f, "\tindex %u ref %d bind %d", p->index, p->refcnt, in print_mirred()
278 p->bindcnt); in print_mirred()