capturing packet from wlan0 with netgraph?

2010-12-30 Thread Monthadar Al Jaberi
Hi, I have an idea in my head and would like to know if it is possible. I want to simulate and test the net80211 mesh code in FreeBSD Current. I have an RSPRO board with 3 atheros cards. My basic idea is to run three jails each having its own network stack, and redirect all data packets coming

Re: capturing packet from wlan0 with netgraph?

2011-01-12 Thread Adrian Chadd
Find out what the address is that's causing the problem. There's plenty of places where unaligned mbuf's exist in the IP code and aren't correctly realigned before being touched. MIPS people - is "address error" an alignment problem? Adrian On 30 December 2010 21:47, Monthadar Al Jaberi wrote:

Re: capturing packet from wlan0 with netgraph?

2011-01-12 Thread Jayachandran C.
On Thu, Jan 13, 2011 at 11:08 AM, Adrian Chadd wrote: > Find out what the address is that's causing the problem. There's > plenty of places where unaligned mbuf's exist in the IP code and > aren't correctly realigned before being touched. > > MIPS people - is "address error" an alignment problem?

Re: capturing packet from wlan0 with netgraph?

2011-01-12 Thread Adrian Chadd
I've encountered this before. The mbuf's there aren't always aligned at this point. Adrian On 13 January 2011 14:17, Jayachandran C. wrote: > On Thu, Jan 13, 2011 at 11:08 AM, Adrian Chadd wrote: >> Find out what the address is that's causing the problem. There's >> plenty of places where un

Re: capturing packet from wlan0 with netgraph?

2011-01-13 Thread Monthadar Al Jaberi
sorry but I have not worked with this for a while now, After some thoughts I dont think using netgraph will do me any good, because traffic can still flow through the antennas of the cards. If you think it would still be useful to see more ddb prompt for other scenarios I am happy to try and suppl

Re: capturing packet from wlan0 with netgraph?

2011-01-16 Thread Adrian Chadd
Hi, Please file a PR about this and the output of "show registers". I bet that the ip pointer isn't aligned at that point in the code. Whatever is passing the packet to the IP layer should be re-aligning things beforehand. (eg, look at what the ethernet ipfw hook code does - if the ether type is

Re: capturing packet from wlan0 with netgraph?

2011-01-17 Thread Monthadar Al Jaberi
filed a PR http://www.freebsd.org/cgi/query-pr.cgi?pr=154091 On Mon, Jan 17, 2011 at 6:43 AM, Adrian Chadd wrote: > Hi, > > Please file a PR about this and the output of "show registers". > > I bet that the ip pointer isn't aligned at that point in the code. > Whatever is passing the packet to th

Re: capturing packet from wlan0 with netgraph?

2011-01-17 Thread Adrian Chadd
On 18 January 2011 02:03, Monthadar Al Jaberi wrote: > filed a PR http://www.freebsd.org/cgi/query-pr.cgi?pr=154091 Thanks. Network-stack and MIPS guys - what's the best way to handle this kind of stuff? This isn't the first time I've come across weird alignment stuff in the network stack that j

Re: capturing packet from wlan0 with netgraph?

2011-01-17 Thread Pyun YongHyeon
On Tue, Jan 18, 2011 at 09:55:01AM +0800, Adrian Chadd wrote: > On 18 January 2011 02:03, Monthadar Al Jaberi wrote: > > filed a PR http://www.freebsd.org/cgi/query-pr.cgi?pr=154091 > > Thanks. > > Network-stack and MIPS guys - what's the best way to handle this kind > of stuff? This isn't the f