Re: Thinking about IPv6 and DEPRECATED addresses

2007-03-01 Thread Tsuyoshi MOMOSE
On 2007/02/28, at 20:33, Max Laier wrote: So, I am contemplating adding to rtsock.c the ability to send these types of events up. I am thinking on adding this there for two reasons.. a) SCTP already hooks into the routing socket to get interface changes. and b) It may well be a relevant f

Re: Large TCP send socket buffer optimizations

2007-03-01 Thread Andre Guibert de Bruet
On Mar 1, 2007, at 11:40 AM, Andre Oppermann wrote: Andrew Gallatin wrote: Andre Oppermann writes: > This patch solves the problem by maintaining an offset pointer in the socket > buffer to give tcp_output() the closest mbuf right away avoiding the traversal > from the beginning. > > W

Re: [PATCH] Re: is setsockopt SO_NOSIGPIPE work?

2007-03-01 Thread Bruce M. Simpson
N.J. Mann wrote: Could this be why mail from cron doesn't work for me in 6.2? I got as far as finding that cron receives a SIGPIPE while sending the mail message to sendmail, but never worked out why. I ended up hacking cron to ignore SIGPIPE and then ENOTIME to investigate further. Unlikely,

Re: [PATCH] Re: is setsockopt SO_NOSIGPIPE work?

2007-03-01 Thread N.J. Mann
On Thursday, 1 March, 2007 at 17:34:50 +, Bruce M. Simpson wrote: > Anton Yuzhaninov wrote: > > > >Thanks, with send() it works fine. > >I think it should be documented in setsockopt(2). > Try this patch. The comment doesn't reflect what the code does. SIGPIPE > may actually be getting queued

Re: [PATCH] Re: is setsockopt SO_NOSIGPIPE work?

2007-03-01 Thread Bruce M. Simpson
Anton Yuzhaninov wrote: Works for me. Committed, thanks for finding this bug. BMS ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: [PATCH] Re: is setsockopt SO_NOSIGPIPE work?

2007-03-01 Thread Anton Yuzhaninov
Thursday, March 1, 2007, 8:34:50 PM, Bruce M. Simpson wrote: BMS> Anton Yuzhaninov wrote: >> >> Thanks, with send() it works fine. >> I think it should be documented in setsockopt(2). BMS> Try this patch. The comment doesn't reflect what the code does. SIGPIPE BMS> may actually be getting queued t

[PATCH] Re: is setsockopt SO_NOSIGPIPE work?

2007-03-01 Thread Bruce M. Simpson
Anton Yuzhaninov wrote: Thanks, with send() it works fine. I think it should be documented in setsockopt(2). Try this patch. The comment doesn't reflect what the code does. SIGPIPE may actually be getting queued twice in your case. It is most likely that the process's main thread wasn't preemp

Re: is setsockopt SO_NOSIGPIPE work?

2007-03-01 Thread Bruce M. Simpson
Anton Yuzhaninov wrote: RE> It works, but only if you use send() instead of write(). RE> Alternatively, you can control the behavior on a per RE> message basis, by passing the MSG_NOSIGNAL in the "flags" RE> argument to the send() call (without having to set a RE> socket option). Thanks, with se

Re[2]: is setsockopt SO_NOSIGPIPE work?

2007-03-01 Thread Anton Yuzhaninov
Thursday, March 1, 2007, 6:29:42 PM, Ruslan Ermilov wrote: RE> On Thu, Mar 01, 2007 at 03:17:29PM +0300, Anton Yuzhaninov wrote: >> Is SO_NOSIGPIPE work? >> >> It try to set on socket option SO_NOSIGPIPE but anyway process >> received sigpipe. >> RE> It works, but only if you use send() instead

Re: Large TCP send socket buffer optimizations

2007-03-01 Thread Andre Oppermann
Andrew Gallatin wrote: Andre Oppermann writes: > This patch solves the problem by maintaining an offset pointer in the socket > buffer to give tcp_output() the closest mbuf right away avoiding the traversal > from the beginning. > > With this patch we should be able to compete nicely for t

Re: Large TCP send socket buffer optimizations

2007-03-01 Thread Andrew Gallatin
Andre Oppermann writes: > This patch solves the problem by maintaining an offset pointer in the socket > buffer to give tcp_output() the closest mbuf right away avoiding the > traversal > from the beginning. > > With this patch we should be able to compete nicely for the Internet land > s

Re[2]: is CARP still impossible on SMP in 6.2?

2007-03-01 Thread dima
> On Wed, Feb 28, 2007 at 06:08:21PM +0300, dima wrote: > d> > On Wed, Feb 28, 2007 at 02:28:13PM +0300, dima wrote: > d> > d> I'm trying to make CARP working on a 2-Xeon hardware. It worked OK on > 5.5, but not on 6.2. > d> > d> The result of compiling both > d> > d> options SMP > d> > d> device

Re: is setsockopt SO_NOSIGPIPE work?

2007-03-01 Thread Ruslan Ermilov
Hi Anton, On Thu, Mar 01, 2007 at 03:17:29PM +0300, Anton Yuzhaninov wrote: > Hello. > > Is SO_NOSIGPIPE work? > > It try to set on socket option SO_NOSIGPIPE but anyway process > received sigpipe. > It works, but only if you use send() instead of write(). Alternatively, you can control the beh

