Displaying 11 results from an estimated 11 matches for "parse_device".
Did you mean:
parisc_device
2010 Nov 10
0
[PATCH] ipconfig: parse_device nuke unused variable i
...--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/usr/kinit/ipconfig/main.c b/usr/kinit/ipconfig/main.c
index b392e6a..d912f6d 100644
--- a/usr/kinit/ipconfig/main.c
+++ b/usr/kinit/ipconfig/main.c
@@ -484,7 +484,7 @@ static int add_all_devices(struct netdev *template);
static int parse_device(struct netdev *dev, const char *ip)
{
char *cp;
- int i, opt;
+ int opt;
int is_ip = 0;
dprintf("IP-Config: parse_device: \"%s\"\n", ip);
@@ -506,7 +506,7 @@ static int parse_device(struct netdev *dev, const char *ip)
dev->name = ip;
}
} else {
- for (i = o...
2008 Feb 22
1
ipconfig bug with multiple interfaces
...the long spec is empty, the first interface should be used, but the
program busy wait for all interfaces.
diff --git a/usr/kinit/ipconfig/main.c b/usr/kinit/ipconfig/main.c
index 50141e5..72bfdaf 100644
--- a/usr/kinit/ipconfig/main.c
+++ b/usr/kinit/ipconfig/main.c
@@ -534,6 +534,7 @@ static int parse_device(struct netdev *dev, const char
*ip)
if (dev->name == NULL ||
dev->name[0] == '\0' || strcmp(dev->name, "all") == 0) {
add_all_devices(dev);
+ bringup_first = 1;
return 0;
}
return 1;
The i...
2019 Jun 13
0
[PATCH] ipconfig: Implement support -d ...:dns0:dns1 options
...untu.com>
---
usr/kinit/ipconfig/main.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/usr/kinit/ipconfig/main.c b/usr/kinit/ipconfig/main.c
index a454022e..2c905986 100644
--- a/usr/kinit/ipconfig/main.c
+++ b/usr/kinit/ipconfig/main.c
@@ -611,7 +611,7 @@ static int parse_device(struct netdev *dev, char *ip)
if ((cp = strchr(ip, ':'))) {
*cp++ = '\0';
}
- if (opt > 6) {
+ if (opt > 8) {
fprintf(stderr,
"%s: too many options for %s\n",
progname, dev->name);
@@ -647,6 +647,12 @@ static int parse_device(stru...
2019 Jul 28
0
[klibc:master] ipconfig: Implement support -d ...:dns0:dns1 options
....org.uk>
---
usr/kinit/ipconfig/main.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/usr/kinit/ipconfig/main.c b/usr/kinit/ipconfig/main.c
index a454022e..2c905986 100644
--- a/usr/kinit/ipconfig/main.c
+++ b/usr/kinit/ipconfig/main.c
@@ -611,7 +611,7 @@ static int parse_device(struct netdev *dev, char *ip)
if ((cp = strchr(ip, ':'))) {
*cp++ = '\0';
}
- if (opt > 6) {
+ if (opt > 8) {
fprintf(stderr,
"%s: too many options for %s\n",
progname, dev->name);
@@ -647,6 +647,12 @@ static int parse_device(stru...
2019 Dec 11
0
[klibc:master] ipconfig: Ignore NTP server address and any additional fields
...dresses and netmasks must be either absent (defaulting to zero)
or presented in dotted-quad notation.
diff --git a/usr/kinit/ipconfig/main.c b/usr/kinit/ipconfig/main.c
index 2c905986..5472d0f0 100644
--- a/usr/kinit/ipconfig/main.c
+++ b/usr/kinit/ipconfig/main.c
@@ -611,13 +611,6 @@ static int parse_device(struct netdev *dev, char *ip)
if ((cp = strchr(ip, ':'))) {
*cp++ = '\0';
}
- if (opt > 8) {
- fprintf(stderr,
- "%s: too many options for %s\n",
- progname, dev->name);
- longjmp(abort_buf, 1);
- }
-
if (*ip == '\0')
c...
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:
2019 Jan 18
0
[klibc:master] ipconfig: Implement classless static routes
...n(f, "IPV4GATEWAY",
+ my_inet_ntoa(dev->ip_gateway));
+ }
write_option(f, "IPV4DNS0",
my_inet_ntoa(dev->ip_nameserver[0]));
write_option(f, "IPV4DNS1",
@@ -546,7 +582,7 @@ bail:
static int add_all_devices(struct netdev *template);
-static int parse_device(struct netdev *dev, const char *ip)
+static int parse_device(struct netdev *dev, char *ip)
{
char *cp;
int opt;
@@ -659,7 +695,7 @@ static void bringup_one_dev(struct netdev *template, struct netdev *dev)
bringup_device(dev);
}
-static struct netdev *add_device(const char *info)
+static s...
2018 Jun 18
1
[PATCH v3 1/2] Implement classless static routes
...n(f, "IPV4GATEWAY",
+ my_inet_ntoa(dev->ip_gateway));
+ }
write_option(f, "IPV4DNS0",
my_inet_ntoa(dev->ip_nameserver[0]));
write_option(f, "IPV4DNS1",
@@ -539,7 +575,7 @@ bail:
static int add_all_devices(struct netdev *template);
-static int parse_device(struct netdev *dev, const char *ip)
+static int parse_device(struct netdev *dev, char *ip)
{
char *cp;
int opt;
@@ -652,7 +688,7 @@ static void bringup_one_dev(struct netdev *template, struct netdev *dev)
bringup_device(dev);
}
-static struct netdev *add_device(const char *info)
+static s...
2009 Apr 07
2
[PATCH] ipconfig: send hostname in DHCP request
...i].iov_base = dhcp_end;
+ vec[i].iov_len = sizeof(dhcp_end);
+
+ return packet_send(dev, vec, i);
}
/*
diff --git a/usr/kinit/ipconfig/main.c b/usr/kinit/ipconfig/main.c
index 2ded0f3..619edf7 100644
--- a/usr/kinit/ipconfig/main.c
+++ b/usr/kinit/ipconfig/main.c
@@ -522,6 +522,8 @@ static int parse_device(struct netdev *dev, const char *ip)
case 4:
strncpy(dev->hostname, 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...
2011 Jul 08
4
[PATCH 0/4] usr/kinit checkpatch
Various coding style fixes checkpatch warns about.
The goal is not to be 100% checkpatch compliant,
but to have more consistent coding style.
As this is a trivial patch serie, will land in 24 hours in klibc git,
unless of course ml review hits a bugger.
Checked with size(3) that the generated kinit, fstype, ipconfig and
nfsmount are the same.
maximilian attems (4):
[klibc] ipconfig: reduce
2008 Mar 25
2
bunch of small fixes
hello hpa,
nothing particular stands out,
just syncing with latest Debian upload and subsequent patch emails.
please review merge or nack.
thanks :)
maks
git pull git://git.debian.org/~maks/klibc.git maks
for the changes:
Aaron Griffin (1):
[klibc] kinit: skip md assembly if mdX exists
Colin Watson (1):
[klibc] mount/umount FUSE support
Harald Jenny (1):
[klibc] fstype: