search for: sys_nmln

Displaying 6 results from an estimated 6 matches for "sys_nmln".

2009 Apr 07
2
[PATCH] ipconfig: send hostname in DHCP request
..._end)} + /* [4] = optional vendor class */ + /* [5] = optional hostname */ + /* [6] = {dhcp_end, sizeof(dhcp_end)} */ }; /* @@ -164,6 +166,8 @@ static int dhcp_recv(struct netdev *dev) static int dhcp_send(struct netdev *dev, struct iovec *vec) { struct bootp_hdr bootp; + char dhcp_hostname[SYS_NMLN+2]; + int i = 4; memset(&bootp, 0, sizeof(struct bootp_hdr)); @@ -179,12 +183,35 @@ static int dhcp_send(struct netdev *dev, struct iovec *vec) vec[1].iov_base = &bootp; vec[1].iov_len = sizeof(struct bootp_hdr); - vec[4].iov_base = vendor_class_identifier; - vec[4].iov_len = v...
2006 Jun 22
2
[patch] ipconfig add dhcp file preseeding support
...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]; /* boot path */ + char filename[FNLEN]; /* filename */ struct netdev *next; /* next configured i/f */ };
2012 May 22
0
[klibc:master] ipconfig: Append padding if DHCP packet length < 300 octets
...HCP_IOV_LEN] = { /* [4] = optional vendor class */ /* [5] = optional hostname */ /* [6] = {dhcp_end, sizeof(dhcp_end)} */ + /* [7] = optional padding */ }; /* @@ -187,7 +189,10 @@ static int dhcp_send(struct netdev *dev, struct iovec *vec) { struct bootp_hdr bootp; char dhcp_hostname[SYS_NMLN+2]; + uint8_t padding[BOOTP_MIN_LEN - sizeof(struct bootp_hdr)]; + int padding_len; int i = 4; + int j; memset(&bootp, 0, sizeof(struct bootp_hdr)); @@ -232,6 +237,17 @@ static int dhcp_send(struct netdev *dev, struct iovec *vec) vec[i].iov_base = dhcp_end; vec[i].iov_len = sizeof(...
2011 Jul 18
2
ipconfig:About the length of 'options' field of DHCP packet
...DHCP_IOV_LEN] = { /* [4] = optional vendor class */ /* [5] = optional hostname */ /* [6] = {dhcp_end, sizeof(dhcp_end)} */ + /* [7] = optional padding */ }; /* @@ -167,6 +169,7 @@ static int dhcp_send(struct netdev *dev, struct iovec *vec) { struct bootp_hdr bootp; char dhcp_hostname[SYS_NMLN+2]; + uint8_t options_padding[64]; int i = 4; memset(&bootp, 0, sizeof(struct bootp_hdr)); @@ -212,6 +215,25 @@ static int dhcp_send(struct netdev *dev, struct iovec *vec) vec[i].iov_base = dhcp_end; vec[i].iov_len = sizeof(dhcp_end); + + if(dev->bootp.fail_count & 1){ + /*...
2012 May 22
0
[klibc:master] ipconfig: Write $DOMAINSEARCH as domain-search
...NULL ? + "" : dev->domainsearch); 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 */ };
2003 Jun 03
15
[Bug 585] sshd core dumping on IRIX 6.5.18 with VerifyReverseMapping enabled
http://bugzilla.mindrot.org/show_bug.cgi?id=585 Summary: sshd core dumping on IRIX 6.5.18 with VerifyReverseMapping enabled Product: Portable OpenSSH Version: -current Platform: MIPS OS/Version: IRIX Status: NEW Severity: major Priority: P2 Component: sshd AssignedTo: