Re: Linux netmap memory allocation

2018-01-02 Thread Charlie Smurthwaite
interface names are hardcoded, but when it's more complete I'd be very happy for it to be contributed to the examples. Of course anyone is free to use my code for any purpose too. Thanks for all your assistance! I'm happy enough with this that I will move on to looking at my IP routing code.

Re: Linux netmap memory allocation

2018-01-01 Thread Charlie Smurthwaite
On 01/01/18 21:05, Vincenzo Maffione wrote: 2018-01-01 17:14 GMT+01:00 Charlie Smurthwaite <charlie@atech.media<mailto:charlie@atech.media>>: Hi, Thank you for your reply. I was able to resolve this. 1) I do indeed open one FD per NIC 2) I no longer specify nr_arg1, nr_arg2

Re: Linux netmap memory allocation

2018-01-01 Thread Charlie Smurthwaite
h select/poll/epoll   ioctl(fds[n], NIOCTXSYNC);   ioctl(fds[n], NIOCRXSYNC);   rxring = rxrings[n];   while (!nm_ring_empty(rxring)) {     // Forward any packets waiting in this NIC's RX ring to the appropriate TX ring   }     } Thanks again, Charlie On 01/01/18 15

Re: Linux netmap memory allocation

2017-12-28 Thread Charlie Smurthwaite
this to 1, or to 0 (which resolves to 1) works. 3) When fixing the above, the memory size is always 343019520, plenty for my requirement. Thanks, Charlie On 28/12/17 17:34, Charlie Smurthwaite wrote: Hi, I'm just starting to use netmap and it is my intention to do zero-copy forwarding of frames

Linux netmap memory allocation

2017-12-28 Thread Charlie Smurthwaite
if I don't set arg1,arg2,arg3 in my code (ie they will be zero), then I get varying output (it varies between each of the following): memsize: 4206843 nr_arg2: 0 memsize: 343019520 nr_arg2: 1 Any pointers would be appreciated. Thanks! Charlie Charlie Smurthwaite Technical Director tel. e

Re: kern/182297: [cm] ArcNet driver fails to detect the link address - and does not work at all

2013-09-24 Thread Charlie Root
test message ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org

Re: route metric

2005-06-03 Thread Charlie Schluting
that take advantage of hardware packet forwarding. A purely software-based device simply can't keep up with large flows, and definitely introduces latency--especially when filtering. My $0.02 :) -Charlie ___ freebsd-net@freebsd.org mailing list http

Re: Resolving MAC address

2005-03-23 Thread Charlie Schluting
Olivier Nicole wrote: ? (10.0.0.1) at 00:e0:29:ad:5a:aa on em0 [ethernet] will do the trick, but it is a bit too heavy for the purpose, I'd prefer a solution that only send an ARP request. If you just want to avoid the DNS lookup, you can use arp -an. Its much faster :) -Charlie

Re: High ping latency using two ethernet under FreeBSD 4.11 ...

2005-03-15 Thread Charlie Schluting
to this cisco doc: http://www.cisco.com/warp/public/473/4.html (yes, you can do it.. with a c2900 too) Netgraph support Cisco Fast Etherchannel, not the other way around :) -Charlie ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman

tcpdump/bpf and seeing .1q tags

2005-03-09 Thread Charlie Schluting
Hi, So with tcpdump -e it somehow magically sees vlan tags.. even if hardware stripping of the tags is enabled. How? More importantly, I'm trying to figure out if a bpf read will see them as well. Any insight on this? TIA -Charlie ___ freebsd-net

Re: tcpdump/bpf and seeing .1q tags

2005-03-09 Thread Charlie Schluting
Charles Swiger wrote: On Mar 9, 2005, at 2:22 PM, Charlie Schluting wrote: More importantly, I'm trying to figure out if a bpf read will see them as well. Any insight on this? Yes, or it will if you use promisc mode and an appropriate BPF filter: So promisc is enabled in my case. This seems

Re: tcpdump/bpf and seeing .1q tags

2005-03-09 Thread Charlie Schluting
Charlie Schluting wrote: Charles Swiger wrote: On Mar 9, 2005, at 2:22 PM, Charlie Schluting wrote: More importantly, I'm trying to figure out if a bpf read will see them as well. Any insight on this? Yes, or it will if you use promisc mode and an appropriate BPF filter: So promisc is enabled

Re: tcpdump/bpf and seeing .1q tags

2005-03-09 Thread Charlie Schluting
is working now :)) -Charlie ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to [EMAIL PROTECTED]

ALTQ statistics?

2005-02-20 Thread Charlie Schluting
Does anyone know of any statistics tools that do a good job summarizing ALTQ queuing? Perhaps with an rrd graph of some sort? I just started using shaping, and its great.. but some time-based view of the following data (or more) would be really interesting to see. -Charlie dmz# pfctl -s queue

Re: puzzled network scheme

2005-02-15 Thread Charlie Schluting
internal IPs, each associated with a different vlan. In your diagram, you can do it.. but it won't be pretty. i.e. just assign an alias (secondary IP) to the internal interface. Of course, both ranges are in the same broadcast domain.. -Charlie ___ freebsd

