Changeset 12416

Show
Ignore:
Timestamp:
06/30/2009 05:15:01 PM (4 months ago)
Author:
BrainSlayer
Message:

conntrack flush for 2.6

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/linux/adm5120/linux-2.6.23/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c

    r10172 r12416  
    199199        .release = seq_release_private, 
    200200}; 
     201 
     202 
    201203 
    202204/* expects */ 
     
    405407}; 
    406408 
     409static int conntrack_flush(char *buffer, char **start, off_t offset, int length) 
     410{ 
     411        nf_conntrack_flush(); 
     412        return 0; 
     413} 
     414 
    407415int __init nf_conntrack_ipv4_compat_init(void) 
    408416{ 
     
    410418 
    411419        proc = proc_net_fops_create("ip_conntrack", 0440, &ct_file_ops); 
     420        if (!proc) 
     421                goto err1; 
     422 
     423        proc = proc_net_create("ip_conntrack_flush", 0440, conntrack_flush); 
    412424        if (!proc) 
    413425                goto err1; 
     
    430442        proc_net_remove("ip_conntrack_expect"); 
    431443err2: 
     444        proc_net_remove("ip_conntrack_flush"); 
    432445        proc_net_remove("ip_conntrack"); 
    433446err1: