Changeset 32701


Ignore:
Timestamp:
Jul 14, 2017, 6:20:02 PM (12 days ago)
Author:
brainslayer
Message:

not supported in this kernel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-3.2/net/shortcut-fe/sfe_cm.c

    r32695 r32701  
    3030#include <net/netfilter/nf_conntrack_zones.h>
    3131#include <net/netfilter/nf_conntrack_core.h>
    32 #include <net/netfilter/nf_conntrack_timeout.h>
    3332#include <linux/netfilter/xt_dscp.h>
    3433#include <linux/if_bridge.h>
     
    868867                spin_unlock_bh(&ct->lock);
    869868                break;
    870         case IPPROTO_UDP:
    871                 /*
    872                  * In Linux connection track, UDP flow has two timeout values:
    873                  * /proc/sys/net/netfilter/nf_conntrack_udp_timeout:
    874                  *      this is for uni-direction UDP flow, normally its value is 60 seconds
    875                  * /proc/sys/net/netfilter/nf_conntrack_udp_timeout_stream:
    876                  *      this is for bi-direction UDP flow, normally its value is 180 seconds
    877                  *
    878                  * Linux will update timer of UDP flow to stream timeout once it seen packets
    879                  * in reply direction. But if flow is accelerated by NSS or SFE, Linux won't
    880                  * see any packets. So we have to do the same thing in our stats sync message.
    881                  */
    882                 if (!test_bit(IPS_ASSURED_BIT, &ct->status) && acct) {
    883                         u_int64_t reply_pkts = atomic64_read(&SFE_ACCT_COUNTER(acct)[IP_CT_DIR_REPLY].packets);
    884 
    885                         if (reply_pkts != 0) {
    886                                 struct nf_conntrack_l4proto *l4proto;
    887                                 unsigned int *timeouts;
    888 
    889                                 set_bit(IPS_SEEN_REPLY_BIT, &ct->status);
    890                                 set_bit(IPS_ASSURED_BIT, &ct->status);
    891 
    892                                 l4proto = __nf_ct_l4proto_find((sis->is_v6 ? AF_INET6 : AF_INET), IPPROTO_UDP);
    893                                 timeouts = nf_ct_timeout_lookup(&init_net, ct, l4proto);
    894 
    895                                 spin_lock_bh(&ct->lock);
    896                                 ct->timeout.expires = jiffies + timeouts[UDP_CT_REPLIED];
    897                                 spin_unlock_bh(&ct->lock);
    898                         }
    899                 }
    900                 break;
     869
    901870        }
    902871
Note: See TracChangeset for help on using the changeset viewer.