Displaying 5 results from an estimated 5 matches for "bringup_device".
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
...ameserver[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_device(dev);
diff --git a/usr/kinit/ipconfig/netdev.h b/usr/kinit/ipconfig/netdev.h
index fb6640a..a25a544 100644
--- a/usr/kinit/ipconfig/netdev.h
+++ b/usr/kinit/ipconfig/netdev.h
@@ -35,6 +35,7 @@ struct netdev {
uint32_t ip_gateway; /* my gateway */
uint32_t ip_nameserver[2]; /* two name...
2019 Jan 18
0
[klibc:master] ipconfig: Implement classless static routes
...ail:
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 100644
--- a/usr/kinit/ipconfig/netdev.c
+++ b/usr/kinit/ipcon...
2018 Jun 18
1
[PATCH v3 1/2] Implement classless static routes
...ail:
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..de87f960 100644
--- a/usr/kinit/ipconfig/netdev.c
+++ b/usr/kinit/ipc...
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