search for: 476384a

Displaying 2 results from an estimated 2 matches for "476384a".

2012 May 22
0
[klibc:master] ipconfig: Use /run/ directory for script file
...002912.html Reported-by: Dan Rosenberg <dan.j.rosenberg at gmail.com> Signed-off-by: maximilian attems <max at stro.at> --- usr/kinit/ipconfig/main.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/usr/kinit/ipconfig/main.c b/usr/kinit/ipconfig/main.c index 476384a..7be2a1f 100644 --- a/usr/kinit/ipconfig/main.c +++ b/usr/kinit/ipconfig/main.c @@ -147,8 +147,9 @@ static void dump_device_config(struct netdev *dev) * sizeof(UINT64_MAX)==21 */ char buf21[21]; + const char path[] = "/run/"; - snprintf(fn, sizeof(fn), "/tmp/net-%s.conf&quo...
2012 May 22
0
[klibc:master] ipconfig: Write $DOMAINSEARCH as domain-search
...netdev *dev) { struct bootp_hdr bootp; - uint8_t dhcp_options[1500]; + uint8_t dhcp_options[BOOTP_EXTS_SIZE]; struct iovec iov[] = { /* [0] = ip + udp header */ [1] = {&bootp, sizeof(struct bootp_hdr)}, diff --git a/usr/kinit/ipconfig/main.c b/usr/kinit/ipconfig/main.c index 148ccb6..476384a 100644 --- a/usr/kinit/ipconfig/main.c +++ b/usr/kinit/ipconfig/main.c @@ -176,6 +176,8 @@ static void dump_device_config(struct netdev *dev) write_option(f, "UPTIME", buf21); sprintf(buf21, "%u", (unsigned int)dev->dhcpleasetime); write_option(f, "DHCPLEASETIME...