Searched refs:trav (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/net/netfilter/
H A Dx_tables.c1009 struct nf_mttg_trav *trav = seq->private; xt_mttg_seq_next() local
1011 switch (trav->class) { xt_mttg_seq_next()
1013 trav->class = MTTG_TRAV_NFP_UNSPEC; xt_mttg_seq_next()
1015 trav->head = trav->curr = is_target ? xt_mttg_seq_next()
1019 trav->curr = trav->curr->next; xt_mttg_seq_next()
1020 if (trav->curr != trav->head) xt_mttg_seq_next()
1023 mutex_lock(&xt[trav->nfproto].mutex); xt_mttg_seq_next()
1024 trav->head = trav->curr = is_target ? xt_mttg_seq_next()
1025 &xt[trav->nfproto].target : &xt[trav->nfproto].match; xt_mttg_seq_next()
1026 trav->class = next_class[trav->class]; xt_mttg_seq_next()
1029 trav->curr = trav->curr->next; xt_mttg_seq_next()
1030 if (trav->curr != trav->head) xt_mttg_seq_next()
1039 return trav; xt_mttg_seq_next()
1045 struct nf_mttg_trav *trav = seq->private; xt_mttg_seq_start() local
1048 trav->class = MTTG_TRAV_INIT; xt_mttg_seq_start()
1052 return trav; xt_mttg_seq_start()
1057 struct nf_mttg_trav *trav = seq->private; xt_mttg_seq_stop() local
1059 switch (trav->class) { xt_mttg_seq_stop()
1064 mutex_unlock(&xt[trav->nfproto].mutex); xt_mttg_seq_stop()
1081 const struct nf_mttg_trav *trav = seq->private; xt_match_seq_show() local
1084 switch (trav->class) { xt_match_seq_show()
1087 if (trav->curr == trav->head) xt_match_seq_show()
1089 match = list_entry(trav->curr, struct xt_match, list); xt_match_seq_show()
1107 struct nf_mttg_trav *trav; xt_match_open() local
1108 trav = __seq_open_private(file, &xt_match_seq_ops, sizeof(*trav)); xt_match_open()
1109 if (!trav) xt_match_open()
1112 trav->nfproto = (unsigned long)PDE_DATA(inode); xt_match_open()
1136 const struct nf_mttg_trav *trav = seq->private; xt_target_seq_show() local
1139 switch (trav->class) { xt_target_seq_show()
1142 if (trav->curr == trav->head) xt_target_seq_show()
1144 target = list_entry(trav->curr, struct xt_target, list); xt_target_seq_show()
1162 struct nf_mttg_trav *trav; xt_target_open() local
1163 trav = __seq_open_private(file, &xt_target_seq_ops, sizeof(*trav)); xt_target_open()
1164 if (!trav) xt_target_open()
1167 trav->nfproto = (unsigned long)PDE_DATA(inode); xt_target_open()

Completed in 68 milliseconds