Re: em driver input errors

2009-09-04 Thread Artis Caune
).  Tuning > that can be applied without rebooting will be tried first. Is it still actual? You didn't mention if you are using pf or other firewall. I have similar problem with two boxes replicating zfs pools, when I noticed input errors. After some investigation turns ou

Re: Hi. Regarding "automatic vlan creation"

2009-10-28 Thread Artis Caune
gt; > ifconfig_em0.100="" or ifconfig_em0_100="" does not work. You probably forgot to put if_vlan_load="YES" in /boot/loader.conf ifconfig_em0_100="..." should work. -- Artis Caune Everything should be made as simple as possible, but not simpler.

Re: Hi. Regarding "automatic vlan creation"

2009-10-28 Thread Artis Caune
device.vlan_id */ + if (index(name, '.') != NULL) + strlcpy(ifname, "vlan", sizeof(ifname)); + /* turn interface and unit into module name */ strcpy(ifkind, "if_"); strlcpy(ifkind

Re: Hi. Regarding "automatic vlan creation"

2009-10-29 Thread Artis Caune
andomly loading the vlan code for any interface that had a dot in it. You are right, forgot about 'ifconfig rename'. > The real change we should make it to add device vlan to GENERIC.  It's > long past time for it to be in by default. It's even better, what's need t

[patch] truncated fields in netstat

2009-12-02 Thread Artis Caune
ch http://www.nic.lv/sofq/patch-netstat.txt which will: - add new flag '-H' to print fields in script friendly format (just like zfs -H) - add this flag to netstat man page - fix space at the end of collisions/drops fields - fix few style(9) entries -- Artis Caune Everything should

Re: [Regarding Packet Error]

2008-07-10 Thread Artis Caune
On Thu, Jul 10, 2008 at 5:27 PM, Archimedes Gaviola <[EMAIL PROTECTED]> wrote: > Hi, > > I'm running a FreeBSD-6.2 RELEASE system on an Intel Gigabit copper NIC > but when it receive packets, I encounter some errors with netstat. Below is > the netstat dump of my system. As what you can see, there

Re: kern/126714: [carp] CARP interface renaming makes system no longer respond on the virtual IP address

2008-08-25 Thread Artis Caune
The following reply was made to PR kern/126714; it has been noted by GNATS. From: "Artis Caune" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: kern/126714: [carp] CARP interface renaming makes system no longer respond on the virtual IP address Date:

Re: kern/136618: [pf][stf] panic on cloning interface without unit number, e.g. `stf'

2009-07-09 Thread Artis Caune
econd and third hunks of >   the patch in the said PR, by the way, last hunk misses '{' after 'if' >   and has 'groupname' instead of 'new_name'). sorry for bad patch, my bad s/copy/coffee/ thanks for working on this. -- Artis Caune Eve

Re: kern/136618: [pf][stf] panic on cloning interface without unit number, e.g. `stf'

2009-07-09 Thread Artis Caune
The following reply was made to PR kern/136618; it has been noted by GNATS. From: Artis Caune To: rea-f...@codelabs.ru Cc: lini...@freebsd.org, bug-follo...@freebsd.org, freebsd-net@freebsd.org, mla...@freebsd.org Subject: Re: kern/136618: [pf][stf] panic on cloning interface without

Re: kern/136618: [pf][stf] panic on cloning interface without unit number, e.g. `stf'

2009-07-17 Thread Artis Caune
2009/7/10 Eygene Ryabinkin > No problems. Care to test both patches? If yes, please, report back > any findings of any type. > Hi, patch works good on amd64, 8.0-BETA2, r195712 r...@freebsd ~# ifconfig carp0 name carp ifconfig: ioctl (set name): File exists -- Ar

Re: kern/136618: [pf][stf] panic on cloning interface without unit number, e.g. `stf'

2009-07-17 Thread Artis Caune
The following reply was made to PR kern/136618; it has been noted by GNATS. From: Artis Caune To: Eygene Ryabinkin Cc: freebsd-net@freebsd.org, bug-follo...@freebsd.org Subject: Re: kern/136618: [pf][stf] panic on cloning interface without unit number, e.g. `stf' Date: Fri, 17 Jul

Re: bin/137641: ifconfig(8): various problems with "vlan_device.vlan_id" syntax

2009-08-10 Thread Artis Caune
The following reply was made to PR bin/137641; it has been noted by GNATS. From: Artis Caune To: bug-follo...@freebsd.org, vladimir.shebalden...@gmail.com Cc: Subject: Re: bin/137641: ifconfig(8): various problems with "vlan_device.vlan_id" syntax Date: Mon, 10 Aug 2009 21:3

Re: bin/137641: ifconfig(8): various problems with "vlan_device.vlan_id" syntax

2009-08-10 Thread Artis Caune
2009/8/10 Artis Caune : > The following reply was made to PR bin/137641; it has been noted by GNATS. > >  Hi, > >  attached patch should fix automatic loading of if_vlan when creating >  interface as device.vlan_id and vlan module is not loaded. Here is a patch.

PFIL hooks

2007-06-05 Thread Artis Caune
I want to monitor pf tagged mbufs, but (without kld hacks) I can see only IN or OUT direction, because PFIL insert hooks in reverse order. Hack like this works, but is ugly: # kldload mymodule # mymodule -enable PFIL_OUT # kldload pf # pfctl -e # mymodule -enable PFIL_IN How about PFIL_HEAD, P

ifconfig.c && netmask

2004-09-08 Thread Artis Caune
How come that ifconfig prints netmask in hex? Isn't "inet 127.0.0.1 netmask 255.0.0.0" more readable than "inet 127.0.0.1 netmask 0xff00" why 'route get x.x.x.x' gives mask in decimal? ;)) Is it some posix standart or something historical or will it brake some scripts? I'm ok with he

[no subject]

2002-04-22 Thread Artis Caune
auth 2b9097ce subscribe freebsd-hackers [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-net" in the body of the message

dequeueing outgoing packets on gigabit speed (if_em)

2006-03-03 Thread Artis Caune
Hello freebsd-net! We are trying to build freebsd traffic rate limiter, which will work in bridge mode. It must forward frames as fast as possible. When packet is received and it is not over rate limit, it is forwarded to another interface. The easiest way is to replace interface if_input functi

if_bridge drops lot of outgoing packets

2006-03-08 Thread Artis Caune
# kldload if_bridge # ifconfig bridge0 create # ifconfig bridge0 addm em0 # ifconfig bridge0 -learn em0 # ifconfig bridge0 span em1 # ifconfig bridge0 up traffic on em0: 30 second output rate 680818000 bits/sec, 152697 packets/sec # netstat -w1 -bd -I em1 input(em1)

Re: Serious Bind issue

2007-02-09 Thread Artis Caune
Doug Barton wrote: Javier Henderson wrote: FWIW, I was running BIND 9.3.2 for a while and in awe at the amount of memory it would use, and how it would go CPU bound after it hit any operating system imposed memory quotas. Many people have reported this problem, but no one has been able to fol

synchronising information between kernel modules

2007-02-09 Thread Artis Caune
I would like to hear some ideas about how to synchronise information over network between two or more kernel modules. Topology: We have to FreeBSD boxes, which sit between two cisco switches and do traffic policy(shaping). Switches are connected with GigaChannel link (two physical links) and

Re: BSD Packet filter hook,

2004-03-25 Thread Artis Caune
on 4.x you can replace IPFilter hook: ... int my_hook (const struct ip *ip, int ip_hl, struct ifnet *ifp, int out, struct mbuf **m) { /* drop all ;) */ m_freem(*m); *m = NULL; return 1; } /* on load */ fr_checkp = my_hook; /* on unload */ rf_checkp = NULL; ... on 5.x (>501108) there

Re: 'struct ifnet' question!

2004-05-14 Thread Artis Caune
Thanks, event handlers looks very trivial to implement. My thoughts was: userland read rules and check if interface exist with: 'if_nametoindex(interface)' call. kernel stores rules without any knowledge about interface name or direction, because I use seperate decision tree for every interfac

'struct ifnet' question!

2004-04-29 Thread Artis Caune
I'm writing kld module for traffic shaping (5.x only). It use PFIL hooks. There will be seperate decision trees for every interface + IN/OUT pair. Let's say we have rules: shape in on fxp0 ... shape out on fxp0 ... shape in on vlan0 ... in this example we have 3 decision trees: - rules w

'struct ifnet' question!

2004-04-29 Thread Artis Caune
I'm writing kld module for traffic shaping (5.x only). It use PFIL hooks. There will be seperate decision trees for every interface + IN/OUT pair. Let's say we have rules: shape in on fxp0 ... shape out on fxp0 ... shape in on vlan0 ... in this example we have 3 decision trees: - rul