Lines Matching defs:expect

234 	/* Optimization: most connection never expect any others. */
431 static inline int __nf_ct_expect_check(struct nf_conntrack_expect *expect,
437 struct nf_conn *master = expect->master;
440 struct net *net = nf_ct_exp_net(expect);
449 h = nf_ct_expect_dst_hash(net, &expect->tuple);
451 if (master_matches(i, expect, flags) &&
452 expect_matches(i, expect)) {
453 if (i->class != expect->class ||
454 i->master != expect->master)
459 } else if (expect_clash(i, expect)) {
468 p = &helper->expect_policy[expect->class];
470 master_help->expecting[expect->class] >= p->max_expected) {
471 evict_oldest_expect(master, expect);
472 if (master_help->expecting[expect->class]
489 int nf_ct_expect_related_report(struct nf_conntrack_expect *expect,
495 ret = __nf_ct_expect_check(expect, flags);
499 nf_ct_expect_insert(expect);
502 nf_ct_expect_event_report(IPEXP_NEW, expect, portid, report);
628 struct nf_conntrack_expect *expect;
633 expect = hlist_entry(n, struct nf_conntrack_expect, hnode);
635 if (expect->timeout.function)
636 seq_printf(s, "%ld ", timer_pending(&expect->timeout)
637 ? (long)(expect->timeout.expires - jiffies)/HZ : 0);
641 expect->tuple.src.l3num,
642 expect->tuple.dst.protonum);
643 print_tuple(s, &expect->tuple,
644 nf_ct_l4proto_find(expect->tuple.dst.protonum));
646 if (expect->flags & NF_CT_EXPECT_PERMANENT) {
650 if (expect->flags & NF_CT_EXPECT_INACTIVE) {
654 if (expect->flags & NF_CT_EXPECT_USERSPACE)
657 helper = rcu_dereference(nfct_help(expect->master)->helper);
659 seq_printf(s, "%s%s", expect->flags ? " " : "", helper->name);
660 if (helper->expect_policy[expect->class].name[0])
662 helper->expect_policy[expect->class].name);