WKern
Loading...
Searching...
No Matches
addr.c
Go to the documentation of this file.
1
#include <
types/nums.h
>
8
typedef
struct
{
9
u8
ip
[4];
10
u8
netmasK
[4];
11
u8
gateway
[4];
12
}
net_config_t
;
13
14
net_config_t
net_config
= {
15
.ip = {10, 0, 2, 15},
16
.netmasK = {255, 255, 255, 0},
17
.gateway = {10, 0, 2, 2},
18
};
19
20
static
u8
macaddr[6] = {0x52, 0x54, 0x00, 0x12, 0x34, 0x56};
21
net_config
net_config_t net_config
Definition
addr.c:14
nums.h
u8
unsigned char u8
8-Bit Unsigned Int
Definition
nums.h:32
net_config_t
Definition
addr.c:8
net_config_t::ip
u8 ip[4]
Definition
addr.c:9
net_config_t::gateway
u8 gateway[4]
Definition
addr.c:11
net_config_t::netmasK
u8 netmasK[4]
Definition
addr.c:10
src
net
addr.c
Generated on
for WKern by
1.14.0