--- sdhcp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdhcp.c b/sdhcp.c index 1fcf5e6..7e3f7f5 100644 --- a/sdhcp.c +++ b/sdhcp.c _AT_@ -267,6 +267,7 @@ hnoptput(unsigned char *p, int opt, uint32_t data, size_t len) static void dhcpsend(int type, int how) { + static unsigned char params[] = { OBmask, OBrouter, OBdnsserver }; unsigned char *ip, *p; memset(&bp, 0, sizeof(bp)); _AT_@ -290,6 +291,7 @@ dhcpsend(int type, int how) /* memcpy(bp.ciaddr, client, sizeof bp.ciaddr); */ p = optput(p, ODipaddr, client, sizeof(client)); p = optput(p, ODserverid, server, sizeof(server)); + p = optput(p, ODparams, params, sizeof(params)); break; case DHCPrelease: memcpy(bp.ciaddr, client, sizeof(client)); -- 2.20.1Received on Sat Aug 10 2019 - 22:03:32 CEST
This archive was generated by hypermail 2.3.0 : Sun Aug 11 2019 - 00:12:26 CEST