Changeset 12419


Ignore:
Timestamp:
06/30/09 17:16:32 (4 years ago)
Author:
BrainSlayer
Message:

conntrack flush for 2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/pb42/linux-2.6.22/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c

    r9438 r12419  
    205205        .release = seq_release_private, 
    206206}; 
     207 
     208 
    207209 
    208210/* expects */ 
     
    375377}; 
    376378 
     379static int conntrack_flush(char *buffer, char **start, off_t offset, int length) 
     380{ 
     381        nf_conntrack_flush(); 
     382        return 0; 
     383} 
     384 
    377385int __init nf_conntrack_ipv4_compat_init(void) 
    378386{ 
     
    380388 
    381389        proc = proc_net_fops_create("ip_conntrack", 0440, &ct_file_ops); 
     390        if (!proc) 
     391                goto err1; 
     392 
     393        proc = proc_net_create("ip_conntrack_flush", 0440, conntrack_flush); 
    382394        if (!proc) 
    383395                goto err1; 
     
    400412        proc_net_remove("ip_conntrack_expect"); 
    401413err2: 
     414        proc_net_remove("ip_conntrack_flush"); 
    402415        proc_net_remove("ip_conntrack"); 
    403416err1: 
Note: See TracChangeset for help on using the changeset viewer.