Displaying 7 results from an estimated 7 matches for "ip_broadcast".
2011 Apr 15
2
[PATCH] Escape DHCP options written to /tmp/net-$DEVCICE.conf
..., sizeof(fn), "/tmp/net-%s.conf", dev->name);
f = fopen(fn, "w");
if (f) {
- fprintf(f, "DEVICE=%s\n", dev->name);
- fprintf(f, "IPV4ADDR=%s\n", my_inet_ntoa(dev->ip_addr));
- fprintf(f, "IPV4BROADCAST=%s\n",
- my_inet_ntoa(dev->ip_broadcast));
- fprintf(f, "IPV4NETMASK=%s\n", my_inet_ntoa(dev->ip_netmask));
- fprintf(f, "IPV4GATEWAY=%s\n", my_inet_ntoa(dev->ip_gateway));
- fprintf(f, "IPV4DNS0=%s\n",
- my_inet_ntoa(dev->ip_nameserver[0]));
- fprintf(f, "IPV4DNS1=%s\n",
- my_inet...
2011 Jun 08
1
[PATCH] Don't try to guess the nameserver in ipconfig.
...init/ipconfig/main.c
index 4833bb7..0fd35c1 100644
--- a/usr/kinit/ipconfig/main.c
+++ b/usr/kinit/ipconfig/main.c
@@ -176,11 +176,6 @@ static void postprocess_device(struct netdev *dev)
printf("IP-Config: %s guessed broadcast address %s\n",
dev->name, my_inet_ntoa(dev->ip_broadcast));
}
- if (dev->ip_nameserver[0] == INADDR_ANY) {
- dev->ip_nameserver[0] = dev->ip_server;
- printf("IP-Config: %s guessed nameserver address %s\n",
- dev->name, my_inet_ntoa(dev->ip_nameserver[0]));
- }
}
static void complete_device(struct netdev *dev)
--...
2017 Dec 19
0
[PATCH] Implement classless static routes
...dex 7be2a1fc..0e12db4d 100644
--- a/usr/kinit/ipconfig/main.c
+++ b/usr/kinit/ipconfig/main.c
@@ -79,9 +79,22 @@ static void print_device_config(struct netdev *dev)
printf(":\n address: %-16s ", my_inet_ntoa(dev->ip_addr));
printf("broadcast: %-16s ", my_inet_ntoa(dev->ip_broadcast));
printf("netmask: %-16s\n", my_inet_ntoa(dev->ip_netmask));
- printf(" gateway: %-16s ", my_inet_ntoa(dev->ip_gateway));
- printf("dns0 : %-16s ", my_inet_ntoa(dev->ip_nameserver[0]));
- printf("dns1 : %-16s\n", my_inet_ntoa(dev->ip_name...
2018 Jun 12
0
[PATCH v2] Implement classless static routes
...>proto == PROTO_DHCP)
printf(" (%s from %s)", protoinfos[dev->proto].name,
@@ -79,9 +81,27 @@ static void print_device_config(struct netdev *dev)
printf(":\n address: %-16s ", my_inet_ntoa(dev->ip_addr));
printf("broadcast: %-16s ", my_inet_ntoa(dev->ip_broadcast));
printf("netmask: %-16s\n", my_inet_ntoa(dev->ip_netmask));
- printf(" gateway: %-16s ", my_inet_ntoa(dev->ip_gateway));
- printf("dns0 : %-16s ", my_inet_ntoa(dev->ip_nameserver[0]));
- printf("dns1 : %-16s\n", my_inet_ntoa(dev->ip_name...
2003 Apr 28
1
[PATCH] Get ipconfig compiling
...dev.c
--- a/ipconfig/netdev.c Mon Apr 28 15:26:12 2003
+++ b/ipconfig/netdev.c Mon Apr 28 15:26:12 2003
@@ -205,7 +205,7 @@
if (netdev_gif_addr(&ifr, SIOCGIFADDR, &dev->ip_addr) == -1) {
perror("SIOCGIFADDR");
dev->ip_addr = 0;
- dev->ip_broadcase = 0;
+ dev->ip_broadcast = 0;
dev->ip_netmask = 0;
return 0;
}
2019 Jan 18
0
[klibc:master] ipconfig: Implement classless static routes
...>proto == PROTO_DHCP)
printf(" (%s from %s)", protoinfos[dev->proto].name,
@@ -80,9 +82,27 @@ static void print_device_config(struct netdev *dev)
printf(":\n address: %-16s ", my_inet_ntoa(dev->ip_addr));
printf("broadcast: %-16s ", my_inet_ntoa(dev->ip_broadcast));
printf("netmask: %-16s\n", my_inet_ntoa(dev->ip_netmask));
- printf(" gateway: %-16s ", my_inet_ntoa(dev->ip_gateway));
- printf("dns0 : %-16s ", my_inet_ntoa(dev->ip_nameserver[0]));
- printf("dns1 : %-16s\n", my_inet_ntoa(dev->ip_name...
2018 Jun 18
1
[PATCH v3 1/2] Implement classless static routes
...>proto == PROTO_DHCP)
printf(" (%s from %s)", protoinfos[dev->proto].name,
@@ -79,9 +81,27 @@ static void print_device_config(struct netdev *dev)
printf(":\n address: %-16s ", my_inet_ntoa(dev->ip_addr));
printf("broadcast: %-16s ", my_inet_ntoa(dev->ip_broadcast));
printf("netmask: %-16s\n", my_inet_ntoa(dev->ip_netmask));
- printf(" gateway: %-16s ", my_inet_ntoa(dev->ip_gateway));
- printf("dns0 : %-16s ", my_inet_ntoa(dev->ip_nameserver[0]));
- printf("dns1 : %-16s\n", my_inet_ntoa(dev->ip_name...