Re: svn commit: r186955 - in head/sys: conf netinet

2009-01-14 Thread Robert Watson
On Sat, 10 Jan 2009, Julian Elischer wrote: I'm happy to (eventually) also implement the BSDI API once I actually spend time looking at what the difference in behaviours are. If we're lucky, the only difference is where the socket option hooks in and the actual network behaviour is the same.

Re: svn commit: r186955 - in head/sys: conf netinet

2009-01-11 Thread Bruce M. Simpson
Attila Nagy wrote: ... Do you know anything else which can do that now with an easy API (accessible from high level languages like perl or python)? I sent a patch to the Python guys to implement the protocol-independent multicast socket API a good while back. It takes a long time to get feed

Re: svn commit: r186955 - in head/sys: conf netinet

2009-01-10 Thread Julian Elischer
Robert Watson wrote: On Sat, 10 Jan 2009, Adrian Chadd wrote: 2009/1/10 Robert Watson : I think Julian's analysis, that this is more of an inet option than a socket-layer option, seems more appropriate to me, the benefits of portability in adopting the API used by OpenBSD/BSDI/etc seem more

Re: svn commit: r186955 - in head/sys: conf netinet

2009-01-10 Thread Adrian Chadd
2009/1/10 Robert Watson : > If the API turns out to be effectly semantically the same, or better, then I > think the suggestion is to entirely replace, rather than supplement, the > socket option you just added with it. There's no point in having > pointlessly divergent APIs where it can be avoid

Re: svn commit: r186955 - in head/sys: conf netinet

2009-01-10 Thread Robert Watson
On Sat, 10 Jan 2009, Adrian Chadd wrote: 2009/1/10 Robert Watson : I think Julian's analysis, that this is more of an inet option than a socket-layer option, seems more appropriate to me, the benefits of portability in adopting the API used by OpenBSD/BSDI/etc seem more compelling. We shou

Re: svn commit: r186955 - in head/sys: conf netinet

2009-01-10 Thread Julian Elischer
Adrian Chadd wrote: 2009/1/10 Attila Nagy : BTW, I'm eagerly waiting for somebody to implement this transparency into nginx, which can act as a reverse proxy with built-in perl logic. :) That way FreeBSD could be used as a highly flexible transparent reverse HTTP proxy. Do you know anything e

Re: svn commit: r186955 - in head/sys: conf netinet

2009-01-10 Thread Adrian Chadd
2009/1/10 Attila Nagy : > BTW, I'm eagerly waiting for somebody to implement this transparency into > nginx, which can act as a reverse proxy with built-in perl logic. :) > That way FreeBSD could be used as a highly flexible transparent reverse HTTP > proxy. > > Do you know anything else which ca

Re: svn commit: r186955 - in head/sys: conf netinet

2009-01-10 Thread Julian Elischer
Adrian Chadd wrote: 2009/1/10 Robert Watson : I think Julian's analysis, that this is more of an inet option than a socket-layer option, seems more appropriate to me, the benefits of portability in adopting the API used by OpenBSD/BSDI/etc seem more compelling. We should make sure that, if we

Re: svn commit: r186955 - in head/sys: conf netinet

2009-01-10 Thread Garrett Cooper
On Jan 10, 2009, at 10:28, Attila Nagy wrote: Adrian Chadd wrote: 2009/1/10 Robert Watson : I think Julian's analysis, that this is more of an inet option than a socket-layer option, seems more appropriate to me, the benefits of portability in adopting the API used by OpenBSD/BSDI/etc see

Re: svn commit: r186955 - in head/sys: conf netinet

2009-01-10 Thread Attila Nagy
Adrian Chadd wrote: 2009/1/10 Robert Watson : I think Julian's analysis, that this is more of an inet option than a socket-layer option, seems more appropriate to me, the benefits of portability in adopting the API used by OpenBSD/BSDI/etc seem more compelling. We should make sure that, if

Re: svn commit: r186955 - in head/sys: conf netinet

2009-01-10 Thread Adrian Chadd
2009/1/10 Robert Watson : > I think Julian's analysis, that this is more of an inet option than a > socket-layer option, seems more appropriate to me, the benefits of > portability in adopting the API used by OpenBSD/BSDI/etc seem more > compelling. We should make sure that, if we move to the soc

Re: svn commit: r186955 - in head/sys: conf netinet

2009-01-10 Thread Robert Watson
On Sat, 10 Jan 2009, Attila Nagy wrote: Well, they can be used mostly interchangably - they socket option is just implemented at a different layer. Porting should be a case of a simple #ifdef. :) I wonder what pf changes are needed.. I think Julian's analysis, that this is more of an inet

Re: svn commit: r186955 - in head/sys: conf netinet

2009-01-10 Thread Attila Nagy
Hello, pf and relayd changes... http://marc.info/?l=openbsd-cvs&m=121030115209292&w=2 http://marc.info/?l=openbsd-cvs&m=121320866832670&w=2 (sorry, I don't know a better way to link to these changes, the commit logs contain the affected files and their log message, so they can be looked up in t

Re: svn commit: r186955 - in head/sys: conf netinet

2009-01-09 Thread Julian Elischer
Adrian Chadd wrote: I wasn't even aware of the existance of this interface. I'll check it out. Thing is, this is a socket layer option, rather than what I've committed which is a netinet layer option. Anyway, I'll check it out. I'm happy to fiddle with things if others' would like it. remember

Re: svn commit: r186955 - in head/sys: conf netinet

2009-01-09 Thread Adrian Chadd
Well, they can be used mostly interchangably - they socket option is just implemented at a different layer. Porting should be a case of a simple #ifdef. :) I wonder what pf changes are needed.. Adrian 2009/1/9 Attila Nagy : > Julian Elischer wrote: >> >> Attila Nagy wrote: >>> >>> Hello, >>> >