Re: is CARP still impossible on SMP in 6.2?

2007-03-01 Thread Gleb Smirnoff
On Wed, Feb 28, 2007 at 06:08:21PM +0300, dima wrote: d> > On Wed, Feb 28, 2007 at 02:28:13PM +0300, dima wrote: d> > d> I'm trying to make CARP working on a 2-Xeon hardware. It worked OK on 5.5, but not on 6.2. d> > d> The result of compiling both d> > d> options SMP d> > d> device carp d> > d

Re: Large TCP send socket buffer optimizations

2007-03-01 Thread Robert Watson
buffer to give tcp_output() the closest mbuf right away avoiding the traversal from the beginning. With this patch we should be able to compete nicely for the Internet land speed record again. The patch is here: http://people.freebsd.org/~andre/sockbuf_sndptr-20070301.diff Any testing

Large TCP send socket buffer optimizations

2007-03-01 Thread Andre Oppermann
away avoiding the traversal from the beginning. With this patch we should be able to compete nicely for the Internet land speed record again. The patch is here: http://people.freebsd.org/~andre/sockbuf_sndptr-20070301.diff Any testing, especially on 10Gig cards, and feedback appreciated. -- Andre

Re: Inconsistencies with IP_ONESBCAST and/or IP_SENDSRCADDR

2007-03-01 Thread Bruce M. Simpson
Andre Oppermann wrote: I have some WIP here too. I'll send it to you later this afternoon. Thanks, I look forward to seeing it, re Issue #2 IP_SENDSRCADDR. Dealing with dhclient is a separate issue -- here, something like IP_SENDIF needs to be introduced, as we are truly in an 'ip unnumbere

Re: nconsistencies with IP_ONESBCAST and/or IP_SENDSRCADDR

2007-03-01 Thread Andre Oppermann
Bruce M. Simpson wrote: Bruce M Simpson wrote: Hello, In preparation for tightening up our handling of INADDR_BROADCAST sends, I ran some brief tests today on the network stack with the attached test code. I found some inconsistencies when run against 6.2-RELEASE; 1. IP_ONESBCAST breaks if

Re: Proposal: Add M_HASCL().

2007-03-01 Thread Andre Oppermann
Bruce M. Simpson wrote: Bruce M Simpson wrote: Much network code needs to know if the mbuf it is looking at is using a cluster. I propose putting M_HASCL() in sys/mbuf.h. I realise this is a style change, however, it seems to be a very common idiom. I sent this, then I looked at NetBSD, having

is setsockopt SO_NOSIGPIPE work?

2007-03-01 Thread Anton Yuzhaninov
Hello. Is SO_NOSIGPIPE work? It try to set on socket option SO_NOSIGPIPE but anyway process received sigpipe. Test case: #include #include #include #include #define SERVER_PORT 8000 void sigpipe(int signo __unused) { printf("SIGPIPE recivied\n"); } int main(int argc, char *argv

Re: nconsistencies with IP_ONESBCAST and/or IP_SENDSRCADDR

2007-03-01 Thread Bruce M. Simpson
Bruce M Simpson wrote: Hello, In preparation for tightening up our handling of INADDR_BROADCAST sends, I ran some brief tests today on the network stack with the attached test code. I found some inconsistencies when run against 6.2-RELEASE; 1. IP_ONESBCAST breaks if SO_DONTROUTE is specifie

python 2.4.4, 1 vs 2.4.3, 1 - zope trouble - python version downgrade

2007-03-01 Thread Le Cocq Michel
Yesterday I try to install a python module after a 'portsnap fetch update', during the install python upgrade from version 2.4.3,1 to 2.4.4,1. python-2.4.3,1 The "meta-port" for the stable version of Python interprete vs python-2.4.4,1 [...] since these upgrade my zope (zope29-2.9.6) won't s

Re: Packet rate limiter

2007-03-01 Thread Chris
On 17/02/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi > > is there any way how to limit packet per second [PPS] rate to > specified > IP (group of IP) ? Linux can achieve this via IPtables. > I`ve searched a lot of web, but nothing interesting found (for PF, > IPFilter, and IPFW). > I a

Re: Proposal: Add M_HASCL().

2007-03-01 Thread Bruce M. Simpson
Bruce M Simpson wrote: Much network code needs to know if the mbuf it is looking at is using a cluster. I propose putting M_HASCL() in sys/mbuf.h. I realise this is a style change, however, it seems to be a very common idiom. I sent this, then I looked at NetBSD, having caught a glimpse of their

Re: ipfw

2007-03-01 Thread Luigi Rizzo
On Thu, Mar 01, 2007 at 11:24:07AM +0100, Antonio Tommasi wrote: > Hi to all, > i want to know if it is possibile in my firewall.conf refer to an > external file where for example i indicate my source ip or/and my > destination ip of my rules. this is not supported directly in /sbin/ipfw, becaus

ipfw

2007-03-01 Thread Antonio Tommasi
Hi to all, i want to know if it is possibile in my firewall.conf refer to an external file where for example i indicate my source ip or/and my destination ip of my rules. Thanks in advance Antonio ___ freebsd-net@freebsd.org mailing list http://lists.