• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asus-wl-520gu-7.0.1.45/src/router/iptables/ippool/

Lines Matching defs:op

14 static char *errno2msg(int op, int err)
179 req.op = IP_POOL_HIGH_NR;
196 req.op = IP_POOL_LOOKUP;
209 req.op = IP_POOL_USAGE;
222 req.op = IP_POOL_TEST_ADDR;
250 req.op = IP_POOL_FLUSH;
278 req.op = IP_POOL_DESTROY;
301 static int do_adddel(ip_pool_t pool, char *straddr, int op)
307 req.op = op;
313 (op == IP_POOL_ADD_ADDR) ? 'A' : 'D',
322 straddr, get_name(pool), errno2msg(op, err));
327 op == IP_POOL_ADD_ADDR ? 1 : 0);
336 req.op = IP_POOL_TEST_ADDR;
357 req.op = IP_POOL_INIT;
427 int op;
450 op = OP_NONE;
458 if (op != OP_NONE) usage("conflicting operations");
459 op = OP_LIST_ALL;
462 if (op != OP_NONE) usage("conflicting operations");
463 op = OP_LIST;
467 if (op != OP_NONE) usage("conflicting operations");
468 op = OP_FLUSH_ALL;
471 if (op != OP_NONE) usage("conflicting operations");
472 op = OP_FLUSH;
476 if (op != OP_NONE) usage("conflicting operations");
477 op = OP_DESTROY_ALL;
480 if (op != OP_NONE) usage("conflicting operations");
481 op = OP_DESTROY;
485 if (op != OP_NONE) usage("conflicting operations");
486 op = OP_ADD;
490 if (op != OP_NONE) usage("conflicting operations");
491 op = OP_DEL;
495 if (op != OP_NONE) usage("conflicting operations");
496 op = OP_CHECK;
500 if (op != OP_NONE) usage("conflicting operations");
501 op = OP_NEW_ALL;
504 if (op != OP_NONE) usage("conflicting operations");
505 op = OP_NEW;
509 if (op != OP_NONE) usage("conflicting operations");
510 op = OP_HIGHEST;
532 if (op == OP_NONE)
534 if (op == OP_LIST_ALL) {
538 if (op == OP_LIST) {
542 if (op == OP_FLUSH_ALL) {
546 if (op == OP_FLUSH) {
550 if (op == OP_DESTROY_ALL) {
554 if (op == OP_DESTROY) {
558 if (op == OP_CHECK) {
563 if (op == OP_NEW_ALL) {
567 if (op == OP_NEW) {
571 if (op == OP_ADD) {
577 if (op == OP_DEL) {
583 if (op == OP_HIGHEST) {