Re: How to do a routing lookup inside the kernel in FreeBSD ?

2005-06-10 Thread Ruslan Ermilov
On Thu, Jun 09, 2005 at 05:42:16PM -0400, Aziz Kezzou wrote: > Hi all, > I am trying to figure out from the kernel source code (FreeBSD 5.3) > how can I perform a routing lookup in a KLD module. > Since I am short in time, if anyone knows how do to do this I would > appreciate. Any pointers to the

IPC between vimage instances?

2005-06-10 Thread Ragnar Lonn
Hello, I've been using vimage on FreeBSD 4.11 along with Netgraph to setup a system that simulates many physical client machines for the purpose of testing broadband Internet access hardware. I have hundreds of vimages, each with its own ngeth0 network interface connected via Netgraph to a real

ng_dummy(4)

2005-06-10 Thread Ruslan Ermilov
Hi, I've ported Marco Zec's ng_dummy(4) to work under 5.x/6.x. If anyone finds this useful, here's the link: http://people.FreeBSD.org/~ru/ng_dummy.c The rest of sources is available from: http://www.tel.fer.hr/zec/BSD/ng_dummy/ng_dummy-20021015.tgz I plan on more cleanup, and

Carp Suppression

2005-06-10 Thread Josh Kayse
I am cross-posting this to -net and -pf because I am not sure where it goes. I am running 2 carp interfaces on a pair of transparent firewalls running FreeBSD 5.4. One of the interfaces is a xl interface and the other is a plip interface. I am having trouble in that the carp interfaces are not f

Re: HEADSUP: internal network interface changes

2005-06-10 Thread Brooks Davis
Look out! :-) This change is incoming sortly (pending final cvs updates). -- Brooks On Wed, Jun 08, 2005 at 11:44:52PM -0700, Brooks Davis wrote: > I plan to commit a major rework of network interface related storage > Friday morning PDT. This is a massive change touching every network > driver

ndiscvt make failure

2005-06-10 Thread lysergius2001
Make of ndiscvt breaks with the following error message. Can anyone help? I am still stuck. Warning: Object directory not changed from original /usr/src/sys/modules/if_ndis cc -O -pipe -march=athlon-xp -D_KERNEL -DKLD_MODULE -nostdinc -I- -I. -I@ -I@/contrib/altq -I@/../include -finline-limit=

Re: HEADSUP: internal network interface changes

2005-06-10 Thread Brooks Davis
On Fri, Jun 10, 2005 at 09:26:00AM -0700, Brooks Davis wrote: > Look out! :-) > > This change is incoming sortly (pending final cvs updates). I've committed the change bumping __FreeBSD_version. Hopefully the ride won't be too bumpy. If you have any problems, please report them on -current as w

Re: IPC between vimage instances?

2005-06-10 Thread Julian Elischer
Ragnar Lonn wrote: Hello, I've been using vimage on FreeBSD 4.11 along with Netgraph to setup a system that simulates many physical client machines for the purpose of testing broadband Internet access hardware. I have hundreds of vimages, each with its own ngeth0 network interface connecte

Re: ng_dummy(4)

2005-06-10 Thread Julian Elischer
you can remove the whistle copyright line.. this is unrecognisable from whatever he started with :-) Ruslan Ermilov wrote: Hi, I've ported Marco Zec's ng_dummy(4) to work under 5.x/6.x. If anyone finds this useful, here's the link: http://people.FreeBSD.org/~ru/ng_dummy.c The res

Re: ng_dummy(4)

2005-06-10 Thread Ruslan Ermilov
On Fri, Jun 10, 2005 at 11:18:25AM -0700, Julian Elischer wrote: > you can remove the whistle copyright line.. > > this is unrecognisable from whatever he started with :-) > OK. -- Ruslan Ermilov [EMAIL PROTECTED] FreeBSD committer pgptY2FwK6fVl.pgp Description: PGP signature

Re: HEADSUP: internal network interface changes

