search for: bplen

Displaying 10 results from an estimated 10 matches for "bplen".

Did you mean: blen
2006 Jun 22
2
[patch] ipconfig add dhcp file preseeding support
...uot;, dev->filename); fclose(f); } } diff --git a/usr/kinit/ipconfig/netdev.h b/usr/kinit/ipconfig/netdev.h index ac8c8be..5b16247 100644 --- a/usr/kinit/ipconfig/netdev.h +++ b/usr/kinit/ipconfig/netdev.h @@ -9,6 +9,7 @@ #include <sys/utsname.h> #include <net/if.h> #define BPLEN 40 +#define FNLEN 128 /* from RFC 2131, DHCP */ struct netdev { const char *name; /* Device name */ @@ -42,6 +43,7 @@ struct netdev { char dnsdomainname[SYS_NMLN]; /* dns domain name */ char nisdomainname[SYS_NMLN]; /* nis domain name */ char bootpath[BPLEN]; /* bo...
2009 May 28
1
rootpath length in ipconfig.
..., Ipconfig when recieves rootpath option from dhcp it truncates it to quite short string (39 characters). It is slightly to short if you start passing rootpath both nfs server ip address and some nfs options through dhcp. The length of this option is defined in usr/kinit/ipconfig/netdev.h #define BPLEN 40 Could you bump it up to something higher? 256 might be enough (rfc 2132 doesn't specify max length of this option) Thanks, -- Stan Sawa, Information in this email including any attachments may be privileged, confidential and is intended exclusively for the addressee. The views...
2017 Dec 19
0
[PATCH] Implement classless static routes
...r/kinit/ipconfig/netdev.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...
2018 Jun 12
0
[PATCH v2] Implement classless static routes
...r/kinit/ipconfig/netdev.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...
2005 May 24
2
klibc-1.0.12 released
Hopefully I should be up to date with all patches; haven't integrated the module-init-tools, and some of Erik's patches didn't make it for different reasons, which hopefully can be resolved soon. If you have sent another patch which I haven't applied, please do let me know. -hpa
2019 Jan 18
0
[klibc:master] ipconfig: Implement classless static routes
...usr/kinit/ipconfig/netdev.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...
2018 Jun 18
1
[PATCH v3 1/2] Implement classless static routes
...r/kinit/ipconfig/netdev.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...
2008 Sep 05
0
initial mntent.h, mount features, ipconfig fixes
...y: maximilian attems <max at stro.at> 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...
2008 Sep 07
1
[git pull v2] initial mntent.h, mount features, ipconfig fixes
...y: maximilian attems <max at stro.at> 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...
2012 May 22
0
[klibc:master] ipconfig: Write $DOMAINSEARCH as domain-search
...fclose(f); } } diff --git a/usr/kinit/ipconfig/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 */ };