repo.or.cz
/
quarnos.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
many fixes in icmp and rtl8139 driver code
[quarnos.git]
/
resources
/
net
/
arp_table.h
blob
59db2953be9644113ad77554b5fb739fa8406066
1
#ifndef _ARP_TABLE_H_
2
#define _ARP_TABLE_H_
3
4
#include
"mac_addr.h"
5
#include
"ipv4_addr.h"
6
#include
"arch/low/general.h"
7
#include
"libs/list.h"
8
#include
"libs/pointer.h"
9
10
namespace
net
{
11
class
arp_table
{
12
public
:
13
struct
arp_record
{
14
u16 prot
;
15
mac_addr haddr
;
16
ipv4_addr paddr
;
17
};
18
19
private
:
20
list
<
arp_record
>
table
;
21
22
public
:
23
void
add
(
const
arp_record
&);
24
p
<
arp_record
>
get
(
const
ipv4_addr
&);
25
};
26
}
27
28
#endif