Home/Support/Support Forum/Ethernet sniffer
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Ethernet sniffer

0 votes
Hi all, I have derived a program from the Ethernet Bypass sample.

Everything work, I can catch packets by means of registering a custom filter thru NAEthRegisterCustomPacketFn().

Only problem I have is that I only catch broadcast messages or messages directed at the board and I need to be able to inspect anything that goes past the ethernet.

Any ideas on how to get all the packets to present themselfs to me.

Regards
asked Apr 15, 2010 in NET+OS by derwee New to the Community (4 points)
recategorized Nov 26, 2013 by tuxembb

Please log in or register to answer this question.

6 Answers

0 votes
Hi Derwee,
are you sure you are not connected to a switch that is filtering packets that are not broadcast or not addressed to you ip?
Giorgio
answered Apr 15, 2010 by gcocchi New to the Community (1 point)
0 votes
That was my initial reaction that a network device is filtering my packets, currently I am running with a crossover cable with no success yet
answered Apr 15, 2010 by derwee New to the Community (4 points)
0 votes
The ethernet MAC has to be put in promiscuous mode otherwise it will filter out all packets that have foreign destination MAC. I believe there is a bit in some Ethernet configuration register that you can set to accomplish that.
answered Apr 15, 2010 by LeonidM Veteran of the Digi Community (4,359 points)
0 votes
Thanks, I'll go hunting for it and let you know
answered Apr 15, 2010 by derwee New to the Community (4 points)
0 votes
DId you find the solution?
answered Jul 29, 2010 by barneskg New to the Community (1 point)
0 votes
@barneskg

Nope no luck, so at the end of the day we changed the design to be more specific in addressing...

Sorry
answered Oct 27, 2010 by derwee New to the Community (4 points)
...