Displaying 11 results from an estimated 11 matches for "fnlen".
Did you mean:
inlen
2006 Jun 22
2
[patch] ipconfig add dhcp file preseeding support
...nit/ipconfig/bootp_proto.c
+++ b/usr/kinit/ipconfig/bootp_proto.c
@@ -74,6 +74,7 @@ int bootp_parse(struct netdev *dev, stru
dev->hostname[0] = '\0';
dev->nisdomainname[0] = '\0';
dev->bootpath[0] = '\0';
+ memcpy(&dev->filename, &hdr->boot_file, FNLEN);
if (extlen >= 4 && exts[0] == 99 && exts[1] == 130 &&
exts[2] == 83 && exts[3] == 99) {
diff --git a/usr/kinit/ipconfig/dhcp_proto.c b/usr/kinit/ipconfig/dhcp_proto.c
index 9a30660..e86bbb2 100644
--- a/usr/kinit/ipconfig/dhcp_proto.c
+++ b/usr/kinit/i...
2017 Dec 19
0
[PATCH] Implement classless static routes
...dev.h
index cd853b6c..e909ef22 100644
--- a/usr/kinit/ipconfig/netdev.h
+++ b/usr/kinit/ipconfig/netdev.h
@@ -1,12 +1,20 @@
#ifndef IPCONFIG_NETDEV_H
#define IPCONFIG_NETDEV_H
+#include <arpa/inet.h>
#include <sys/utsname.h>
#include <net/if.h>
#define BPLEN 256
#define FNLEN 128 /* from DHCP RFC 2131 */
+struct route {
+ uint32_t subnet; /* subnet */
+ uint32_t netmask_width; /* subnet mask width */
+ uint32_t gateway; /* gateway */
+ struct route *next;
+};
+
struct netdev {
const char *name; /* Device name */
unsigned int i...
2018 Jun 12
0
[PATCH v2] Implement classless static routes
...dev.h
index cd853b6c..5b5117ac 100644
--- a/usr/kinit/ipconfig/netdev.h
+++ b/usr/kinit/ipconfig/netdev.h
@@ -1,12 +1,20 @@
#ifndef IPCONFIG_NETDEV_H
#define IPCONFIG_NETDEV_H
+#include <arpa/inet.h>
#include <sys/utsname.h>
#include <net/if.h>
#define BPLEN 256
#define FNLEN 128 /* from DHCP RFC 2131 */
+struct route {
+ uint32_t subnet; /* subnet */
+ uint32_t netmask_width; /* subnet mask width */
+ uint32_t gateway; /* gateway */
+ struct route *next;
+};
+
struct netdev {
const char *name; /* Device name */
unsigned int i...
2019 Jan 18
0
[klibc:master] ipconfig: Implement classless static routes
...etdev.h
index 4b75a65..dbc80cd 100644
--- a/usr/kinit/ipconfig/netdev.h
+++ b/usr/kinit/ipconfig/netdev.h
@@ -1,14 +1,22 @@
#ifndef IPCONFIG_NETDEV_H
#define IPCONFIG_NETDEV_H
+#include <arpa/inet.h>
#include <sys/utsname.h>
#include <net/if.h>
#define BPLEN 256
#define FNLEN 128 /* from DHCP RFC 2131 */
+struct route {
+ uint32_t subnet; /* subnet */
+ uint32_t netmask_width; /* subnet mask width */
+ uint32_t gateway; /* gateway */
+ struct route *next;
+};
+
struct netdev {
- const char *name; /* Device name */
+ char *name; /...
2018 Jun 18
1
[PATCH v3 1/2] Implement classless static routes
...dev.h
index cd853b6c..02caca3a 100644
--- a/usr/kinit/ipconfig/netdev.h
+++ b/usr/kinit/ipconfig/netdev.h
@@ -1,14 +1,22 @@
#ifndef IPCONFIG_NETDEV_H
#define IPCONFIG_NETDEV_H
+#include <arpa/inet.h>
#include <sys/utsname.h>
#include <net/if.h>
#define BPLEN 256
#define FNLEN 128 /* from DHCP RFC 2131 */
+struct route {
+ uint32_t subnet; /* subnet */
+ uint32_t netmask_width; /* subnet mask width */
+ uint32_t gateway; /* gateway */
+ struct route *next;
+};
+
struct netdev {
- const char *name; /* Device name */
+ char *name; /...
2017 Feb 04
0
[PATCH] ipconfig: handle multiple interfaces correctly
...;%c%02x", i == 0 ? ' ' : ':', dev->hwaddr[i]);
diff --git a/usr/kinit/ipconfig/netdev.h b/usr/kinit/ipconfig/netdev.h
index cd853b6c078b..4b75a65ad067 100644
--- a/usr/kinit/ipconfig/netdev.h
+++ b/usr/kinit/ipconfig/netdev.h
@@ -45,6 +45,7 @@ struct netdev {
char filename[FNLEN]; /* filename */
char *domainsearch; /* decoded, NULL or malloc-ed */
long uptime; /* when complete configuration */
+ int pkt_fd; /* packet socket for this interface */
struct netdev *next; /* next configured i/f */
};
diff --git a/usr/kinit/ipconfig/packet.c b/usr/kinit...
2019 Jan 18
0
[klibc:master] ipconfig: handle multiple interfaces correctly
...intf("%c%02x", i == 0 ? ' ' : ':', dev->hwaddr[i]);
diff --git a/usr/kinit/ipconfig/netdev.h b/usr/kinit/ipconfig/netdev.h
index cd853b6..4b75a65 100644
--- a/usr/kinit/ipconfig/netdev.h
+++ b/usr/kinit/ipconfig/netdev.h
@@ -45,6 +45,7 @@ struct netdev {
char filename[FNLEN]; /* filename */
char *domainsearch; /* decoded, NULL or malloc-ed */
long uptime; /* when complete configuration */
+ int pkt_fd; /* packet socket for this interface */
struct netdev *next; /* next configured i/f */
};
diff --git a/usr/kinit/ipconfig/packet.c b/usr/kinit...
2012 May 22
0
[klibc:master] ipconfig: Write $DOMAINSEARCH as domain-search
...ig/netdev.h b/usr/kinit/ipconfig/netdev.h
index f419880..cd853b6 100644
--- a/usr/kinit/ipconfig/netdev.h
+++ b/usr/kinit/ipconfig/netdev.h
@@ -43,6 +43,7 @@ struct netdev {
char nisdomainname[SYS_NMLN]; /* nis domain name */
char bootpath[BPLEN]; /* boot path */
char filename[FNLEN]; /* filename */
+ char *domainsearch; /* decoded, NULL or malloc-ed */
long uptime; /* when complete configuration */
struct netdev *next; /* next configured i/f */
};
2008 Sep 05
0
initial mntent.h, mount features, ipconfig fixes
...>
diff --git a/usr/kinit/ipconfig/netdev.h b/usr/kinit/ipconfig/netdev.h
index fb6640a..1091943 100644
--- a/usr/kinit/ipconfig/netdev.h
+++ b/usr/kinit/ipconfig/netdev.h
@@ -4,7 +4,7 @@
#include <sys/utsname.h>
#include <net/if.h>
-#define BPLEN 40
+#define BPLEN 256
#define FNLEN 128 /* from DHCP RFC 2131 */
struct netdev {
commit 5c5809f953c2182d9bad39932eaa6a1de4231e5f
Author: maximilian attems <max at stro.at>
Date: Fri Sep 5 22:18:09 2008 +0200
[klibc] mount: read /proc/mounts preferably
as klibc mount doesn't write into /etc/mtab (no a...
2008 Sep 07
1
[git pull v2] initial mntent.h, mount features, ipconfig fixes
...>
diff --git a/usr/kinit/ipconfig/netdev.h b/usr/kinit/ipconfig/netdev.h
index fb6640a..1091943 100644
--- a/usr/kinit/ipconfig/netdev.h
+++ b/usr/kinit/ipconfig/netdev.h
@@ -4,7 +4,7 @@
#include <sys/utsname.h>
#include <net/if.h>
-#define BPLEN 40
+#define BPLEN 256
#define FNLEN 128 /* from DHCP RFC 2131 */
struct netdev {
commit 6fa665bc70d5f87282a3518595e39cc6cac99050
Author: maximilian attems <max at stro.at>
Date: Fri Sep 5 22:18:09 2008 +0200
[klibc] mount: read /proc/mounts preferably
as klibc mount doesn't write into /etc/mtab (no a...
2017 Dec 31
4
[PATCH klibc 0/4] Fixes from Debian and Ubuntu
The following patches come from Debian and/or Ubuntu packages of
klibc.
Ben.
Ben Hutchings (1):
[klibc] run-init: Add dry-run mode
Jay Vosburgh (1):
[klibc] ipconfig: Use separate sockets for DHCP from multiple
interfaces
Mathieu Trudel-Lapierre (1):
[klibc] ipconfig: Set broadcast when sending DHCPREQUEST and
DHCPDISCOVER
YunQiang Su (1):
[klibc] mips: setjmp.S: don't