2005-06-10 Thread Andrew Thompson
On Fri, Jun 10, 2005 at 09:57:24AM -0700, Brooks Davis wrote: > On Fri, Jun 10, 2005 at 09:26:00AM -0700, Brooks Davis wrote: > > Look out! :-) > > > > This change is incoming sortly (pending final cvs updates). > > I've committed the change bumping __FreeBSD_version. Hopefully the > ride won't

Re: HEADSUP: internal network interface changes

2005-06-10 Thread Brooks Davis
On Sat, Jun 11, 2005 at 10:01:33AM +1200, Andrew Thompson wrote: > On Fri, Jun 10, 2005 at 09:57:24AM -0700, Brooks Davis wrote: > > On Fri, Jun 10, 2005 at 09:26:00AM -0700, Brooks Davis wrote: > > > Look out! :-) > > > > > > This change is incoming sortly (pending final cvs updates). > > > > I'

setsockopt() can not remove the accept filter

2005-06-10 Thread Igor Sysoev
Hi, man setsockopt(2) states that "passing in an optval of NULL will remove the filter", however, setsockopt() always return EINVAL in this case, because do_setopt_accept_filter() removes the filter if sopt == NULL, but not if sopt->val == NULL. The fix is easy: -if (sopt == NULL) { +

RFC: mii_phy_probe API change

2005-06-10 Thread Brooks Davis
I'd like to change mii_phy_probe to take an additional argument, a pointer to the parent's struct ifnet. This would allow use to remove the disgusting cast from the first bit of the softc to an ifnet. The following totally untested diff is what I'm thinking about. Is there anything wrong with th

Re: Problems with gif tunnels

2005-06-10 Thread Stephen J. Bevan
Jeremie Le Hen writes: > Given the simplicity of gif(4) IP-encapsulated packets, I wonder > how Linux guys could have implemented something else in their IPIP > module :-). They didn't, Linux IPIP exactly what it sounds like it does: IP in IP encapsulation. The confusion seems to be on the par

Re: Problems with gif tunnels

2005-06-10 Thread Greg 'groggy' Lehey
On Friday, 10 June 2005 at 22:26:01 -0700, Stephen J. Bevan wrote: > Jeremie Le Hen writes: >> Given the simplicity of gif(4) IP-encapsulated packets, I wonder >> how Linux guys could have implemented something else in their IPIP >> module :-). > > They didn't, Linux IPIP exactly what it sounds lik

Re: Problems with gif tunnels

2005-06-10 Thread Stephen J. Bevan
Greg 'groggy' Lehey writes: > It's currently pushing 7:30 pm, and I was going to send out a reply > tomorrow. But indeed, it seems that Linux people prefer GRE tunnels, > we prefer (with good reason) IP tunnels, ... Like FreeBSD, Linux supports both GRE and IPIP. It is not a Linux thing to us

Re: Problems with gif tunnels

2005-06-10 Thread Stephen J. Bevan
Gianmarco Giovannelli writes: > Hi Greg, I have follow with interest this thread because I had a similar > problem sometimes ago and we din't succeded in resolve it as I like ... > > I had to connect a couple of a nets with a freebsd box and a linux box > (not managed by me). They insist t

Re: Problems with gif tunnels

2005-06-10 Thread Stephen J. Bevan
Greg 'groggy' Lehey writes: > Certainly that confusion exists. But it doesn't seem to be the > problem here: the original poster (Gianmarco?) stated that he had > tried to set up a tunnel with gif(4), which would mean an IP-IP > tunnel. If you were referring to Gianmarco then as the following

Re: Problems with gif tunnels

2005-06-10 Thread Greg 'groggy' Lehey
On Friday, 10 June 2005 at 22:59:57 -0700, Stephen J. Bevan wrote: > Greg 'groggy' Lehey writes: >> Certainly that confusion exists. But it doesn't seem to be the >> problem here: the original poster (Gianmarco?) stated that he had >> tried to set up a tunnel with gif(4), which would mean an IP-IP