* loading modules at kernel startup
@ 2004-12-21 9:14 linux lover
2004-12-21 9:37 ` Alex Riesen
2004-12-21 12:38 ` Jan Engelhardt
0 siblings, 2 replies; 5+ messages in thread
From: linux lover @ 2004-12-21 9:14 UTC (permalink / raw)
To: linux-kernel
Hi all,
How to load own kernel modules just after eth0
interface is brought up?
I want to load kernel module as soon as networking part of kenrel
starts. I dont want to loose any packets that travels on my linux
machine.
regards,
linux_lover
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: loading modules at kernel startup
2004-12-21 9:14 loading modules at kernel startup linux lover
@ 2004-12-21 9:37 ` Alex Riesen
2004-12-21 10:04 ` linux lover
2004-12-21 10:13 ` Bernd Petrovitsch
2004-12-21 12:38 ` Jan Engelhardt
1 sibling, 2 replies; 5+ messages in thread
From: Alex Riesen @ 2004-12-21 9:37 UTC (permalink / raw)
To: linux lover; +Cc: linux-kernel
On Tue, 21 Dec 2004 14:44:23 +0530, linux lover
<linux.lover2004@gmail.com> wrote:
> Hi all,
> How to load own kernel modules just after eth0
> interface is brought up?
> I want to load kernel module as soon as networking part of kenrel
> starts.
Look at udev and hotplug
> I dont want to loose any packets that travels on my linux
> machine.
You'll always loose something: there will be a gap between activating
of the network interface and running of your module (or sniffer, as it sounds).
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: loading modules at kernel startup
2004-12-21 9:37 ` Alex Riesen
@ 2004-12-21 10:04 ` linux lover
2004-12-21 10:13 ` Bernd Petrovitsch
1 sibling, 0 replies; 5+ messages in thread
From: linux lover @ 2004-12-21 10:04 UTC (permalink / raw)
To: Alex Riesen; +Cc: linux-kernel
Hello Alex,
The kernel modules are netfilter modules that i wrote
and want to be loaded as soon as eth0 is up. Is there any way in
kernel to add my modules and get it loaded at startup?
I actually added in .bashrc but modules are loaded with
every console i open but not once in system.
regards,
linux_lover
On Tue, 21 Dec 2004 10:37:32 +0100, Alex Riesen <raa.lkml@gmail.com> wrote:
> On Tue, 21 Dec 2004 14:44:23 +0530, linux lover
> <linux.lover2004@gmail.com> wrote:
> > Hi all,
> > How to load own kernel modules just after eth0
> > interface is brought up?
> > I want to load kernel module as soon as networking part of kenrel
> > starts.
>
> Look at udev and hotplug
>
> > I dont want to loose any packets that travels on my linux
> > machine.
>
> You'll always loose something: there will be a gap between activating
> of the network interface and running of your module (or sniffer, as it sounds).
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: loading modules at kernel startup
2004-12-21 9:37 ` Alex Riesen
2004-12-21 10:04 ` linux lover
@ 2004-12-21 10:13 ` Bernd Petrovitsch
1 sibling, 0 replies; 5+ messages in thread
From: Bernd Petrovitsch @ 2004-12-21 10:13 UTC (permalink / raw)
To: Alex Riesen; +Cc: linux lover, linux-kernel
On Tue, 2004-12-21 at 10:37 +0100, Alex Riesen wrote:
> On Tue, 21 Dec 2004 14:44:23 +0530, linux lover
> <linux.lover2004@gmail.com> wrote:
[...]
> > How to load own kernel modules just after eth0
> > interface is brought up?
> > I want to load kernel module as soon as networking part of kenrel
> > starts.
This usually depends on your distribution.
> Look at udev and hotplug
>
> > I dont want to loose any packets that travels on my linux
> > machine.
>
> You'll always loose something: there will be a gap between activating
> of the network interface and running of your module (or sniffer, as it sounds).
Not if you do all on "activating the network interface" except "ip link
set eth<x> up".
Usually this means patching your distributions network startup scripts
and/or hooking in the firewall-rule-startup-script (where you basically
have the same problem).
Bernd
--
Firmix Software GmbH http://www.firmix.at/
mobil: +43 664 4416156 fax: +43 1 7890849-55
Embedded Linux Development and Services
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: loading modules at kernel startup
2004-12-21 9:14 loading modules at kernel startup linux lover
2004-12-21 9:37 ` Alex Riesen
@ 2004-12-21 12:38 ` Jan Engelhardt
1 sibling, 0 replies; 5+ messages in thread
From: Jan Engelhardt @ 2004-12-21 12:38 UTC (permalink / raw)
To: linux lover; +Cc: linux-kernel
>Hi all,
> How to load own kernel modules just after eth0
>interface is brought up?
Possibly by loading them beforehand.
>I want to load kernel module as soon as networking part of kenrel
>starts. I dont want to loose any packets that travels on my linux
>machine.
Jan Engelhardt
--
ENOSPC
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-12-21 12:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-21 9:14 loading modules at kernel startup linux lover
2004-12-21 9:37 ` Alex Riesen
2004-12-21 10:04 ` linux lover
2004-12-21 10:13 ` Bernd Petrovitsch
2004-12-21 12:38 ` Jan Engelhardt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.