Re: Proposed patch to the kernel and to netstat...
[EMAIL PROTECTED] wrote: ... Please email me comments. I'd like to commit this to HEAD soon. It can't be put into 7 without removing the cluster and mbuf counting, but I might do that as well if there is interest. People writing servers are going to find the watermark stuff useful. I'm thinking being able to watch the the buffer stats (possibly also in a way which we can graph) for a single socket, given its inpcb or so address, would also be a neat trick... cheers BMS ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"
How to inject fullsize 802.1q-tagged frame through BPF?
Hello, I have an ethernet interface with several vlans on it (FreeBSD 6.2-RELEASE #0). My program opens BPF on the parent device, receives tagged frames and responds by writing tagged frame to the BPF fd. It all works good, until size of response frame w/o tag becomes larger than 1496 bytes (1500 with tag inserted) - mtu of parent device.i I'm a bit confused as mtu is 1500 on both vlanN and it's parent fxp0. I've tried to "ifconfig fxp0 mtu 1504" to make room for vlan tag, but the response is ifconfig: ioctl (set mtu): Invalid argument Trying "ifconfig fxp0 -vlanmtu" also makes no difference. Is there a way to inject full-mtu vlan-tagged frame through BPF on parent device? I'd like not to open several tenths of BPFs for each vlanN if it's possible. I've tried on bge also with same results, so that is not connected with fxp driver. Eugene Perevyazko ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to inject fullsize 802.1q-tagged frame through BPF?
Eugene Perevyazko wrote: Hello, I have an ethernet interface with several vlans on it (FreeBSD 6.2-RELEASE #0). My program opens BPF on the parent device, receives tagged frames and responds by writing tagged frame to the BPF fd. It all works good, until size of response frame w/o tag becomes larger than 1496 bytes (1500 with tag inserted) - mtu of parent device.i I'm a bit confused as mtu is 1500 on both vlanN and it's parent fxp0. I've tried to "ifconfig fxp0 mtu 1504" to make room for vlan tag, but the response is ifconfig: ioctl (set mtu): Invalid argument Trying "ifconfig fxp0 -vlanmtu" also makes no difference. Is there a way to inject full-mtu vlan-tagged frame through BPF on parent device? I'd like not to open several tenths of BPFs for each vlanN if it's possible. I've tried on bge also with same results, so that is not connected with fxp driver. bpf write code in the kernel calculates header size when packets are injected. This is likely based on the frames being stock 802.3 so would require mods to the bpf code to handle the additional space for the tag. Sam ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"
carp oddness... BACKUP is ARPing!
The CARP in BACKUP is arping... why? Rudy First, arp -d ns2, then ping ns2 to refresh arp to machine testing. # arp ns2; arp jamon; arp cabrillo ns2.monkeybrains.NET (208.69.40.4) at 00:30:48:88:e7:98 on em0 [ethernet] jamon.monkeybrains.NET (208.69.40.5) at 00:15:f2:4b:60:49 on em0 [ethernet] cabrillo.monkeybrains.NET (208.69.40.7) at 00:30:48:88:e7:98 on em0 [ethernet] CABRILLO# ifconfig bge0: flags=8943 mtu 1500 options=1b inet 208.69.40.7 netmask 0xff00 broadcast 208.69.40.255 ether 00:30:48:88:e7:98 media: Ethernet autoselect (100baseTX ) status: active carp1: flags=49 mtu 1500 inet 208.69.40.4 netmask 0x carp: BACKUP vhid 2 advbase 4 advskew 180 JAMON# ifconfig fxp0: flags=8943 mtu 1500 options=8 inet 208.69.40.5 netmask 0xff00 broadcast 208.69.40.255 ether 00:15:f2:4b:60:49 media: Ethernet autoselect (100baseTX ) status: active carp1: flags=41 mtu 1500 inet 208.69.40.4 netmask 0x carp: MASTER vhid 2 advbase 4 advskew 0 FreeBSD jamon.monkeybrains.net 5.5-STABLE FreeBSD cabrillo.monkeybrains.net 6.2-STABLE sysctl net.inet.carp net.inet.carp.allow: 1 net.inet.carp.preempt: 1 net.inet.carp.log: 1 net.inet.carp.arpbalance: 0 net.inet.carp.suppress_preempt: 0 ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"