• Home
  • Raw
  • Download

Lines Matching refs:op

454 		const struct inet_diag_bc_op *op = bc;  in inet_diag_bc_run()  local
456 switch (op->code) { in inet_diag_bc_run()
463 yes = entry->sport >= op[1].no; in inet_diag_bc_run()
466 yes = entry->sport <= op[1].no; in inet_diag_bc_run()
469 yes = entry->dport >= op[1].no; in inet_diag_bc_run()
472 yes = entry->dport <= op[1].no; in inet_diag_bc_run()
482 cond = (struct inet_diag_hostcond *)(op + 1); in inet_diag_bc_run()
484 cond->port != (op->code == INET_DIAG_BC_S_COND ? in inet_diag_bc_run()
490 if (op->code == INET_DIAG_BC_S_COND) in inet_diag_bc_run()
521 ifindex = *((const u32 *)(op + 1)); in inet_diag_bc_run()
529 cond = (struct inet_diag_markcond *)(op + 1); in inet_diag_bc_run()
537 len -= op->yes; in inet_diag_bc_run()
538 bc += op->yes; in inet_diag_bc_run()
540 len -= op->no; in inet_diag_bc_run()
541 bc += op->no; in inet_diag_bc_run()
580 const struct inet_diag_bc_op *op = bc; in valid_cc() local
586 if (op->yes < 4 || op->yes & 3) in valid_cc()
588 len -= op->yes; in valid_cc()
589 bc += op->yes; in valid_cc()
595 static bool valid_devcond(const struct inet_diag_bc_op *op, int len, in valid_devcond() argument
606 static bool valid_hostcond(const struct inet_diag_bc_op *op, int len, in valid_hostcond() argument
616 cond = (struct inet_diag_hostcond *)(op + 1); in valid_hostcond()
644 static inline bool valid_port_comparison(const struct inet_diag_bc_op *op, in valid_port_comparison() argument
654 static bool valid_markcond(const struct inet_diag_bc_op *op, int len, in valid_markcond() argument
675 const struct inet_diag_bc_op *op = bc; in inet_diag_bc_audit() local
679 switch (op->code) { in inet_diag_bc_audit()
710 if (op->code != INET_DIAG_BC_NOP) { in inet_diag_bc_audit()
711 if (op->no < min_len || op->no > len + 4 || op->no & 3) in inet_diag_bc_audit()
713 if (op->no < len && in inet_diag_bc_audit()
714 !valid_cc(bytecode, bytecode_len, len - op->no)) in inet_diag_bc_audit()
718 if (op->yes < min_len || op->yes > len + 4 || op->yes & 3) in inet_diag_bc_audit()
720 bc += op->yes; in inet_diag_bc_audit()
721 len -= op->yes; in inet_diag_bc_audit()