Displaying 12 results from an estimated 12 matches for "ip_nameserver".
2004 May 28
1
ipconfig related question (do not get static IP setting)
Hi!! I found your ipconfig stuff in the udev rpm in SuSE 9.1. I'm about to
setup a initramfs (pretty cool - much better than initrd) to boot linux
diskless clients over the net. All the tools I would need, seem to be
there with ipconfig/nfsmount ...
I like to use the information I get from PXE/syslinux or Etherboot
writing something like:
2011 Jun 08
1
[PATCH] Don't try to guess the nameserver in ipconfig.
.....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)
--
1.7.1
2011 Apr 15
2
[PATCH] Escape DHCP options written to /tmp/net-$DEVCICE.conf
...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, "DNSDOMAIN=\"%s\"\n", dev->dnsdomainname);
- fprintf(f, "NISDOMAIN=%s\n", dev->nisdomainname);
-...
2017 Dec 19
0
[PATCH] Implement classless static routes
...gt;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_nameserver[1]));
+ if (dev->routes != NULL) {
+ struct route *cur;
+ char *delim = "";
+ printf(" routes :");
+ for (cur = dev->routes; cur != NULL; cur = cur->next) {
+ printf("%s %s/%u&quo...
2018 Jun 12
0
[PATCH v2] Implement classless static routes
...gt;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_nameserver[1]));
+ if (dev->routes != NULL) {
+ struct route *cur;
+ char *delim = "";
+ printf(" routes :");
+ for (cur = dev->routes; cur != NULL; cur = cur->next) {
+ printf("%s %s/%u&quo...
2009 Apr 07
2
[PATCH] ipconfig: send hostname in DHCP request
..., ip, SYS_NMLN - 1);
dev->hostname[SYS_NMLN - 1] = '\0';
+ memcpy(dev->reqhostname, dev->hostname,
+ SYS_NMLN);
break;
case 5:
dev->name = ip;
@@ -569,6 +571,8 @@ static void bringup_one_dev(struct netdev *template, struct netdev *dev)
dev->ip_nameserver[1] = template->ip_nameserver[1];
if (template->hostname[0] != '\0')
strcpy(dev->hostname, template->hostname);
+ if (template->reqhostname[0] != '\0')
+ strcpy(dev->reqhostname, template->reqhostname);
dev->caps &= template->caps;
bringup_d...
2019 Jan 18
0
[klibc:master] ipconfig: Implement classless static routes
...gt;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_nameserver[1]));
+ if (dev->routes != NULL) {
+ struct route *cur;
+ char *delim = "";
+ printf(" routes :");
+ for (cur = dev->routes; cur != NULL; cur = cur->next) {
+ printf("%s %s/%u&quo...
2018 Jun 18
1
[PATCH v3 1/2] Implement classless static routes
...gt;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_nameserver[1]));
+ if (dev->routes != NULL) {
+ struct route *cur;
+ char *delim = "";
+ printf(" routes :");
+ for (cur = dev->routes; cur != NULL; cur = cur->next) {
+ printf("%s %s/%u&quo...
2019 Jun 13
0
[PATCH] ipconfig: Implement support -d ...:dns0:dns1 options
...+ if (opt > 8) {
fprintf(stderr,
"%s: too many options for %s\n",
progname, dev->name);
@@ -647,6 +647,12 @@ static int parse_device(struct netdev *dev, char *ip)
case 6:
dev->caps = parse_proto(ip);
break;
+ case 7:
+ parse_addr(&dev->ip_nameserver[0], ip);
+ break;
+ case 8:
+ parse_addr(&dev->ip_nameserver[1], ip);
+ break;
}
}
}
--
2.20.1
2019 Jul 28
0
[klibc:master] ipconfig: Implement support -d ...:dns0:dns1 options
...+ if (opt > 8) {
fprintf(stderr,
"%s: too many options for %s\n",
progname, dev->name);
@@ -647,6 +647,12 @@ static int parse_device(struct netdev *dev, char *ip)
case 6:
dev->caps = parse_proto(ip);
break;
+ case 7:
+ parse_addr(&dev->ip_nameserver[0], ip);
+ break;
+ case 8:
+ parse_addr(&dev->ip_nameserver[1], ip);
+ break;
}
}
}
2019 Dec 11
0
[klibc:master] ipconfig: Ignore NTP server address and any additional fields
...t;,
- progname, dev->name);
- longjmp(abort_buf, 1);
- }
-
if (*ip == '\0')
continue;
dprintf("IP-Config: opt #%d: '%s'\n", opt, ip);
@@ -653,6 +646,9 @@ static int parse_device(struct netdev *dev, char *ip)
case 8:
parse_addr(&dev->ip_nameserver[1], ip);
break;
+ case 9:
+ /* NTP server - ignore */
+ break;
}
}
}
2010 Aug 25
0
[patch] ipconfig fixes + run-init nit
...diff --git a/usr/kinit/ipconfig/main.c b/usr/kinit/ipconfig/main.c
index f00041b..b014128 100644
--- a/usr/kinit/ipconfig/main.c
+++ b/usr/kinit/ipconfig/main.c
@@ -115,7 +115,7 @@ static void dump_device_config(struct netdev *dev)
fprintf(f, "IPV4DNS1=%s\n",
my_inet_ntoa(dev->ip_nameserver[1]));
fprintf(f, "HOSTNAME=%s\n", dev->hostname);
- fprintf(f, "DNSDOMAIN=%s\n", dev->dnsdomainname);
+ fprintf(f, "DNSDOMAIN=\"%s\"\n", dev->dnsdomainname);
fprintf(f, "NISDOMAIN=%s\n", dev->nisdomainname);
fprintf(f, "R...