Re: Some gruesome moments with performance of FreeBSD at over 20K interfaces

2014-04-10 Thread Harti Brandt
On Wed, 9 Apr 2014, Vladislav Prodan wrote: VP>b) Service bsnmpd started at 12K interfaces, but immediately loaded CPU VP>at 80-100% I could imagine that this is because of the statistics polling. bsnmp implements 64-bit interface statistics but we have only 32-bit statistics in the kernel. So

Re: BSNMPD: several (cosmetic?) problems

2013-04-08 Thread Harti Brandt
Hi, On Sun, 7 Apr 2013, Lev Serebryakov wrote: LS>(1) I have a lot of "could not encode error response" in LS>/var/log/messages after change of hardware. It looks like, every LS>request from mrtg for "unexistent" interface leads to this message. LS>I'll reconfigure mrtg, of course, but it is ann

Re: bsnmpd: ifTable and if_nametoindex() inconsistency

2011-01-24 Thread Harti Brandt
On Sat, 22 Jan 2011, Eugene Grosbein wrote: EG>On 23.01.2011 00:24, Eugene Grosbein wrote: EG>> I really need quick method to obtain SNMP index within mpd55 code EG>> (for my local mpd hacks) and if_nametoindex() used to seem nice way... EG>> I need to export indexes via mpd's web interface so tha

Re: Querying bsnmpd through /var/run/snmpd.sock

2011-01-24 Thread Harti Brandt
On Sun, 23 Jan 2011, Eugene Grosbein wrote: EG>bsnmpd running with mibII module opens local socket /var/run/snmpd.sock EG>mentioned in snmp_mibII(3) manual page: EG> EG> The mibII module opens a socket that is used to execute all network EG> related ioctl(2) functions. This socket is glob

Re: bsnmpd: ifTable and if_nametoindex() inconsistency

2011-01-24 Thread Harti Brandt
On Sat, 22 Jan 2011, Eugene Grosbein wrote: EG>I run 8.2-PRERELEASE with bsnmpd and mpd55 serving PPPoE users. EG>I've noticed that sometimes snmpwalk shows interface indexes EG>that partially differ from what if_nametoindex(3) returns EG>with off-by-one or off-by-two. For example, just now this s

Re: Future of netnatm: looking for testers

2010-12-17 Thread Harti Brandt
On Fri, 17 Dec 2010, Robert Watson wrote: RW> RW>On Wed, 15 Dec 2010, Bjoern A. Zeeb wrote: RW> RW>> I would request two things: RW>> RW>> 1) the extra couple of months; this will not prevent the evitable removal RW>> yet only defer it. RW> RW>Sounds good to me -- my goal is not to remove NETNA

Re: Poor situation with snmp support in FreeBSD

2010-03-26 Thread Harti Brandt
Hi, On Fri, 26 Mar 2010, Alexander Bubnov wrote: AB>One more question please in scope of snmp topic. does bsnmp support master AB>agentx mode? No. I read through the documents and decided that I would not have time to implement this. I often use external agents in projects, but usually use cus

Re: Poor situation with snmp support in FreeBSD

