<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/sbin/dhclient/parse.c, branch jd/queueboosts</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/sbin/dhclient/parse.c?h=jd%2Fqueueboosts</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/sbin/dhclient/parse.c?h=jd%2Fqueueboosts'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2019-07-22T17:20:06Z</updated>
<entry>
<title>Cleanup/simplify parse_number():</title>
<updated>2019-07-22T17:20:06Z</updated>
<author>
<name>krw</name>
<email>krw@openbsd.org</email>
</author>
<published>2019-07-22T17:20:06Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=5ff9fc9cacf4b408491f394f7232a23780eeb0a0'/>
<id>urn:sha1:5ff9fc9cacf4b408491f394f7232a23780eeb0a0</id>
<content type='text'>
1) Restructure to explicitly set a long long result and take the
desired low/high constraints for strtonum().

2) No need to use a temporary variable when setting long long
(a.k.a. time_t) fields.

3) Fewer magic numbers when processing integer valued option
data. Less memcpy()'ing where a cast or two is sufficient to make
integer assignment work.

No intentional functional change.
</content>
</entry>
<entry>
<title>Restructure parse_semi() so it resembles the other parse_*</title>
<updated>2019-07-21T15:59:51Z</updated>
<author>
<name>krw</name>
<email>krw@openbsd.org</email>
</author>
<published>2019-07-21T15:59:51Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=7524c6dcc1ee7a0a62219f00eceefec1ce2323dd'/>
<id>urn:sha1:7524c6dcc1ee7a0a62219f00eceefec1ce2323dd</id>
<content type='text'>
functions.
</content>
</entry>
<entry>
<title>Replace malloc()/memcpy() with strdup() in parse_string(). Nuke 'len' parameter</title>
<updated>2019-07-21T15:47:02Z</updated>
<author>
<name>krw</name>
<email>krw@openbsd.org</email>
</author>
<published>2019-07-21T15:47:02Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=6bc2662c64afdf254f316049b5df0d051be49a38'/>
<id>urn:sha1:6bc2662c64afdf254f316049b5df0d051be49a38</id>
<content type='text'>
to parse_string() in favour of taking strlen() of resulting string in the few
cases that it is of interest.
</content>
</entry>
<entry>
<title>Parsing error messages display only the first 80 characters of the</title>
<updated>2019-03-19T23:57:30Z</updated>
<author>
<name>krw</name>
<email>krw@openbsd.org</email>
</author>
<published>2019-03-19T23:57:30Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=8617a7aeabd1c1d1b3a6d9430785c90e7573ccb0'/>
<id>urn:sha1:8617a7aeabd1c1d1b3a6d9430785c90e7573ccb0</id>
<content type='text'>
offending line. It is fruitless to try to position the "^" at a
character more than 80 characters from the start of the line.
</content>
</entry>
<entry>
<title>parse_lease_time() is an unnecessary abstraction. Just use</title>
<updated>2018-01-04T03:02:05Z</updated>
<author>
<name>krw</name>
<email>krw@openbsd.org</email>
</author>
<published>2018-01-04T03:02:05Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=5c0181a44f0936ab5650d35873b628c016e4264c'/>
<id>urn:sha1:5c0181a44f0936ab5650d35873b628c016e4264c</id>
<content type='text'>
parse_number('L') since it is parsing unsigned 32bit integers.
</content>
</entry>
<entry>
<title>We only parse decimal numbers, so parse_decimal() -&gt; parse_number() to</title>
<updated>2018-01-04T02:27:55Z</updated>
<author>
<name>krw</name>
<email>krw@openbsd.org</email>
</author>
<published>2018-01-04T02:27:55Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=5accdb359001a8d12b54856405a982b65193fa2b'/>
<id>urn:sha1:5accdb359001a8d12b54856405a982b65193fa2b</id>
<content type='text'>
match grammar comments and improve euphony.
</content>
</entry>
<entry>
<title>Use lease 'epoch' (time lease was acquired) to calculate timers for</title>
<updated>2017-11-09T12:34:25Z</updated>
<author>
<name>krw</name>
<email>krw@openbsd.org</email>
</author>
<published>2017-11-09T12:34:25Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=5def7f514bb13d8232c6f65a1b6ac43c11a24454'/>
<id>urn:sha1:5def7f514bb13d8232c6f65a1b6ac43c11a24454</id>
<content type='text'>
renew/rebind/expiry. Treat renew/rebind/expiry statements in leases as
comments for human consumption.
</content>
</entry>
<entry>
<title>Add format 't' to parse_decimal() for signed 64-bit</title>
<updated>2017-11-06T12:51:53Z</updated>
<author>
<name>krw</name>
<email>krw@openbsd.org</email>
</author>
<published>2017-11-06T12:51:53Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=5a385aabbf06d5c19500c4ed0b6db659a0cc877c'/>
<id>urn:sha1:5a385aabbf06d5c19500c4ed0b6db659a0cc877c</id>
<content type='text'>
integers.
</content>
</entry>
<entry>
<title>Use same parse_warn() verbiage in parse_lease_time() as that</title>
<updated>2017-10-23T13:15:57Z</updated>
<author>
<name>krw</name>
<email>krw@openbsd.org</email>
</author>
<published>2017-10-23T13:15:57Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=95e00417f5cc78df02377abfb3ff203c4041f07c'/>
<id>urn:sha1:95e00417f5cc78df02377abfb3ff203c4041f07c</id>
<content type='text'>
emitted when other unsigned 32-bit values are parsed. i.e.
"expecting integer between 0 and 4294967295". No need to
make people google what "unsigned 32-bit decimal value" means.
</content>
</entry>
<entry>
<title>Nuke special case for '\n' in skip_to_semi() and</title>
<updated>2017-10-19T13:44:31Z</updated>
<author>
<name>krw</name>
<email>krw@openbsd.org</email>
</author>
<published>2017-10-19T13:44:31Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=3db75ac417a271b6ee68ad4782f411351ac3a2a9'/>
<id>urn:sha1:3db75ac417a271b6ee68ad4782f411351ac3a2a9</id>
<content type='text'>
associated weird comment about parsing resolv.conf.

dhclient.conf and dhclient.leases.&lt;if&gt; are semi-colon
oriented and not line oriented. '\n' is never returned
by get_token().
</content>
</entry>
</feed>
