FreeBSD Kernel Timers

2010-08-25 Thread Sadish Kulasekere
Hi, Does anyone know how to create a timer in the kernel? I want to execute a function after 1s and 3s and I want to create multiple instances of the timer. The requirement here is to invoke a function after receiving a SYN packet and then after 10s remove the perticular timer corresponding to tha

Re: FreeBSD Kernel Timers

2010-08-25 Thread Rui Paulo
On 25 Aug 2010, at 12:31, Sadish Kulasekere wrote: > Hi, > > Does anyone know how to create a timer in the kernel? I want to execute a > function after 1s and 3s and I want to create multiple instances of the > timer. The requirement here is to invoke a function after receiving a SYN > packet an

Re: FreeBSD Kernel Timers

2010-08-25 Thread Sam Fourman Jr.
On Wed, Aug 25, 2010 at 6:31 AM, Sadish Kulasekere wrote: > Hi, > > Does anyone know how to create a timer in the kernel? I want to execute a > function after 1s and 3s and I want to create multiple instances of the > timer. The requirement here is to invoke a function after receiving a SYN > pack

Re: Error: em0: Watchdog timeout -- resetting

2010-08-25 Thread Vladislav V. Prodan
Add to /etc/rc.local : ifconfig em0 debug ifconfig em0 media 100baseTX mediaopt full-duplex For in rc.conf not working these options: #ifconfig_em0="100baseTX mediaopt full-duplex" #ifconfig_em0="debug -vlanmtu -vlanhwtag -vlanhwfilter -vlanhwtso -wol" Now the network card looks like this: # ifc

RE: funny ECMP

2010-08-25 Thread Ingo Flaschberger
Hi, currently I stick at this (last?) problem: assume routingtable:net gw postion type 1 route 10.13.13.0/24 10.11.11.1 2 route 10.13.13.0/24 10.11.11.2 3 interface route 10.

HELP. FreeBSD 8.1 polling issue

2010-08-25 Thread MAI JIN
Hi, I got a freeBSD 8.1 polling issue on my PC. It is a dual-core Intel Pentium x86 PC (2.8GHz each core). The Ethernet interface is Broadcom NetXtreme 57xx Gigabit Ethernet interface. I set the following options (enable polling and zero-buffer copy) and rebuilt the kernel: Code: # To make an

Re: Error: em0: Watchdog timeout -- resetting

2010-08-25 Thread Artyom Viklenko
26.08.2010 00:38, Vladislav V. Prodan пишет: Add to /etc/rc.local : ifconfig em0 debug ifconfig em0 media 100baseTX mediaopt full-duplex For in rc.conf not working these options: #ifconfig_em0="100baseTX mediaopt full-duplex" #ifconfig_em0="debug -vlanmtu -vlanhwtag -vlanhwfilter -vlanhwtso -wo

Re: Error: em0: Watchdog timeout -- resetting

2010-08-25 Thread Artyom Viklenko
26.08.2010 08:19, Artyom Viklenko пишет: 26.08.2010 00:38, Vladislav V. Prodan пишет: Add to /etc/rc.local : ifconfig em0 debug ifconfig em0 media 100baseTX mediaopt full-duplex For in rc.conf not working these options: #ifconfig_em0="100baseTX mediaopt full-duplex" #ifconfig_em0="debug -vlanm

RE: HELP. FreeBSD 8.1 polling issue

2010-08-25 Thread MAI JIN
Hi, I got a freeBSD 8.1 polling issue on my PC. It is a dual-core Intel Pentium x86 PC (2.8GHz each core). The Ethernet interface is Broadcom NetXtreme 57xx Gigabit Ethernet interface. I set the following options (enable polling and zero-buffer copy) and rebuilt the kernel: Code: # To make an SMP