# Ethernet sniffer

**URL:** <https://forums.digi.com/t/ethernet-sniffer/4919>\
**Category:** NET+OS\
**Tags:** ehternet\
**Created:** [April 15, 2010, 11:40am UTC](https://forums.digi.com/t/ethernet-sniffer/4919 "2010-04-15T11:40:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![derwee](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@derwee](https://forums.digi.com/u/derwee)\
**Post date:** [April 15, 2010, 11:40am UTC](https://forums.digi.com/t/ethernet-sniffer/4919/1 "2010-04-15T11:40:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![gcocchi](https://avatars.discourse-cdn.com/v4/letter/g/45deac/32.png) [@gcocchi](https://forums.digi.com/u/gcocchi)\
**Post date:** [April 15, 2010, 12:39pm UTC](https://forums.digi.com/t/ethernet-sniffer/4919/2 "2010-04-15T12:39:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![derwee](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@derwee](https://forums.digi.com/u/derwee)\
**Post date:** [April 15, 2010, 1:07pm UTC](https://forums.digi.com/t/ethernet-sniffer/4919/3 "2010-04-15T13:07:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![LeonidM](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@LeonidM](https://forums.digi.com/u/LeonidM)\
**Post date:** [April 15, 2010, 1:11pm UTC](https://forums.digi.com/t/ethernet-sniffer/4919/4 "2010-04-15T13:11:31Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![derwee](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@derwee](https://forums.digi.com/u/derwee)\
**Post date:** [April 15, 2010, 2:04pm UTC](https://forums.digi.com/t/ethernet-sniffer/4919/5 "2010-04-15T14:04:57Z")

</div>

Thanks, I’ll go hunting for it and let you know

---

<div class="post-metadata">

**Author:** ![barneskg](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@barneskg](https://forums.digi.com/u/barneskg)\
**Post date:** [July 29, 2010, 7:27pm UTC](https://forums.digi.com/t/ethernet-sniffer/4919/6 "2010-07-29T19:27:25Z")

</div>

DId you find the solution?

---

<div class="post-metadata">

**Author:** ![derwee](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@derwee](https://forums.digi.com/u/derwee)\
**Post date:** [October 27, 2010, 11:45am UTC](https://forums.digi.com/t/ethernet-sniffer/4919/7 "2010-10-27T11:45:32Z")

</div>

@barneskg

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

Sorry