2010-03-26 Thread Harti Brandt
Hi, On Thu, 25 Mar 2010, Shteryana Shopova wrote: SS>On Thu, Mar 25, 2010 at 1:33 PM, Harti Brandt wrote: SS>> On Thu, 25 Mar 2010, Vasyl Samoilov wrote: SS>> SS>> SS>> - bsnmp is lacking developers (I'm the only one). I had a surgery in SS>+ 1 (count me in

Re: Poor situation with snmp support in FreeBSD

2010-03-25 Thread Harti Brandt
On Thu, 25 Mar 2010, Vasyl Samoilov wrote: VS>So far I found two options for snmp daemon - bsnmp and net-snmp. net-snmo VS>giving back invalid data, bsnmp lacks some data at all. Just two general remarks: - net-snmp is probably developed on Linux so it doesn't know how to access many of the in

generating routing message on LL address change

2009-12-02 Thread Harti Brandt
Hi all, I would like to commit the following patch. It generates an RTM_IFINFO message when the link-layer address of an interface is changed. This should be no problem for routing daemons, because the same messages are also generated when other interface state changes. Are there any reasons

ARP regression in releng-8

2009-11-22 Thread Harti Brandt
Hi all, I try to figure out something simple like the ARP retransmission timeout to populate the ipv4InterfaceRetransmitTime in the RFC4293 MIB. In line 357 of netinet/if_ether.c it says: /* * Return EWOULDBLOCK if we have tried less than arp_maxtries. It * will be m

Re: TCP bug?

2009-06-19 Thread Harti Brandt
Hi, On Fri, 19 Jun 2009, Chuck Swiger wrote: CS>On Jun 19, 2009, at 10:44 AM, Harti Brandt wrote: CS>> When the TCP is in SYN-SENT state (the user has called connect()) and the CS>> peer answers with an almost-lamp test packet which has SYN, FIN, ACK and CS>> data larger

TCP bug?

2009-06-19 Thread Harti Brandt
Hi all, one of my TCP test cases breaks in what one could call an edge case: When the TCP is in SYN-SENT state (the user has called connect()) and the peer answers with an almost-lamp test packet which has SYN, FIN, ACK and data larger than the window, TCP ACKs a window full of data, drops the

TCP bug?

2009-06-19 Thread Harti Brandt
Hi all, one of my TCP test cases breaks in what one could call an edge case: When the TCP is in SYN-SENT state (the user has called connect()) and the peer answers with an almost-lamp test packet which has SYN, FIN, ACK and data larger than the window, TCP ACKs a window full of data, drops the

Re: TCP Free-BSD setup behaviour.

2009-06-16 Thread Harti Brandt
On Tue, 16 Jun 2009, Erik Trulsson wrote: ET>On Tue, Jun 16, 2009 at 04:37:32PM +0530, saravana perumal wrote: ET>> Hi  Louie. ET>>   ET>> As per Testing ET>>   ET>> 1.Sending SYN and reaching the SYN_SENT state INTIALLY [Active open] ET>> 2. Then Expects to RECEIVE SYN packet and ET>> 3. To Sen

Re: bsnmpd + netsnmp & 64bits counters problem, bce interface problems maybe ?

2009-05-29 Thread Harti Brandt
> s>bsnmpd does it every second. s> s>also, as far as this " s>options=bb" s> s>jumbo is disabled on the switch. s> s>in comparison to another gigabit, (em0) on that switch. s>options=9b s> s>they're both at MTU 1500 though. s> s>thanks s>

Re: bsnmpd + netsnmp & 64bits counters problem, bce interface problems maybe ?

2009-05-29 Thread Harti Brandt
understand it they should go up and wrap at either 32-bit or 64-bit. There are only two cases when they go down: a wrap or a discontinuity, which would be recorded in ifCounterDiscontinuityTime. Just to check: could you please disable TSO on the interface and look what it does? harti s>Hart

Re: bsnmpd + netsnmp & 64bits counters problem, bce interface problems maybe ?

2009-05-29 Thread Harti Brandt
On Thu, 28 May 2009, smallpox wrote: s>hey guys, i've read s> [SNIP] s> s>in comparison to an intel em.. 32bit, it's linked at a gigabit though.. but no s>heavy traffic there. s> s>--BEGIN WORKING s>IF-MIB::ifInOctets.1 /15 sec: 1932426 s>IF-MIB::ifOutOctets.1 /15 sec: 24270520 s>IF-MIB::ifInOct

Re: bsnmp module for monitoring network flows: bsnmp-pcap

2009-01-21 Thread Harti Brandt
On Tue, 20 Jan 2009, Shteryana Shopova wrote: SS>> SS> SS>> SS>This is indeed interesting :) SS>> SS>One thing to point out is that { begemot 206 } is already allocated SS>> SS>for begemotVlan - and the two modules will conflict - you might want SS>> SS>to contact harti for a free OID under begemo

Re: bsnmp module for monitoring network flows: bsnmp-pcap

2009-01-20 Thread Harti Brandt
On Tue, 20 Jan 2009, Shteryana Shopova wrote: SS>Hi, SS> SS>On Tue, Jan 20, 2009 at 3:20 AM, Stef wrote: SS>> Figured this may be interesting for folks... SS>> SS>> I've released a bsnmp module which can monitor arbitrary traffic flows SS>> and expose them as SNMP counters. SS>> SS> SS>This is in

Re: bsnmpd & 64bits counters problem

2008-12-16 Thread Harti Brandt
On Tue, 16 Dec 2008, Bruce Simpson wrote: BS>Harti Brandt wrote: BS>> The highspeed counters are only there if this is a high-speed interface. BS>> High speed means that the baudrate in the interface MIB (the one in the BS>> kernel) must be larger than 20Mbaud. BS>>

Re: bsnmpd & 64bits counters problem

2008-12-16 Thread Harti Brandt
On Tue, 16 Dec 2008, Sergey Matveychuk wrote: SM>Harti Brandt wrote: SM>> On Tue, 16 Dec 2008, Sergey Matveychuk wrote: SM>> SM>> SM>Hello. SM>> SM> SM>> SM>Some weird thing has happened with 64bit counters: SM>> SM> SM>> SM>

Re: bsnmpd & 64bits counters problem

2008-12-16 Thread Harti Brandt
On Tue, 16 Dec 2008, Sergey Matveychuk wrote: SM>Hello. SM> SM>Some weird thing has happened with 64bit counters: SM> SM>% snmpwalk -v2c -cpublic localhost ifInOctets SM>IF-MIB::ifInOctets.1 = Counter32: 4107815474 SM>... SM>IF-MIB::ifInOctets.16 = Counter32: 2894713654 SM> SM>% snmpwalk -v2c -cpu

Re: TCP and syncache question

2008-11-19 Thread Harti Brandt
Hi Andre, On Mon, 17 Nov 2008, Andre Oppermann wrote: AO>This is a bit more complicated because of interactions with tcp_input() AO>where syncache_expand() is called from. AO> AO>The old code (as of December 2002) behaved slightly different. It would AO>not remove the syncache entry when (SND.UN

Re: TDMA / Interrupts / Pre-emptible

2007-12-07 Thread Harti Brandt
On Fri, 7 Dec 2007, Bruce M. Simpson wrote: BMS>I can't comment on kernel scheduler jitter though, so someone who is working BMS>directly in that area will hopefully respond -- arch@ or hackers@ might be a BMS>better place to field that question. BMS> BMS>I believe microsecond resolution for your

TCP conformance question

2007-11-17 Thread Harti Brandt
Hi, I was browsing through our TCP implementation and found the following: according to RFC 793 if a segment with length 0 is received its sequence number must hold: RCV.NXT <= SEG.SEQ < RCV.NXT + RCV.WND. That is, the sequence number must be within the window. Otherwise the segment is not a

Re: Disable Exponential Backoff (retry) on Ethernet?

2007-10-20 Thread Harti Brandt
On Sat, 20 Oct 2007, Peter Jeremy wrote: PJ>On Wed, Oct 17, 2007 at 08:51:34PM -0700, Len Gross wrote: PJ>>I'm doing some protocol development and it is convenient to start it on PJ>>Ethernet. I will need to send a packet to the Ethernet device and only have PJ>>it be sent once, even if there is

Re: kern/110720: [net] [patch] support for interface descriptions

2007-03-24 Thread Harti Brandt
Nice feature, although it would be nice to align the maximum length with IF-MIB::ifDescr (255 byte + \0). Also I suppose that the field more naturally fits into struct if_data (see net/if.h) given the comment for that struct: /* * Structure describing information about an interface * which m

Re: RFC: a MIB for a SNMP vlan monitoring module

2007-01-10 Thread Harti Brandt
Hi, On Tue, 9 Jan 2007, Shteryana Shopova wrote: SS>Work is about to start on a vlan monitoring module for bsnmpd(1) - I'm SS>attaching the private BEGEMOT MIB that the module will implement. Any SS>comments or suggestions are very welcome. I'm not an expert on the VLAN stuff, so I cannot comme

Re: FreeBSD NFS Client, Windows 2003 NFS server

2006-12-08 Thread Harti Brandt
On Thu, 7 Dec 2006, Harti Brandt wrote: HB>On Thu, 7 Dec 2006, M. Warner Losh wrote: HB> HB>MWL>In message: <[EMAIL PROTECTED]> HB>MWL>Harti Brandt <[EMAIL PROTECTED]> writes: HB>MWL>: MWL>Does anybody have experience with using FreeBSD 4.x or

Re: FreeBSD NFS Client, Windows 2003 NFS server

2006-12-07 Thread Harti Brandt
On Thu, 7 Dec 2006, M. Warner Losh wrote: MWL>In message: <[EMAIL PROTECTED]> MWL> Harti Brandt <[EMAIL PROTECTED]> writes: MWL>: MWL>Does anybody have experience with using FreeBSD 4.x or 6.x NFS clients MWL>: MWL>against a Windows 2003 NFS server? Wh

Re: FreeBSD NFS Client, Windows 2003 NFS server

2006-12-07 Thread Harti Brandt
Hi Warner, On Wed, 6 Dec 2006, M. Warner Losh wrote: MWL>Does anybody have experience with using FreeBSD 4.x or 6.x NFS clients MWL>against a Windows 2003 NFS server? What is the performance relative MWL>to using a FreeBSD NFS server? What is the stability? Does locking MWL>work? Does the Wi

Re: paket loss on freebsd router if (b)snmpd is running##SPAM

2006-10-27 Thread Harti Brandt
On Fri, 27 Oct 2006, Thomas wrote: T>Hello Harti T> T>Harti Brandt schrieb: T>> On Fri, 27 Oct 2006, Thomas wrote: T>> T>> T>Hello T>> T> T>> T>I use several 5.4 and 6.1 FBSD machines as router (with quagga). The T>> T>average traffic is

Re: paket loss on freebsd router if (b)snmpd is running##SPAM

2006-10-27 Thread Harti Brandt
On Fri, 27 Oct 2006, Thomas wrote: T>Hello T> T>I use several 5.4 and 6.1 FBSD machines as router (with quagga). The T>average traffic is 300mbit/s (em interfaces with polling enabled). It T>works more or less. T> T>Problem: T>If bsnmpd is running and I'm doing a snmpwalk from a remote machine the

Re: Instructing dhclient to set hostname of client

2006-10-24 Thread Harti Brandt
On Mon, 23 Oct 2006, Joe Holden wrote: JH>Andrey V. Elsukov wrote: JH>> Doug Barton wrote: JH>>> If you're talking about a laptop where you're not sure what the DHCP JH>>> server is going to send you, then I have this in /etc/rc.local: JH>> JH>> Hi, Doug. JH>> JH>> What you think about adding a

Re: cvs commit: src/sys/net if_vlan.c

2006-07-04 Thread Harti Brandt
On Tue, 4 Jul 2006, Brooks Davis wrote: BD>On Tue, Jul 04, 2006 at 09:02:32PM +0200, Harti Brandt wrote: BD>> On Tue, 4 Jul 2006, Julian Elischer wrote: BD>> BD>> JE>Harti Brandt wrote: BD>> JE> BD>> JE>> On Tue, 4 Jul 2006, Brooks Davis wrote: BD>

Re: cvs commit: src/sys/net if_vlan.c

2006-07-04 Thread Harti Brandt
On Tue, 4 Jul 2006, Julian Elischer wrote: JE>Harti Brandt wrote: JE> JE>> On Tue, 4 Jul 2006, Brooks Davis wrote: JE>> JE>> BD>On Tue, Jul 04, 2006 at 10:25:39AM -0600, M. Warner Losh wrote: JE>> BD>> In message: <[EMAIL PROTECTED]> JE>> BD>

Re: cvs commit: src/sys/net if_vlan.c

2006-07-04 Thread Harti Brandt
On Tue, 4 Jul 2006, Brooks Davis wrote: BD>On Tue, Jul 04, 2006 at 10:25:39AM -0600, M. Warner Losh wrote: BD>> In message: <[EMAIL PROTECTED]> BD>> Brooks Davis <[EMAIL PROTECTED]> writes: BD>> : and act as though the interface is not there. We could then consider BD>> : either holdi

Re: Anyone heard about Broadband over power lines???

2006-05-24 Thread Harti Brandt
On Tue, 23 May 2006, Mark Jayson Alvarez wrote: MJA>Hi, MJA> MJA>A while ago, a group of individuals have demonstrated MJA>us with devices that can be used to extend your MJA>network throughout every corner of your company MJA>through the use of electric outlet... A quick googling MJA>tells me tha

Re: bsnmp-regex SNMP module

2006-04-07 Thread Harti Brandt
On Fri, 7 Apr 2006, Andrey V. Elsukov wrote: AVE>Harti Brandt wrote: AVE>> That would not help people running current, because the port is only build AVE>> for version that don't have bsnmpd in the tree. AVE> AVE>I can make it like bind9, PORT_REPLACES_BASE_BSNMPD :) AVE

Re: bsnmp-regex SNMP module

2006-04-07 Thread Harti Brandt
On Fri, 7 Apr 2006, Andrey V. Elsukov wrote: AVE>Nate Nielsen wrote: AVE>> Anyone want to help with the FreeBSD port? AVE> AVE>I can try to include this module as optional AVE>part of net-mgmt/bsnmpd. That would not help people running current, because the port is only build for version that don

Re: bsnmp-regex SNMP module

2006-04-07 Thread Harti Brandt
On Fri, 7 Apr 2006, Nate Nielsen wrote: NN>-BEGIN PGP SIGNED MESSAGE- NN>Hash: SHA1 NN> NN>Bjoern A. Zeeb wrote: NN>> On Thu, 6 Apr 2006, Nate Nielsen wrote: NN>> NN>>> A thousand apologies if announcing this here is inappropriate, but since NN>>> it's related to FreeBSD's very own bsnmpd

Re: bsnmp with vlan, no speed values are set

2006-04-04 Thread Harti Brandt
On Fri, 31 Mar 2006, Thomas wrote: T>Hi T> T>I use bsnmpd-1.11_3 with FreeBSD 5.4-RELEASE on my router. It works very T>well. The only problem are my vlans on my em interfaces. T> T>As you see below it doesn't set any speed values for vlans. Afaik this T>means I can't use 64bit counter (ifHCInOcte

64-bit SNMP interface counters

2006-02-27 Thread Harti Brandt
This new version has the 64-bit HC counters in the ifXTable really 64-bit on all our platforms. If anybody has interfaces > 1GBit/sec I would be interested how this works. harti On Mon, 27 Feb 2006, Hartmut Brandt wrote: HB>harti 2006-02-27 16:16:18 UTC HB> HB> FreeBSD src repository HB

Re: bsnmpd (was: 64-bit SNMP counters for FreeBSD && graphing bandwidth usage)

2006-02-15 Thread Harti Brandt
On Wed, 15 Feb 2006, Gleb Smirnoff wrote: GS>On Tue, Feb 14, 2006 at 11:58:21AM +0100, Anders Nordby wrote: GS>A> Some things popping off my mind: GS> GS>- A SMUX interface, allowing a process to provide a MIB branch GS> available via bsnmpd. May be in future I will have time to GS> make a SNMP

Re: bsnmpd (was: 64-bit SNMP counters for FreeBSD && graphing bandwidth usage)

2006-02-14 Thread Harti Brandt
On Tue, 14 Feb 2006, Anders Nordby wrote: AN>On Tue, Feb 14, 2006 at 01:39:01PM +0300, Gleb Smirnoff wrote: AN>> A> I should make a list of "what bsnmpd needs" to be more usable, in case AN>> A> Harti is interested. ;-P AN>> Where is such list? AN> AN>Some things popping off my mind: AN> AN>- Abil

Re: 64-bit SNMP counters for FreeBSD && graphing bandwidth usage

2006-02-14 Thread Harti Brandt
On Tue, 14 Feb 2006, Gleb Smirnoff wrote: GS>On Tue, Feb 14, 2006 at 11:37:23AM +0100, Anders Nordby wrote: GS>A> I should make a list of "what bsnmpd needs" to be more usable, in case GS>A> Harti is interested. ;-P GS> GS>Where is such list? I was thinking to setup such a list on my FreeBSD WiKi

Re: 64-bit SNMP counters for FreeBSD && graphing bandwidth usage

2006-02-14 Thread Harti Brandt
On Tue, 14 Feb 2006, Oleg Polyakov wrote: OP>--- Gleb Smirnoff <[EMAIL PROTECTED]> wrote: OP> OP>> On Tue, Feb 14, 2006 at 09:39:00AM +0100, Harti Brandt wrote: OP>> H> AN>I changed port to 163 cause I am actually using net-snmp snmpd on port OP>> H> AN>

Re: 64-bit SNMP counters for FreeBSD && graphing bandwidth usage

2006-02-14 Thread Harti Brandt
On Tue, 14 Feb 2006, Gleb Smirnoff wrote: GS>On Tue, Feb 14, 2006 at 09:39:00AM +0100, Harti Brandt wrote: GS>H> AN>I changed port to 163 cause I am actually using net-snmp snmpd on port GS>H> AN>161 still. Anyway, it seems bsnmpd insists these are 10 mbps interfaces? GS>

Re: 64-bit SNMP counters for FreeBSD && graphing bandwidth usage

2006-02-14 Thread Harti Brandt
On Tue, 14 Feb 2006, Anders Nordby wrote: AN>On Tue, Feb 14, 2006 at 09:07:42AM +0100, Harti Brandt wrote: AN>>>It seems ifHCInOctets and ifHCOutOctets are missing. How come? Do I need AN>>>to use SNMP v3? Another query tool? AN>> 10 bits/seconds seems utterly wrong fo

Re: 64-bit SNMP counters for FreeBSD && graphing bandwidth usage

2006-02-14 Thread Harti Brandt
On Mon, 13 Feb 2006, Anders Nordby wrote: AN>Hi, AN> AN>On Tue, Feb 07, 2006 at 05:11:31PM +0300, Gleb Smirnoff wrote: AN>>> Is there any way to have 64-bit SNMP counters in FreeBSD? Especially for AN>>> ifInOctets/ifOutOctets. It seems the built-in bsnmpd only has AN>>> Counter32, and net-snmpd t

Re: interface cleanup

2005-07-21 Thread Harti Brandt
On Thu, 21 Jul 2005, Anders Persson wrote: AP>I have not had time to go through netgraph enough yet, but does anyone have AP>some ideas how to avoid using kvm to obtain netgraph info? Add a control message to the ng_socket type that returns you the info you need. harti __

Re: debugging hatm

2005-05-25 Thread Harti Brandt
On Wed, 25 May 2005, Donatas wrote: D>hello, D>has anyone any ideas on how enable debug on hatm (HE155) interface? D> D>hw.atm.hatmN.debug D> D>sysctl -a |grep hw.atm doesn't show such viariable and I don't see any parameters in if_hatmvar.h exept debug flags. You must build the driver with the

Re: hatm(4) and freebsd4.11

2005-04-27 Thread Harti Brandt
On Wed, 27 Apr 2005, Donatas wrote: D>is there any posibility to use Fore Marconi HE155 under 4.11? No. That would probably require to backport some ATM infrastructure first. harti ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mail

Re: [OT] aal5 pdu CRC

2005-01-27 Thread Harti Brandt
On Thu, 27 Jan 2005, Jose M Rodriguez wrote: JMR>El Jueves, 27 de Enero de 2005 16:10, Harti Brandt escribi?: JMR>> On Thu, 27 Jan 2005, Jose M Rodriguez wrote: JMR>> JMR>> JMR>Hi, JMR>> JMR> JMR>> JMR>get some free time to work in uadsl, but have a prob

Re: [OT] aal5 pdu CRC

2005-01-27 Thread Harti Brandt
On Thu, 27 Jan 2005, Jose M Rodriguez wrote: JMR>Hi, JMR> JMR>get some free time to work in uadsl, but have a problem. Hope someone that JMR>can read ITU I.363 can answer this. JMR> JMR>Every usb adsl modem implementation I see doesn't obey aal5 pdu encoding JMR>standards, which requires that t

Re: netgraph cpcsinit + vcc parrameters

2004-09-08 Thread Harti Brandt
On Wed, 8 Sep 2004, donatas wrote: d>hello, d>I use netgraph for : d> d>hatm: <-> atmllc <->em d> d>also I use vcc chanels: d> d>ngctl msg hatm0: cpcsinit {name="sig1" aal=5 vci=55} d> d>I need to set some more vcc parameters ( ubr, pixel-rate, burst-size) d> d>it was possible

Re: netgraph only on i386/ia64 - why ?

2004-08-18 Thread Harti Brandt
On Wed, 18 Aug 2004, John Polstra wrote: JP>On 18-Aug-2004 Julian Elischer wrote: JP>> John Polstra wrote: JP>>> JP>>> There is one problem with netgraph on 64-bit platforms. The ng_msghdr JP>>> struct is 52 bytes / 4-byte aligned (see ng_message.h). That means JP>>> the message payload is not

Re: netgraph only on i386/ia64 - why ?

2004-08-18 Thread Harti Brandt
On Wed, 18 Aug 2004, Ruslan Ermilov wrote: RE>On Tue, Aug 17, 2004 at 11:49:47AM +0300, Ruslan Ermilov wrote: RE>> On Mon, Aug 16, 2004 at 07:13:27PM +, Bjoern A. Zeeb wrote: RE>> > On Mon, 16 Aug 2004, Bjoern A. Zeeb wrote: RE>> > RE>> > > On Mon, 16 Aug 2004, Ruslan Ermilov wrote: RE>> > >

Re: netgraph only on i386/ia64 - why ?

2004-08-17 Thread Harti Brandt
On Tue, 17 Aug 2004, John Polstra wrote: JP>On 17-Aug-2004 Harti Brandt wrote: JP>> On Mon, 16 Aug 2004, Bjoern A. Zeeb wrote: JP>> JP>> BAZ>Hi, JP>> BAZ> JP>> BAZ>It seems netgraph is only build on ia64 and i386. JP>> BAZ>Can someone please exp

Re: netgraph only on i386/ia64 - why ?

2004-08-17 Thread Harti Brandt
On Mon, 16 Aug 2004, Bjoern A. Zeeb wrote: BAZ>Hi, BAZ> BAZ>It seems netgraph is only build on ia64 and i386. BAZ>Can someone please explain why ? Until around april I used all the ATM related Ng stuff regularily (this include ng_socket, all the stuff under netgraph/atm). I think this should just

Re: Packing netgraph structs

2004-07-01 Thread Harti Brandt
On Thu, 1 Jul 2004, Anil Madhavapeddy wrote: AM>On 1 Jul 2004, at 13:48, Roman Kurakin wrote: AM>> AM>> If this is a problem why can't you make some wrapper that will pack/unpack AM>> written on C, AM>> which will be a lib for you? AM> AM>Because I want to minimise the size of the foreign binding

Re: 2 Harti

2004-07-01 Thread Harti Brandt
Hello, On Thu, 1 Jul 2004 [EMAIL PROTECTED] wrote: Your supplied exampel of connection between two bsd/hatm machines using NG nodes and Inet hooks works fine. But those 2 machines works as an IP Bridge. We need Ethernet bridge. So we've tried to connect hatm<->em adapters through netgraph and this

Re: problems in NATM0 and NG0 interfaces

2004-06-30 Thread Harti Brandt
On Wed, 30 Jun 2004 Donatas_G./[EMAIL PROTECTED] wrote: Hello, You CAN use hatm with harp. Just list your interfaces in the natm_interfaces variable in /etc/rc.conf. For example: natm_interfaces="hatm0 hatm1" hmmbut in NOTES file, there is a comment before describing hatm driver: "ATM realated

Re: problems in NATM0 and NG0 interfaces

2004-06-29 Thread Harti Brandt
On Tue, 29 Jun 2004 Donatas_G./[EMAIL PROTECTED] wrote: we have HE155 Series ForeRunner adapters used with intel rack systems. hatm0 driver is not supported by harp, so in order to use atm interfaces, we've decided to configure hetgraph interfaces (ng) on FreeBsd 5.2.1 You CAN use hatm with harp. J

Re: shutdown node VS disconnect all hooks

2004-05-28 Thread Harti Brandt
On Fri, 28 May 2004, Julian Elischer wrote: JE>> If you do that, I suppose you need to edit all the nodes, right?. In that JE>> case could you please convert the initialisation of the typestructs JE>> to use C99 sparse initialisation? In that case future changes will be a good JE>> deal easier. JE

Re: shutdown node VS disconnect all hooks

2004-05-28 Thread Harti Brandt
[Sorry, I just deleted the original mail, so I use Julian's to answer] On Thu, 27 May 2004, Julian Elischer wrote: JE>On Fri, 28 May 2004, Gleb Smirnoff wrote: JE> JE>> So, what about adding one more netgraph method into struct ng_type, say JE>> ng_preshutdown_t? This method is called first in

Re: How to reset admin's password on 3com superstack ?

2004-05-24 Thread Harti Brandt
On Mon, 24 May 2004, [iso-8859-1] Supote Leelasupphakorn wrote: SL>Hi...lists SL> SL> As the subject said, I have forgot admin's password SL>of my 3com switching it's model is "3300 SuperStack" SL>I'd like to know is there any way to reset admin's password ? SL> SL>CC to my email address is appr

Re: protecting netgraph calls from outside of the network context

2004-05-24 Thread Harti Brandt
On Thu, 20 May 2004, Dmitri Denissov wrote: DD>Currently netgraph code uses splnet/splx to protect timeout calls. DD>This doesn't work with 5.2 SMP kernel. What is the proper method DD>here for a custom netgraph node? Is the Giant lock only the way? Have a lock at the ng_timeout/ng_untimeout fun

Re: new arp code snapshot for review...

2004-05-18 Thread Harti Brandt
On Tue, 18 May 2004, Luigi Rizzo wrote: LR>On Tue, May 18, 2004 at 02:00:28PM +0100, Doug Rabson wrote: LR>> On Tue, 2004-05-18 at 09:48, Luigi Rizzo wrote: LR>> > I will try to remove as many assumptions as possible. LR>> > thanks for the feedback. LR>> LR>> I think that in your prototype, the o

Re: new arp code snapshot for review...

2004-05-18 Thread Harti Brandt
On Sun, 16 May 2004, Doug Rabson wrote: DR>On Sunday 25 April 2004 17:49, Luigi Rizzo wrote: DR>> Here is a snapshot of the new arp code that i have been working on DR>> lately, based a on Andre's ideas. (I say 'ARP' for brevity, what i DR>> mean is the layer3-to-layer2 address translation code --

Re: what is the story on if_index allocation ?

2004-04-21 Thread Harti Brandt
On Wed, 21 Apr 2004, Petri Helenius wrote: > Luigi Rizzo wrote: > > >Can someone explain what is the goal ? Reuse a number if an > >interface has the same name of a previously existing one and > >the index is free ? And does it make sense, anyways, or > >we could just simplify that code and just

Re: what is the story on if_index allocation ?

2004-04-20 Thread Harti Brandt
On Mon, 19 Apr 2004, Bill Fumerola wrote: > i disagree that this logic belongs outside the kernel in the snmp agent. > an inconsistant if_index makes it difficult and error prone for using > the index in multiple utilities whose data may be combined/joined/scaled > with information from the snmp

Re: what is the story on if_index allocation ?

2004-04-20 Thread Harti Brandt
On Mon, 19 Apr 2004, Brooks Davis wrote: > On Mon, Apr 19, 2004 at 11:09:12AM -0700, Luigi Rizzo wrote: > > > > I am a bit unclear -- how do we allocate if_index values for > > network interfaces ? > > I thought the strategy was allocate them sequentially, and > > only reuse numbers at the top o

Re: PCI ADSL card and PPPoA

2004-03-28 Thread Harti Brandt
On Sun, 28 Mar 2004, User Ernie wrote: UE>> On Sat, Mar 27, 2004 at 11:32:55PM +1000, User Ernie wrote: UE>> > Is it possible to use some like ng_ppp and mpd to hook to this card so I UE>> > can establish a PPPoA session? If so can anyone suggest an mpd config? UE>> UE>> Far simpler; if it suppor

Re: Nodes having common properties. Was: kern/63864: [patch] new control message for ng_iface(4) - getifindex

2004-03-19 Thread Harti Brandt
On Fri, 19 Mar 2004, Gleb Smirnoff wrote: GS>On Fri, Mar 19, 2004 at 12:13:37PM +0100, Harti Brandt wrote: GS>H> It would be nice if it would be possible to classify a node to belong to GS>H> more than one family. I think, that the functionality provided by the GS>H> family s

Re: Nodes having common properties. Was: kern/63864: [patch] new control message for ng_iface(4) - getifindex

2004-03-19 Thread Harti Brandt
On Wed, 17 Mar 2004, Gleb Smirnoff wrote: GS>So I have proposed a different approach, and ru liked it. What will GS>you say about it? GS> GS>Two new fields in struct ng_type are introduced: GS>- u_int32_t family, a generic node type. All current nodes have this field GS> as 0, they have no simila

Re: How to test my own netgraph node ?

2004-03-16 Thread Harti Brandt
On Tue, 16 Mar 2004, [iso-8859-1] manish gautam wrote: mg> mg>Hi sir... mg> mg>I have modified ng_tee.c to design my own netgraph mg>node. But i dont know how to test that it is working. mg> mg>1.Tell me the right procedure to test it. mg> mg>2.How can i pass incoming packet through it ? mg> mg>3.

Re: Byte counters reset at ~4GB

2004-03-16 Thread Harti Brandt
On Mon, 15 Mar 2004, Brooks Davis wrote: BD>On Mon, Mar 15, 2004 at 07:48:21PM -0500, Mike Jakubik wrote: BD>> Max Laier said: BD>> BD>> > Sure, you measure it ;) ... no, of course it is more expensive to update a BD>> > 64bit counter on a 32bit arch, but the key (once again) is descision: BD>> >

Re: Who wants SACK? (Re: was My planned work on networking stack)

2004-03-10 Thread Harti Brandt
On Tue, 9 Mar 2004, Mike Silbersack wrote: MS> MS>On Tue, 9 Mar 2004, Kevin Oberman wrote: MS> MS>> Selective ACKnowledgment (SACK) allows acknowledgment of received MS>> packets in a TCP window so that only the missing/damaged packet needs to MS>> be re-transmitted. This is normally of little val

Re: kern/63864: [patch] new control message for ng_iface(4) - getifindex

2004-03-09 Thread Harti Brandt
On Mon, 8 Mar 2004, Gleb Smirnoff wrote: GS>On Sun, Mar 07, 2004 at 03:02:28PM -0800, Ruslan Ermilov wrote: GS>R> Synopsis: [patch] new control message for ng_iface(4) - getifindex GS>R> GS>R> State-Changed-From-To: open->closed GS>R> State-Changed-By: ru GS>R> State-Changed-When: Sun Mar 7 15:01:

Re: Viewing multicast group membership?

2003-11-11 Thread Harti Brandt
On Mon, 10 Nov 2003, Bruce M Simpson wrote: BMS>On Mon, Nov 10, 2003 at 08:49:40PM +0100, Harti Brandt wrote: BMS>> I have a patch that creates a sysctl that returns the per-interface BMS>> multicast address lists that mimics the sysctl that returns the interface BMS>> addr

Re: Viewing multicast group membership?

2003-11-10 Thread Harti Brandt
existing code path? I have a patch that creates a sysctl that returns the per-interface multicast address lists that mimics the sysctl that returns the interface address lists. If you can wait until tomorrow I'll send you the patch. This is running for more than two years on all my

Re: 64 bit packet counters

2003-11-08 Thread Harti Brandt
peed) and detect wraps in the daemon. harti -- harti brandt, http://www.fokus.fraunhofer.de/research/cc/cats/employees/hartmut.brandt/private [EMAIL PROTECTED], [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/

Re: adding if_dev member to struct ifnet

2003-10-19 Thread Harti Brandt
BD>In all cases, usage is limited to a narrow set of code, but it's not BD>generally in the driver itself (in those cases, the softc is often BD>already used, say to hold the unit). BD> BD>-- Brooks BD> BD> -- harti brandt, http://www.fokus.fraunhofer.de/research/cc/ca

Re: ADSL PPoA or RFC1483, any solutions ?

2003-10-06 Thread Harti Brandt
On Sat, 4 Oct 2003, Bruce M Simpson wrote: BMS>On Thu, Oct 02, 2003 at 09:53:08AM +0200, Harti Brandt wrote: BMS>> Does PPPoA really need signalling? I tried to find any pointers to PPPoA BMS>> specification, but this seems to be not easy to find. BMS> BMS>I was probably hal

Re: ADSL PPoA or RFC1483, any solutions ?

2003-10-02 Thread Harti Brandt
On Thu, 2 Oct 2003, Petri Helenius wrote: PH>Harti Brandt wrote: PH> PH>>On Wed, 1 Oct 2003, Bruce M Simpson wrote: PH>> PH>>BMS>On Wed, Oct 01, 2003 at 02:17:59PM -0400, Barney Wolff wrote: PH>>BMS>> Are you talking about running the phone line directl

Re: ADSL PPoA or RFC1483, any solutions ?

2003-10-02 Thread Harti Brandt
just need to plug ng_pppoe on top of ng_atm with the VCC opened that carries the traffic and you're done. harti -- harti brandt, http://www.fokus.fraunhofer.de/research/cc/cats/employees/hartmut.brandt/private [EMAIL PROTECTED], [EMAIL PROTECTED] __

Re: ADSL PPoA or RFC1483, any solutions ?

2003-10-02 Thread Harti Brandt
nted if you use ngatm, BMS>because of the signalling involved. RFC 1483 framing is a simple bolt-on BMS>to the existing HARP drivers, but those don't support xDSL PHYs. Does PPPoA really need signalling? I tried to find any pointers to PPPoA specification, but this seems to be not easy

Re: adding if_dev member to struct ifnet

2003-10-02 Thread Harti Brandt
On Wed, 1 Oct 2003, Brooks Davis wrote: BD>On Wed, Oct 01, 2003 at 09:34:22AM +0200, Harti Brandt wrote: BD>> On Tue, 30 Sep 2003, Brooks Davis wrote: BD>> BD>> BD>All are within other code. One example is in dev/mii/brgphy.c which a BD>> BD>phy feature is not en

Re: [netgraph] NGF_RESP

2003-06-05 Thread Harti Brandt
to configure a node number or path into the node, where it should send messages to. This technique, however, may be subject to races when nodes are created/destroyed. harti -- harti brandt, http://www.fokus.fraunhofer.de/research/cc/cats/employees/hartmut.brandt

locking in network if attach again

2003-03-14 Thread Harti Brandt
w anything about the interface until if_attach(). Another solution would be to lock softc before if_attach, but this would probably provoke an LOR (as I remember). Regards, harti -- harti brandt, http://www.fokus.fraunhofer.de/research/cc/cats/employees/hartmut.brandt/private [EMAIL PROTECTE

Re: mallocing from if_start

2003-03-13 Thread Harti Brandt
stead of a mutex, although this seems to be catching some hidden bugs. Is there a fast method to get rid of exactly this one warning until you rework the code? It really makes debugging and testing a driver very hard. I'm working on mutexifying the driver so I need witness. harti --

mallocing from if_start

2003-03-12 Thread Harti Brandt
Mar 12 18:12:49 catssrv kernel: exclusive sleep mutex netisr lock r = 0 (0xc022d9c0) locked @ /usr/src/sys/net/netisr.c:209 I'm wrong with my assumption? harti -- harti brandt, http://www.fokus.fraunhofer.de/research/cc/cats/employees/hartmut.brandt/private [EMAIL PROTECTED], [EMAIL

Re: Proper -current if_attach locking?

2003-01-06 Thread Harti Brandt
at assume they have the lock. harti -- harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private [EMAIL PROTECTED], [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-net" in the body of the message

Re: can't get trpt to run

2002-11-14 Thread Harti Brandt
where you don't get a debug record. I have a patch for current, that let you at least trace normal TCP connections and use dbsd. If I get some spare time, I may make a bug report. harti -- harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private

Re: NFS functions does *NOT* check if they really have allocatedany memory

2002-11-06 Thread Harti Brandt
On Wed, 6 Nov 2002, Iasen Kostov wrote: IK> IK> IK>On Tue, 5 Nov 2002, Archie Cobbs wrote: IK> IK>> Iasen Kostov writes: IK>> > As I experience system crushes at time of mbufs exhaustion I've compiled IK>> > a debug kernel and traced the problem. I seems the NFS functions IK>> > (nfsm_rpchead, n

Re: How to add bpf support to if_atmsubr.c?

2002-10-15 Thread Harti Brandt
MS>which ASICs they use, I doubt Sun would engineer their own. Does Sun still make ATM cards? As far as I remember I saw the last SBUS cards a couple of years ago. harti -- harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private [EMAIL PRO

Re: How to add bpf support to if_atmsubr.c?

2002-10-14 Thread Harti Brandt
the same directory). CR> CR>Here is the line I used: CR>bpfattach(ifp, DLT_ATM_RFC1483, sizeof(u_int)); CR> CR>What should I really be using? CR> CR>I am attaching the patch I am using, which incorporates CR>patches from Harti Brandt, and bpf fixes from me. You my look at dev/e

Re: Comments Please

2002-10-13 Thread Harti Brandt
se the LR>relevant piece of code is: LR> LR> net/if_atmsubr.c: if (bcmp(alc, ATMLLC_HDR, 6)) { LR> LR>I have no idea if it has any relation with ethernet header sizes. No, this is the length of an LLC/SNAP header minus the type field. harti -- harti b

  1   2   >