BlinkenArea - GitList
Repositories
Blog
Wiki
mips_sys
Code
Commits
Branches
Tags
Search
Tree:
ca04d99
Branches
Tags
master
mips_sys
fw
config.c
implement DHCP (not yet bug-free)
Stefan Schuermans
commited
ca04d99
at 2012-04-04 22:27:47
config.c
Blame
History
Raw
#include "config.h" #include "macros.h" #include "nethelp.h" /// MAC address /* extern */ struct config_mac config_mac = { .mac = { 0x02, 0x4D, 0x49, 0x50, 0x53, 0x01 } }; /** * @brief IP configuration * * fill with meaningful data for static configuration * or fill with zeros for DHCP */ /* extern */ struct config_ip config_ip = { #if 0 .ip = { 192, 168, 0, 89 }, .mask = { 255, 255, 255, 0 }, .gw = { 192, 168, 0, 1 } #else .ip = { 0, 0, 0, 0 }, .mask = { 0, 0, 0, 0 }, .gw = { 0, 0, 0, 0 } #endif };