Lines Matching refs:sel
40 parse_csum_args(int *argc_p, char ***argv_p, struct tc_csum *sel) in parse_csum_args() argument
52 sel->update_flags |= TCA_CSUM_UPDATE_FLAG_IPV4HDR; in parse_csum_args()
55 sel->update_flags |= TCA_CSUM_UPDATE_FLAG_ICMP; in parse_csum_args()
58 sel->update_flags |= TCA_CSUM_UPDATE_FLAG_IGMP; in parse_csum_args()
61 sel->update_flags |= TCA_CSUM_UPDATE_FLAG_TCP; in parse_csum_args()
64 sel->update_flags |= TCA_CSUM_UPDATE_FLAG_UDP; in parse_csum_args()
67 sel->update_flags |= TCA_CSUM_UPDATE_FLAG_UDPLITE; in parse_csum_args()
89 struct tc_csum sel; in parse_csum() local
96 memset(&sel, 0, sizeof(sel)); in parse_csum()
101 if (parse_csum_args(&argc, &argv, &sel)) { in parse_csum()
122 if (sel.update_flags == 0) { in parse_csum()
129 sel.action = TC_ACT_RECLASSIFY; in parse_csum()
133 sel.action = TC_ACT_PIPE; in parse_csum()
138 sel.action = TC_ACT_SHOT; in parse_csum()
142 sel.action = TC_ACT_UNSPEC; in parse_csum()
146 sel.action = TC_ACT_OK; in parse_csum()
155 if (get_u32(&sel.index, *argv, 10)) { in parse_csum()
167 addattr_l(n, MAX_MSG, TCA_CSUM_PARMS, &sel, sizeof(sel)); in parse_csum()
179 struct tc_csum *sel; in print_csum() local
202 sel = RTA_DATA(tb[TCA_CSUM_PARMS]); in print_csum()
204 if (sel->update_flags & TCA_CSUM_UPDATE_FLAG_IPV4HDR) { in print_csum()
210 if (sel->update_flags & flag_value) { \ in print_csum()
228 action_n2a(sel->action, action_buf, sizeof(action_buf))); in print_csum()
229 fprintf(f, "\tindex %d ref %d bind %d", sel->index, sel->refcnt, sel->bindcnt); in print_csum()