Displaying 6 results from an estimated 6 matches for "bringup_one_dev".
2005 Jan 06
0
skip unconnected interfaces
.../* Heuristic for if this is a reasonable boot interface.
- This is the same
- logic the in-kernel ipconfig uses... */
- if ( !(flags & IFF_LOOPBACK) &&
- (flags & (IFF_BROADCAST|IFF_POINTOPOINT)) )
- {
- if ( !(dev = add_device(de->d_name)) )
- continue;
- bringup_one_dev(template, dev);
- }
+ bringup_one_dev(template, dev);
}
closedir(d);
return 1;
--
Thayne Harbaugh
Linux Networx
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:
2009 Apr 07
2
[PATCH] ipconfig: send hostname in DHCP request
...t 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 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-&g...
2019 Jan 18
0
[klibc:master] ipconfig: Implement classless static routes
...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 struct netdev *add_device(char *info)
{
struct netdev *dev;
int i;
diff --git a/usr/kinit/ipconfig/netdev.c b/usr/kinit/ipconfig/netdev.c
index e203d0c..de87f96...
2018 Jun 18
1
[PATCH v3 1/2] Implement classless static routes
...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 struct netdev *add_device(char *info)
{
struct netdev *dev;
int i;
diff --git a/usr/kinit/ipconfig/netdev.c b/usr/kinit/ipconfig/netdev.c
index e203d0c6..de87f96...
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