diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/dhcp.c | 3 | ||||
-rw-r--r-- | net/net.c | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/net/dhcp.c b/net/dhcp.c index 1261b2d73a..ff54924762 100644 --- a/net/dhcp.c +++ b/net/dhcp.c @@ -667,7 +667,7 @@ static void dhcp_global_add(const char *var) if (!var_global) return; - globalvar_add_simple(var_global); + globalvar_add_simple(var_global, NULL); free(var_global); } @@ -830,7 +830,6 @@ BAREBOX_CMD_START(dhcp) BAREBOX_CMD_COMPLETE(empty_complete) BAREBOX_CMD_END -BAREBOX_MAGICVAR_NAMED(global_hostname, global.hostname, "hostname to send or returned from DHCP request"); BAREBOX_MAGICVAR_NAMED(global_dhcp_bootfile, global.dhcp.bootfile, "bootfile returned from DHCP request"); BAREBOX_MAGICVAR_NAMED(global_dhcp_rootpath, global.dhcp.rootpath, "rootpath returned from DHCP request"); BAREBOX_MAGICVAR_NAMED(global_dhcp_vendor_id, global.dhcp.vendor_id, "vendor id to send to the DHCP server"); @@ -41,7 +41,7 @@ static unsigned int net_ip_id; int net_checksum_ok(unsigned char *ptr, int len) { - return net_checksum(ptr, len) + 1; + return net_checksum(ptr, len) == 0xffff; } uint16_t net_checksum(unsigned char *ptr, int len) |