search for: ipv4gateway

Displaying 5 results from an estimated 5 matches for "ipv4gateway".

Did you mean: ip_gateway
2011 Apr 15
2
[PATCH] Escape DHCP options written to /tmp/net-$DEVCICE.conf
..."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_ntoa(dev->ip_nameserver[1])); - fprintf(f, "HOSTNAME=%s\n", dev->hostname); - fprintf(f, "...
2017 Dec 19
0
[PATCH] Implement classless static routes
...e[0] && sethostname(dev->hostname, strlen(dev->hostname))) @@ -160,8 +173,24 @@ static void dump_device_config(struct netdev *dev) my_inet_ntoa(dev->ip_broadcast)); write_option(f, "IPV4NETMASK", my_inet_ntoa(dev->ip_netmask)); - write_option(f, "IPV4GATEWAY", - my_inet_ntoa(dev->ip_gateway)); + if (dev->routes != NULL) { + /* Use 6 digits to encode the index */ + char key[23]; + char value[19]; + int i = 0; + struct route *cur; + for (cur = dev->routes; cur != NULL; cur = cur->next) { + snprintf(key, sizeof(key), &q...
2018 Jun 12
0
[PATCH v2] Implement classless static routes
...e[0] && sethostname(dev->hostname, strlen(dev->hostname))) @@ -160,8 +180,24 @@ static void dump_device_config(struct netdev *dev) my_inet_ntoa(dev->ip_broadcast)); write_option(f, "IPV4NETMASK", my_inet_ntoa(dev->ip_netmask)); - write_option(f, "IPV4GATEWAY", - my_inet_ntoa(dev->ip_gateway)); + if (dev->routes != NULL) { + /* Use 6 digits to encode the index */ + char key[23]; + char value[19]; + int i = 0; + struct route *cur; + for (cur = dev->routes; cur != NULL; cur = cur->next) { + snprintf(key, sizeof(key), &q...
2019 Jan 18
0
[klibc:master] ipconfig: Implement classless static routes
...e[0] && sethostname(dev->hostname, strlen(dev->hostname))) @@ -161,8 +181,24 @@ static void dump_device_config(struct netdev *dev) my_inet_ntoa(dev->ip_broadcast)); write_option(f, "IPV4NETMASK", my_inet_ntoa(dev->ip_netmask)); - write_option(f, "IPV4GATEWAY", - my_inet_ntoa(dev->ip_gateway)); + if (dev->routes != NULL) { + /* Use 6 digits to encode the index */ + char key[23]; + char value[19]; + int i = 0; + struct route *cur; + for (cur = dev->routes; cur != NULL; cur = cur->next) { + snprintf(key, sizeof(key), &q...
2018 Jun 18
1
[PATCH v3 1/2] Implement classless static routes
...e[0] && sethostname(dev->hostname, strlen(dev->hostname))) @@ -160,8 +180,24 @@ static void dump_device_config(struct netdev *dev) my_inet_ntoa(dev->ip_broadcast)); write_option(f, "IPV4NETMASK", my_inet_ntoa(dev->ip_netmask)); - write_option(f, "IPV4GATEWAY", - my_inet_ntoa(dev->ip_gateway)); + if (dev->routes != NULL) { + /* Use 6 digits to encode the index */ + char key[23]; + char value[19]; + int i = 0; + struct route *cur; + for (cur = dev->routes; cur != NULL; cur = cur->next) { + snprintf(key, sizeof(key), &q...