search for: bootp_options

Displaying 1 result from an estimated 1 matches for "bootp_options".

Did you mean: boot_options
2012 May 22
0
[klibc:master] ipconfig: Write $DOMAINSEARCH as domain-search
...{ + if (dev->domainsearch != NULL) + free(dev->domainsearch); + dev->domainsearch = ret; + } + } /* * Got packet. @@ -165,11 +401,11 @@ int bootp_parse(struct netdev *dev, struct bootp_hdr *hdr, int bootp_recv_reply(struct netdev *dev) { struct bootp_hdr bootp; - uint8_t bootp_options[312]; + uint8_t bootp_options[BOOTP_EXTS_SIZE]; struct iovec iov[] = { /* [0] = ip + udp headers */ [1] = {&bootp, sizeof(struct bootp_hdr)}, - [2] = {bootp_options, 312} + [2] = {bootp_options, sizeof(bootp_options)} }; int ret; diff --git a/usr/kinit/ipconfig/dhcp_proto.c b/us...