ed647c2e0811e113ee32af099b8f930acfa367ba
Stefan Schuermans header fix

Stefan Schuermans authored 12 years ago

1) /* flaneth - flash and ethernet
2)    Copyright (C) 2007-2012 Stefan Schuermans <stefan@schuermans.info>
3)    Copyleft: GNU public license V2 - http://www.gnu.org/copyleft/gpl.html
4)    a BlinkenArea project - http://www.blinkenarea.org/ */
Stefan Schuermans initial commit after making...

Stefan Schuermans authored 12 years ago

5) 
6) #include "arp.h"
7) #include "config.h"
8) #include "debug.h"
9) #include "ethernet.h"
10) #include "ip.h"
11) #include "macros.h"
12) #include "nethelp.h"
13) 
14) // timing parameters
15) #define ArpTicksMax 150 // maximum age of ARP table entries (in 200ms steps)
16) #define ArpNoMacTicksMax 50     // maximum age of ARP table entries without
17)                                 // MAC (in 200ms steps)
18) #define ArpRetryTicks 8 // time after which to retry ARP query (must be power 
19)                         // of 2, in 200ms steps)
20) 
21) // ARP table
22) #define ArpTabFlagInUse 0x01
23) #define ArpTabFlagMacOk 0x02
24) struct ArpTable {
25)   unsigned char Flags;  // flags - see constants
26)   unsigned char Ticks;  // age of entry in 200ms steps
27)   unsigned char Mac[6];
28)   unsigned char Ip[4];
Stefan Schuermans save memory, to avoid stack...

Stefan Schuermans authored 12 years ago

29) } ArpTab[4];