vlan + promisc + em(4)

2005-01-27 Thread Charlie Schluting
IFCAP_VLAN_HWTAGGING and recompiling/rebooting, it worked for about 4 hours, then stopped. tcpdump sees nothing when it happens.. bringing the interface down; then back up seems to fix it. We've got a cron on the job now :) -Charlie ___ freebsd-net

Re: vlans changed?

2005-01-26 Thread Charlie Schluting
On 1/20/2005 2:33 AM, Robert Watson wrote: On Wed, 19 Jan 2005, Charlie Schluting wrote: Now, in 5.3, the only thing I can get working is to configure the em0 int with the IP, and set the trunk to have the native vlan corresponding to that IP. Weird. Also, is there a way to stop em(4) from

vlans changed?

2005-01-19 Thread Charlie Schluting
with tcpdump. What kind of a performance hit does this involve? Thanks :) -Charlie ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: vlans changed?

2005-01-19 Thread Charlie Schluting
Jon Simola wrote: On Wed, 19 Jan 2005 13:01:52 -0800, Charlie Schluting [EMAIL PROTECTED] wrote: Now, in 5.3, the only thing I can get working is to configure the em0 int with the IP, and set the trunk to have the native vlan corresponding to that IP. Weird. Sounds like you're not getting

Re: vlans changed?

2005-01-19 Thread Charlie Schluting
an option. -Charlie ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to [EMAIL PROTECTED]

firewalling with tunnels, and/or ipv6

2004-12-20 Thread Charlie Schluting
Ok, I've got a v6 tunnel, and to make it work I had to allow ipv6 from endpoint in ipfw. From what I understand, I have to make a completely different set of rules for ipv6, and load them using the -6 flag. Correct so far? Ok, so I want to set up an ipip v4 tunnel to another box (that runs

vlan module loading...

2004-11-18 Thread Charlie Schluting
Size Name 12 0xc040 4678e4 kernel 21 0xc2e6 4000 if_vlan.ko Running: 5.2.1-RELEASE-p9 TIA :) -Charlie. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to [EMAIL

packet order, ipf or ipfw

2004-07-28 Thread Charlie Schluting
is passing the packets and bypassing ipfw? Or something.. So, what is the order, if I'm running ipf AND ipfw at the same time? Will it work at all in this manner? Thanks! -Charlie ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman

Re: spoofed MAC on a dhcp interface

2004-07-26 Thread Charlie Schluting
James Housley wrote: The key was created /etc/start_if.xl0: #!/bin/sh Yep! Someone else also responded with a similar suggestion. Thank you very much, everyone, problem solved. I didn't know you could make start_if.interface ...very cool. I also now know its in rc.conf(5) :)

spoofed MAC on a dhcp interface

2004-07-25 Thread Charlie Schluting
manually, then dhcp again. Thanks! -Charlie ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to [EMAIL PROTECTED]

ng_ether(4) panic with ef(4)

2004-06-07 Thread Charlie Root
helo. if if_ef.ko was loaded before ng_ether.ko or if i have device ef in kernel and ng_ether.ko loaded as module then IPXrouted panic my kernel for 15-30 seconds after boot. ~# kldstat Id Refs AddressSize Name 1 37 0xc040 34c150 kernel 21 0xc074d000 5e40 vesa.ko 3

kernel panic by mars_nwe (nwserv -k)

2004-06-07 Thread Charlie Root
helo. kernel panic for shutdown of mars_nwe... bash-2.05b# gdb -k kernel /var/crash/vmcore.0 GNU gdb 5.2.1 (FreeBSD) Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it

Re: One IP used on more than one interface (gif0 and lo0)

2004-03-10 Thread Charlie ROOT
I was asking because of this: To make firewalling and managing traffic f lowing thru the ip tunnel a little easier I used virtual interfaces; I added aliases to the loopback interface(lo0) on both gateways to use as inside endpoints for the tunnel. That way I have a chance to control the

Re: unicast octets statistics

2003-07-09 Thread Charlie
On Wednesday 09 July 2003 08:09, Gleb Smirnoff wrote: On Wed, Jul 09, 2003 at 01:18:06PM +0800, Eugene Grosbein wrote: E Does FreeBSD 4.8-STABLE keep per-interface summary for received E unicast octets? More precisely, I need to know number of unicast E octets received by my router via ep0

VLAN problems with replies to broadcast

2002-10-23 Thread Charlie Root
We have built a machine with 3 vlan parenting off an fxp. The vlan are bridged and vlan0 has an IP. The fxp has no IP and is excluded from the bridge group. ** root@fw ** ~ ** Sat Oct 19 18:38:08 # ifconfig fxp0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST mtu 1500 ether

MPD setup problem

2001-04-19 Thread Charlie Root
Help ... What am I missing? Given the attached mpd.conf mpd.links files I create the following netgraph. There is an obvious ommission here there is no input to the ppp node ID 003f. I am running a netgraph frame relay interface as ng0. The mpd files create a ng1 node OK, but ngctl