Re: /proc/net/dev file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----Original Message-----
From: Mariusz Ziulek <mz.mzet@xxxxxxxxx>
To: kernelnewbies@xxxxxxxxxxxx
Subject: Re: /proc/net/dev file

Shortly speaking:

Which kernel function will be invoked when I run: cat /proc/net/dev ?

i think you have to look into linux-2.6/net/core/dev.c (v2.6.30-rc6) 

thanks & regards
vibi sreenivasan

Mariusz Ziulek

2009/5/18 Mariusz Ziulek <mz.mzet@xxxxxxxxx>
        Hi Folks,
        
        I'm looking for a function which is called when /proc/net/dev
        file is read. Member read_proc in proc_dir_entry for this file
        is set to NULL so I guess it must use seq_file interface but I
        can't find where it is initialized. 
        
        Idea is to overwrite existing function responsible for reading
        this file to hide particular network traffic.
        
        Thanks in advance.
        
        Regards,
        Mariusz Ziulek




--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux