Re: SIOCGIFMEDIA problems

2005-05-26 Thread Doug Ambrisko
Sebastien Petit writes: | Hi -net hackers, | | A little question about SIOCGIFMEDIA ioctl: | Somebody reports me that some interfaces (bge / em but anothers perhaps) | seem to discard packet(s) during SIOCGIFMEDIA ioctl, Is it true and why ? Doing status checks will cause input/output errors to

Re: SIOCGIFMEDIA problems

2005-05-16 Thread Kelly Yancey
On Mon, 16 May 2005, Bruce M Simpson wrote: > On Mon, May 16, 2005 at 02:31:36PM +0200, Sebastien Petit wrote: > > As I can see in kqueue man, I can only monitor events by file descriptor > > (read/write), a process id, a signal or a timer (under NetBSD 2) > > How I can use it for monitoring link

Re: SIOCGIFMEDIA problems

2005-05-16 Thread Bruce M Simpson
On Mon, May 16, 2005 at 02:31:36PM +0200, Sebastien Petit wrote: > As I can see in kqueue man, I can only monitor events by file descriptor > (read/write), a process id, a signal or a timer (under NetBSD 2) > How I can use it for monitoring link status change on a network card ? You need to use E

Re: SIOCGIFMEDIA problems

2005-05-16 Thread Sebastien Petit
On Mon, 16 May 2005 11:43:09 +0200 Jeremie Le Hen <[EMAIL PROTECTED]> wrote: > Hi Sebastien, > > On Fri, May 13, 2005 at 07:17:05PM +0200, Sebastien Petit wrote: > > [...] > > as a side note, you may wish to use the kqueue(2) framework to watch > at link stat changes. The main advantage is that

Re: SIOCGIFMEDIA problems

2005-05-16 Thread Vlad GALU
On 5/16/05, Jeremie Le Hen <[EMAIL PROTECTED]> wrote: > Hi Sebastien, > > On Fri, May 13, 2005 at 07:17:05PM +0200, Sebastien Petit wrote: > > [...] > > as a side note, you may wish to use the kqueue(2) framework to watch > at link stat changes. The main advantage is that it will change the > wa

Re: SIOCGIFMEDIA problems

2005-05-16 Thread Jeremie Le Hen
Hi Sebastien, On Fri, May 13, 2005 at 07:17:05PM +0200, Sebastien Petit wrote: > [...] as a side note, you may wish to use the kqueue(2) framework to watch at link stat changes. The main advantage is that it will change the way it works from a polling model to a notification model. One major dr

Re: SIOCGIFMEDIA problems

2005-05-13 Thread gnn
At Fri, 13 May 2005 19:17:05 +0200, Sebastien Petit wrote: > > On Fri, 13 May 2005 08:33:32 -0400 > [EMAIL PROTECTED] wrote: > > > At Fri, 13 May 2005 11:10:13 +0200, > > Sebastien Petit wrote: > > > > > > Hi -net hackers, > > > > > > A little question about SIOCGIFMEDIA ioctl: > > > > > > Some

Re: SIOCGIFMEDIA problems

2005-05-13 Thread Sebastien Petit
On Fri, 13 May 2005 08:33:32 -0400 [EMAIL PROTECTED] wrote: > At Fri, 13 May 2005 11:10:13 +0200, > Sebastien Petit wrote: > > > > Hi -net hackers, > > > > A little question about SIOCGIFMEDIA ioctl: > > > > Somebody reports me that some interfaces (bge / em but anothers > > perhaps) seem to dis

Re: SIOCGIFMEDIA problems

2005-05-13 Thread gnn
At Fri, 13 May 2005 11:10:13 +0200, Sebastien Petit wrote: > > Hi -net hackers, > > A little question about SIOCGIFMEDIA ioctl: > > Somebody reports me that some interfaces (bge / em but anothers > perhaps) seem to discard packet(s) during SIOCGIFMEDIA ioctl, Is it > true and why ? At least in t

SIOCGIFMEDIA problems

2005-05-13 Thread Sebastien Petit
Hi -net hackers, A little question about SIOCGIFMEDIA ioctl: Somebody reports me that some interfaces (bge / em but anothers perhaps) seem to discard packet(s) during SIOCGIFMEDIA ioctl, Is it true and why ? Regards, Sebastien. -- [EMAIL PROTECTED] __