repo.or.cz
/
cbaos.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Semi-decennial update. 50% code inflation.
[cbaos.git]
/
include
/
net.h
blob
47cb7ddceed27f79d9b5c02b2979898e02491d36
1
#ifndef NET_H_
2
#define NET_H_
3
4
#include <types.h>
5
6
7
typedef
u8 ip_t
[
4
];
8
typedef
u8 mac_t
[
6
];
9
10
enum
network_state
{
NET_UNCONFIGURED
,
NET_IP
};
11
struct
netconfig
{
12
mac_t mac
;
13
ip_t ip
;
14
ip_t server_ip
;
15
enum
network_state state
;
16
};
17
18
extern
struct
netconfig netconfig
;
19
20
#endif