sysctl net.inet.tcp.syncache.count

2008-11-06 Thread Anton Yuzhaninov
% sysctl net.inet.tcp.syncache net.inet.tcp.syncache.rst_on_sock_fail: 1 net.inet.tcp.syncache.rexmtlimit: 3 net.inet.tcp.syncache.hashsize: 1024 net.inet.tcp.syncache.count: -84 net.inet.tcp.syncache.cachelimit: 102400 net.inet.tcp.syncache.bucketlimit: 100 Why number of entries in syncache is n

Re: CARP and L2 src-MAC

2008-11-06 Thread Peter Jeremy
On 2008-Nov-06 10:06:21 +0100, Jon Otterholm <[EMAIL PROTECTED]> wrote: >Is it possible to tweak CARP to use the virtual MAC in L2 header instead of >the physical interface MAC? Could this be implemented as a feature >controlled by a sysctl? In my testing, Max Laier's carpdep patches do this. See

Two copies of resolver routines in libc ?

2008-11-06 Thread Luigi Rizzo
i was recently re-looking at the problem mentioned in http://lists.freebsd.org/pipermail/freebsd-hackers/2003-August/002399.html (bogus dns servers on my ISP, telecomitalia, which takes forever to resolve queries, coupled with the absence, on the FreeBSD resolver has no way to disable q

Re: BPF question

2008-11-06 Thread Ivo Vachkov
I "evaluated" Avahi, but it is too big for my needs. I will check howl too. However Zeroconf seems relatively easy to implement, plus i need this module to work in cooperation with others. The License does matter too :) On Thu, Nov 6, 2008 at 8:14 PM, Eygene Ryabinkin <[EMAIL PROTECTED]> wrote: >

Re: BPF question

2008-11-06 Thread Eygene Ryabinkin
Just a side note. Thu, Nov 06, 2008 at 07:54:13PM +0200, Ivo Vachkov wrote: > P.S. I'm implementing part of RFC3927 (ZeroConf) as part of a bigger project Had you glanced at /usr/ports/net/howl and may be /usr/ports/net/avahi? -- Eygene ____ _.--. # \`.|\.....-'`

Re: BPF question

2008-11-06 Thread Ivo Vachkov
I use following code: /* Send Announce Packet */ int zc_freebsd_sendannounce(int fd, unsigned char *mac, int zc_addr) { unsigned char *announce = NULL; int i = 0; unsigned int packet_len = 0; struct ether_header *eth_hdr = NULL; struct ether_arp *e

Re: BPF question

2008-11-06 Thread Robert Watson
On Thu, 6 Nov 2008, Ivo Vachkov wrote: I am using simple write() calls to send packets over BPF file descriptor. The BPF file descriptor is in buffered read mode (I assume this is the default and I do not set it explicitly). From what I see my write() calls are somewhat buffered. Since timing

Kernel without INET

2008-11-06 Thread Bjoern A. Zeeb
Hi, some might have wondered about lots of small commits I have done the last two days. I had been trying to compile a kernel without any networking a few weeks ago and that failed; I had needed to add (I think it was) INET, ether and loop. So I had been trying to get rid of that requirement th

BPF question

2008-11-06 Thread Ivo Vachkov
Hello all, I am using simple write() calls to send packets over BPF file descriptor. The BPF file descriptor is in buffered read mode (I assume this is the default and I do not set it explicitly). From what I see my write() calls are somewhat buffered. Since timing is relatively important for my p

Re: CARP and L2 src-MAC

2008-11-06 Thread Jon Otterholm
On 2008-11-06 11.47, "Peter Jeremy" <[EMAIL PROTECTED]> wrote: > On 2008-Nov-06 10:06:21 +0100, Jon Otterholm > <[EMAIL PROTECTED]> wrote: >> Is it possible to tweak CARP to use the virtual MAC in L2 header instead of >> the physical interface MAC? Could this be implemented as a feature >> contro

Re: CARP performance tuning question.

2008-11-06 Thread pluknet
2008/11/6 Peter Jeremy <[EMAIL PROTECTED]>: > Whilst I don't doubt that you have a problem, your comments don't > correlate particularly well with the data you have provided and > this makes it difficult to immediately suggest a solution. > > On 2008-Nov-05 16:40:32 +0300, pluknet <[EMAIL PROTECTED

Re: CARP performance tuning question.

2008-11-06 Thread Peter Jeremy
Whilst I don't doubt that you have a problem, your comments don't correlate particularly well with the data you have provided and this makes it difficult to immediately suggest a solution. On 2008-Nov-05 16:40:32 +0300, pluknet <[EMAIL PROTECTED]> wrote: >AT work we use device carp(4) under high l

CARP and L2 src-MAC

2008-11-06 Thread Jon Otterholm
Hi. We have a situation where we want to use CARP in a TPSDA-network and got some problems. The master CARP router ARP response contains the correct virtual MAC but uses the physical interface MAC in L2 header. This is OK for the client but the switches in between the router and the client will