• Home
  • Raw
  • Download

Lines Matching refs:op

661 		const struct inet_diag_bc_op *op = bc;  in inet_diag_bc_run()  local
663 switch (op->code) { in inet_diag_bc_run()
670 yes = entry->sport == op[1].no; in inet_diag_bc_run()
673 yes = entry->sport >= op[1].no; in inet_diag_bc_run()
676 yes = entry->sport <= op[1].no; in inet_diag_bc_run()
679 yes = entry->dport == op[1].no; in inet_diag_bc_run()
682 yes = entry->dport >= op[1].no; in inet_diag_bc_run()
685 yes = entry->dport <= op[1].no; in inet_diag_bc_run()
695 cond = (const struct inet_diag_hostcond *)(op + 1); in inet_diag_bc_run()
697 cond->port != (op->code == INET_DIAG_BC_S_COND ? in inet_diag_bc_run()
703 if (op->code == INET_DIAG_BC_S_COND) in inet_diag_bc_run()
734 ifindex = *((const u32 *)(op + 1)); in inet_diag_bc_run()
742 cond = (struct inet_diag_markcond *)(op + 1); in inet_diag_bc_run()
751 cgroup_id = get_unaligned((const u64 *)(op + 1)); in inet_diag_bc_run()
760 len -= op->yes; in inet_diag_bc_run()
761 bc += op->yes; in inet_diag_bc_run()
763 len -= op->no; in inet_diag_bc_run()
764 bc += op->no; in inet_diag_bc_run()
821 const struct inet_diag_bc_op *op = bc; in valid_cc() local
827 if (op->yes < 4 || op->yes & 3) in valid_cc()
829 len -= op->yes; in valid_cc()
830 bc += op->yes; in valid_cc()
836 static bool valid_devcond(const struct inet_diag_bc_op *op, int len, in valid_devcond() argument
847 static bool valid_hostcond(const struct inet_diag_bc_op *op, int len, in valid_hostcond() argument
857 cond = (struct inet_diag_hostcond *)(op + 1); in valid_hostcond()
885 static bool valid_port_comparison(const struct inet_diag_bc_op *op, in valid_port_comparison() argument
895 static bool valid_markcond(const struct inet_diag_bc_op *op, int len, in valid_markcond() argument
903 static bool valid_cgroupcond(const struct inet_diag_bc_op *op, int len, in valid_cgroupcond() argument
926 const struct inet_diag_bc_op *op = bc; in inet_diag_bc_audit() local
928 switch (op->code) { in inet_diag_bc_audit()
967 if (op->code != INET_DIAG_BC_NOP) { in inet_diag_bc_audit()
968 if (op->no < min_len || op->no > len + 4 || op->no & 3) in inet_diag_bc_audit()
970 if (op->no < len && in inet_diag_bc_audit()
971 !valid_cc(bytecode, bytecode_len, len - op->no)) in inet_diag_bc_audit()
975 if (op->yes < min_len || op->yes > len + 4 || op->yes & 3) in inet_diag_bc_audit()
977 bc += op->yes; in inet_diag_bc_audit()
978 len -= op->yes; in inet_diag_bc_audit()