search for: add_all_devices

Displaying 8 results from an estimated 8 matches for "add_all_devices".

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:
2010 Nov 10
0
[PATCH] ipconfig: parse_device nuke unused variable i
...t stro.at> --- usr/kinit/ipconfig/main.c | 4 ++-- 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)...
2005 Jan 06
0
skip unconnected interfaces
...s->expire - now.tv_sec <= 0) @@ -500,8 +549,11 @@ done: if (dev->name == NULL || dev->name[0] == '\0' || - strcmp(dev->name, "all") == 0) { + strcmp(dev->name, "all") == 0 || + strcmp(dev->name, "connected") == 0) { add_all_devices(dev); + if (strcmp(dev->name, "connected") == 0) + only_connected = 1; return 0; } return 1; @@ -580,8 +632,6 @@ DIR *d; struct dirent *de; struct netdev *dev; - char t[PATH_MAX], p[255]; - int i, fd; unsigned long flags; d = opendir(sysfs_class_net); @@ -592,33 +...
2008 Feb 22
1
ipconfig bug with multiple interfaces
...af 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 ipconfig output with enabled debugging looks like this: IP-Config: eth0: setting full-duplex. parse_device: "::::::" Trying to bring up eth1 IP-Config: parse_device: "eth1" IP-C...
2019 Jan 18
0
[klibc:master] ipconfig: Implement classless static routes
...t;gateway)); + i++; + } + } else { + write_option(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...
2018 Jun 18
1
[PATCH v3 1/2] Implement classless static routes
...t;gateway)); + i++; + } + } else { + write_option(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...
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: