Re: building af_packet as a kernel module

2017-07-03 Thread valdis . kletnieks
On Mon, 03 Jul 2017 16:36:01 +0200, Kamil Konieczny said: > https://stackoverflow.com/questions/448999/is-there-a-way-to-figure-out-what-is-using-a-linux-kernel-module > and short answer is to use 'lsof' command (ls open files), > if lsmod fails to give ref info That's the short - and incorrect

Re: building af_packet as a kernel module

2017-07-03 Thread Kamil Konieczny
Hi, On 30.06.2017 06:06, Kevin Wilson wrote: > [...] > I am using Ubuntu 16.04. > > After reboot, the af_packet.ko kernel module is loaded: > lsmod > af_packet 45056 2 > > But I cannot remove it: > rmmod af_packet > rmmod: ERROR: Module af_packet is in use > > I want to be able

Re: building af_packet as a kernel module

2017-07-03 Thread Kamil Konieczny
On 03.07.2017 16:02, Aruna Hewapathirane wrote: > [...] > enable internet by running : /sbin/ifconfig etho0 down sudo /sbin/ifconfig eno1 up or eth0 or whatever your system names its ethernet devices > [...] List net interfaces with: sudo /sbin/ifconfig -- Best regards, Kamil Konieczny

Re: building af_packet as a kernel module

2017-07-03 Thread Aruna Hewapathirane
> On Fri, Jun 30, 2017 at 12:06 AM, Kevin Wilson wrote: > Hello, > I have tried to set CONFIG_PACKET=m in kernel 4.11 and rebuilt the > kernel and rebooted. > I am using Ubuntu 16.04. > After reboot, the af_packet.ko kernel module is loaded: > lsmod > shows: > af_packet