Lines Matching refs:dir

333 static int find_nl_seq(u32 seq, const struct nf_ct_ftp_master *info, int dir)  in find_nl_seq()  argument
337 for (i = 0; i < info->seq_aft_nl_num[dir]; i++) in find_nl_seq()
338 if (info->seq_aft_nl[dir][i] == seq) in find_nl_seq()
345 struct nf_ct_ftp_master *info, int dir, in update_nl_seq() argument
351 for (i = 0; i < info->seq_aft_nl_num[dir]; i++) { in update_nl_seq()
352 if (info->seq_aft_nl[dir][i] == nl_seq) in update_nl_seq()
356 if (info->seq_aft_nl_num[dir] < NUM_SEQ_TO_REMEMBER) { in update_nl_seq()
357 info->seq_aft_nl[dir][info->seq_aft_nl_num[dir]++] = nl_seq; in update_nl_seq()
359 if (before(info->seq_aft_nl[dir][0], info->seq_aft_nl[dir][1])) in update_nl_seq()
364 if (after(nl_seq, info->seq_aft_nl[dir][oldest])) in update_nl_seq()
365 info->seq_aft_nl[dir][oldest] = nl_seq; in update_nl_seq()
380 int dir = CTINFO2DIR(ctinfo); in help() local
421 if (!find_nl_seq(ntohl(th->seq), ct_ftp_info, dir)) { in help()
423 if (unlikely(ct_ftp_info->flags[dir] & NF_CT_FTP_SEQ_PICKUP)) { in help()
424 ct_ftp_info->flags[dir] ^= NF_CT_FTP_SEQ_PICKUP; in help()
430 ct_ftp_info->seq_aft_nl_num[dir] > 0 ? "" : "(UNSET)", in help()
431 ct_ftp_info->seq_aft_nl[dir][0], in help()
432 ct_ftp_info->seq_aft_nl_num[dir] > 1 ? "" : "(UNSET)", in help()
433 ct_ftp_info->seq_aft_nl[dir][1]); in help()
442 memcpy(cmd.u3.all, &ct->tuplehash[dir].tuple.src.u3.all, in help()
445 for (i = 0; i < ARRAY_SIZE(search[dir]); i++) { in help()
447 search[dir][i].pattern, in help()
448 search[dir][i].plen, in help()
449 search[dir][i].skip, in help()
450 search[dir][i].term, in help()
453 search[dir][i].getnum); in help()
462 search[dir][i].pattern); in help()
484 daddr = &ct->tuplehash[!dir].tuple.dst.u3; in help()
488 memcmp(&cmd.u3.all, &ct->tuplehash[dir].tuple.src.u3.all, in help()
497 &ct->tuplehash[dir].tuple.src.u3.ip); in help()
501 ct->tuplehash[dir].tuple.src.u3.ip6); in help()
516 &ct->tuplehash[!dir].tuple.src.u3, daddr, in help()
523 ret = nf_nat_ftp(skb, ctinfo, search[dir][i].ftptype, in help()
541 update_nl_seq(ct, seq, ct_ftp_info, dir, skb); in help()