search for: opt_len

Displaying 5 results from an estimated 5 matches for "opt_len".

2016 Jan 07
2
Domain name search path use during PXE booting
...t over_load; uint8_t uuid_type; @@ -133,6 +138,135 @@ static void pxelinux_reboottime(const vo DHCPMagic |= 8; /* Got reboot time */ } +/* + * See RFC1035 section 4.1.3 for the format of the domain name as it's a compact format. + */ +static void domain_search(const void *data, int opt_len) +{ + const uint8_t *udata = (uint8_t *)data; + const uint8_t *inp = udata; /* in the buffer, does not follow pointers */ + char *outp = DomainSearch; /* current location to output chars to */ + char *endp = DomainSearch; /* end of the last completed domain string */ + const uint8_...
2016 Jan 07
0
Domain name search path use during PXE booting
...33,6 +138,135 @@ static void pxelinux_reboottime(const vo > DHCPMagic |= 8; /* Got reboot time */ > } > > +/* > + * See RFC1035 section 4.1.3 for the format of the domain name as it's a > compact format. > + */ > +static void domain_search(const void *data, int opt_len) > +{ > + const uint8_t *udata = (uint8_t *)data; > + const uint8_t *inp = udata; /* in the buffer, does not follow pointers > */ > + char *outp = DomainSearch; /* current location to output chars to */ > + char *endp = DomainSearch; /* end of the last completed doma...
2016 Jan 08
1
Domain name search path use during PXE booting
...linux_reboottime(const vo >> DHCPMagic |= 8; /* Got reboot time */ >> } >> >> +/* >> + * See RFC1035 section 4.1.3 for the format of the domain name as it's a >> compact format. >> + */ >> +static void domain_search(const void *data, int opt_len) >> +{ >> + const uint8_t *udata = (uint8_t *)data; >> + const uint8_t *inp = udata; /* in the buffer, does not follow pointers >> */ >> + char *outp = DomainSearch; /* current location to output chars to */ >> + char *endp = DomainSearch; /* end of...
2007 Apr 10
1
[PATCH] Add support for DHCP-Options
...255) + return 0; + if (*p == search) + break; + l -= 2 + p[1]; + p += 2 + p[1]; + } + + l -= 2; + l = (p[1] <= l) ? p[1] : l; + p += 2; + + *str = p; + *len = l; + return 1; +} + +char *getvar_dhcp(const char *str, size_t len) +{ + const uint8_t *opt_str; + char *out = NULL; + int num, opt_len; + + if (len >= 7 && memcmp(str, "option-", 7) == 0) { + len -= 7; str += 7; + num = 0; + while (len-- > 0) + num = num*10 + *str++ - '0'; + if (find_dhcp_option(num, &opt_str, &opt_len)) { + out = malloc(opt_len + 1); + memcpy(out, opt_str, opt_le...
2002 Jan 30
1
Patch: update zlib/* to 1.1.3
...lib/deflate.h =================================================================== RCS file: /cvsroot/rsync/zlib/deflate.h,v retrieving revision 1.1 diff -u -r1.1 deflate.h --- zlib/deflate.h 7 May 1998 06:19:42 -0000 1.1 +++ zlib/deflate.h 30 Jan 2002 01:12:43 -0000 @@ -230,12 +230,12 @@ ulg opt_len; /* bit length of current block with optimal trees */ ulg static_len; /* bit length of current block with static trees */ - ulg compressed_len; /* total bit length of compressed file */ uInt matches; /* number of string matches in current block */ int last_eob_len...