Exemplo n.º 1
0
static void sock_disable_timestamp(struct sock *sk)
{	
	if (sock_flag(sk, SOCK_TIMESTAMP)) { 
		sock_reset_flag(sk, SOCK_TIMESTAMP);
		net_disable_timestamp();
	}
}
Exemplo n.º 2
0
/* clean up routine for flow monitoring */
void flowmon_cleanup(void)
{
    int i;

    net_disable_timestamp();

    /* destroy each table file we created */
    for (i = pna_tables - 1; i >= 0; i--) {
        if (flowtab_info[i].table_name[0] != '\0') {
            remove_proc_entry(flowtab_info[i].table_name, proc_parent);
        }
        if (flowtab_info[i].map != NULL) {
            hashmap_destroy(flowtab_info[i].map);
        }
    }

    /* free up table meta-information struct */
    vfree(flowtab_info);
    /* destroy /proc directory */
    remove_proc_entry(PNA_PROCDIR, NULL);
}