Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document ARP cache issue and workaround #376

Merged
merged 5 commits into from
Aug 20, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,16 @@ if(!ether.dnsLookup("google.com"))
ether.printIp("Server: ", ether.hisip); // Result of DNS lookup is placed in the hisip member of EtherCard.
```

## Gotchas

Currently the library does not have a local network ARP cache implemented. This means if sending UDP:
* The only ARP lookup it does is for the gateway address.
* You cannot send UDP frames except via a gateway.

If you are wondering why your local UDP packets are not being received, this is why! (See [#59](https:/njh/EtherCard/issues/59), [#181](https:/njh/EtherCard/issues/181), [#269](https:/njh/EtherCard/issues/269), [#309](https:/njh/EtherCard/issues/309), [#351](https:/njh/EtherCard/issues/351), [#368](https:/njh/EtherCard/issues/368)).

The general workaround is to use a gateway and send UDP packets only to non-local network addresses.


## Related Work

Expand Down