Re: svn commit: r186955 - in head/sys: conf netinet

2009-01-09 Thread Attila Nagy
Julian Elischer wrote: Attila Nagy wrote: Hello, Adrian Chadd wrote: Author: adrian Date: Fri Jan 9 16:02:19 2009 New Revision: 186955 URL: http://svn.freebsd.org/changeset/base/186955 Log: Implement a new IP option (not compiled/enabled by default) to allow applications to specify a non

Re: svn commit: r186955 - in head/sys: conf netinet

2009-01-09 Thread Julian Elischer
Attila Nagy wrote: Hello, Adrian Chadd wrote: Author: adrian Date: Fri Jan 9 16:02:19 2009 New Revision: 186955 URL: http://svn.freebsd.org/changeset/base/186955 Log: Implement a new IP option (not compiled/enabled by default) to allow applications to specify a non-local IP address when b

Re: svn commit: r186955 - in head/sys: conf netinet

2009-01-09 Thread Adrian Chadd
I wasn't even aware of the existance of this interface. I'll check it out. Thing is, this is a socket layer option, rather than what I've committed which is a netinet layer option. Anyway, I'll check it out. I'm happy to fiddle with things if others' would like it. Adrian 2009/1/9 Attila Nagy

Re: svn commit: r186955 - in head/sys: conf netinet

2009-01-09 Thread Attila Nagy
Hello, Adrian Chadd wrote: Author: adrian Date: Fri Jan 9 16:02:19 2009 New Revision: 186955 URL: http://svn.freebsd.org/changeset/base/186955 Log: Implement a new IP option (not compiled/enabled by default) to allow applications to specify a non-local IP address when bind()'ing a socket

Re: svn commit: r186955 - in head/sys: conf netinet

2009-01-09 Thread Julian Elischer
Robert Watson wrote: On Fri, 9 Jan 2009, Julian Elischer wrote: Max Laier wrote: On Friday 09 January 2009 17:02:19 Adrian Chadd wrote: Author: adrian Date: Fri Jan 9 16:02:19 2009 New Revision: 186955 URL: http://svn.freebsd.org/changeset/base/186955 Log: Implement a new IP option (not c

Re: svn commit: r186955 - in head/sys: conf netinet

2009-01-09 Thread Max Laier
On Friday 09 January 2009 19:29:11 Adrian Chadd wrote: > 2009/1/9 Max Laier : > > Speaking of disabling it ... setting the sysctl to 0 is not really enough > > to do that. One would also have to walk through the active sockets and > > GC any that are bound to nonlocal addresses to really disable i

Re: svn commit: r186955 - in head/sys: conf netinet

2009-01-09 Thread Robert Watson
On Fri, 9 Jan 2009, Julian Elischer wrote: Max Laier wrote: On Friday 09 January 2009 17:02:19 Adrian Chadd wrote: Author: adrian Date: Fri Jan 9 16:02:19 2009 New Revision: 186955 URL: http://svn.freebsd.org/changeset/base/186955 Log: Implement a new IP option (not compiled/enabled by def

Re: svn commit: r186955 - in head/sys: conf netinet

2009-01-09 Thread Adrian Chadd
2009/1/9 Max Laier : > Speaking of disabling it ... setting the sysctl to 0 is not really enough to > do that. One would also have to walk through the active sockets and GC any > that are bound to nonlocal addresses to really disable it ... or do we rely on > tcpdrop or the like to do that manual

Re: svn commit: r186955 - in head/sys: conf netinet

2009-01-09 Thread Julian Elischer
Max Laier wrote: On Friday 09 January 2009 18:46:06 Julian Elischer wrote: Max Laier wrote: On Friday 09 January 2009 17:02:19 Adrian Chadd wrote: Author: adrian Date: Fri Jan 9 16:02:19 2009 New Revision: 186955 URL: http://svn.freebsd.org/changeset/base/186955 Log: Implement a new IP opt

Re: svn commit: r186955 - in head/sys: conf netinet

2009-01-09 Thread Julian Elischer
Max Laier wrote: On Friday 09 January 2009 17:02:19 Adrian Chadd wrote: Author: adrian Date: Fri Jan 9 16:02:19 2009 New Revision: 186955 URL: http://svn.freebsd.org/changeset/base/186955 Log: Implement a new IP option (not compiled/enabled by default) to allow applications to specify a no

Re: svn commit: r186955 - in head/sys: conf netinet

2009-01-09 Thread Max Laier
On Friday 09 January 2009 18:46:06 Julian Elischer wrote: > Max Laier wrote: > > On Friday 09 January 2009 17:02:19 Adrian Chadd wrote: > >> Author: adrian > >> Date: Fri Jan 9 16:02:19 2009 > >> New Revision: 186955 > >> URL: http://svn.freebsd.org/changeset/base/186955 > >> > >> Log: > >> Impl

Re: svn commit: r186955 - in head/sys: conf netinet

2009-01-09 Thread Max Laier
On Friday 09 January 2009 17:02:19 Adrian Chadd wrote: > Author: adrian > Date: Fri Jan 9 16:02:19 2009 > New Revision: 186955 > URL: http://svn.freebsd.org/changeset/base/186955 > > Log: > Implement a new IP option (not compiled/enabled by default) to allow > applications to specify a non-loc

svn commit: r186955 - in head/sys: conf netinet

2009-01-09 Thread Adrian Chadd
Author: adrian Date: Fri Jan 9 16:02:19 2009 New Revision: 186955 URL: http://svn.freebsd.org/changeset/base/186955 Log: Implement a new IP option (not compiled/enabled by default) to allow applications to specify a non-local IP address when bind()'ing a socket to a local endpoint. Thi