[tproxy] cttproxy question: what is ip_tproxy_confirmed () for ?

Sergei Lavrov lavrov2005 at yahoo.com
Fri Mar 23 13:40:44 CET 2007


What is the following function for ?

static void
ip_tproxy_confirmed(struct ip_conntrack *ct)
{
        struct ip_tproxy_sockref *sr = (struct
ip_tproxy_sockref *)ct->tproxy.sockref;

        /* check if it was marked by tproxy and not
yet a related sockref */
        if (test_bit(IPS_TPROXY_BIT, &ct->status) &&
            !test_bit(IPS_TPROXY_RELATED_BIT,
&ct->status) &&
            sr) {
                ct->tproxy.sockref = NULL;

                /* put it on the sockref's related
list */
                if (sr->proto == IPPROTO_UDP)
                        ip_tproxy_relatedct_add(sr,
ct);

                /* drop reference to sockref */
                ip_tproxy_sockref_unref(sr);
        }
}



 
____________________________________________________________________________________
Get your own web address.  
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL


More information about the tproxy mailing list