Lines Matching defs:action
12 * 2002: J Hadi Salim - Add tc action extensions syntax
40 fprintf(stderr, "Old Syntax ACTIONTERM := action <EXCEEDACT>[/NOTEXCEEDACT] \n");
54 char *police_action_n2a(int action, char *buf, int len)
56 switch (action) {
71 snprintf(buf, len, "%d", action);
104 int get_police_result(int *action, int *result, char *arg)
111 if (police_action_a2n(arg, action)) {
142 p.action = TC_POLICE_RECLASSIFY;
222 p.action = TC_POLICE_RECLASSIFY;
225 p.action = TC_POLICE_SHOT;
227 p.action = TC_POLICE_UNSPEC;
229 p.action = TC_POLICE_OK;
231 p.action = TC_POLICE_PIPE;
234 if (get_police_result(&p.action, &presult, *argv)) {
235 fprintf(stderr, "Illegal \"action\"\n");
346 fprintf(f, "action %s", police_action_n2a(p->action, b1, sizeof(b1)));