<feed xmlns='http://www.w3.org/2005/Atom'>
<title>talos-petitboot/lib/url, branch master</title>
<subtitle>Blackbird™ petitboot sources</subtitle>
<id>https://git.raptorcs.com/git/talos-petitboot/atom?h=master</id>
<link rel='self' href='https://git.raptorcs.com/git/talos-petitboot/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-petitboot/'/>
<updated>2019-02-01T00:07:50+00:00</updated>
<entry>
<title>lib/url: Include port in pb_url_to_string()</title>
<updated>2019-02-01T00:07:50+00:00</updated>
<author>
<name>Samuel Mendoza-Jonas</name>
<email>sam@mendozajonas.com</email>
</author>
<published>2019-01-17T02:32:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-petitboot/commit/?id=28d0d7035ee3099935ef264db40a86142c098ec5'/>
<id>urn:sha1:28d0d7035ee3099935ef264db40a86142c098ec5</id>
<content type='text'>
And include a pxe-parser test which uses a port in the path prefix to
exercise this. This could cause PXE discovery failures if parameters
such as pathprefix included a port in the URL.

Signed-off-by: Samuel Mendoza-Jonas &lt;sam@mendozajonas.com&gt;
</content>
</entry>
<entry>
<title>lib/log: Switch to pb_log_fn</title>
<updated>2018-08-07T01:30:36+00:00</updated>
<author>
<name>Geoff Levand</name>
<email>geoff@infradead.org</email>
</author>
<published>2018-08-02T17:29:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-petitboot/commit/?id=c78f9ec47ba92b74698dacdae963dbbefd9b676f'/>
<id>urn:sha1:c78f9ec47ba92b74698dacdae963dbbefd9b676f</id>
<content type='text'>
The only functional change should be an additional '/n' to
a few log messagees that seemed to be missing it.

Signed-off-by: Geoff Levand &lt;geoff@infradead.org&gt;
Signed-off-by: Samuel Mendoza-Jonas &lt;sam@mendozajonas.com&gt;
</content>
</entry>
<entry>
<title>lib: Add support and helpers for IPv6 host addresses</title>
<updated>2018-07-10T04:00:08+00:00</updated>
<author>
<name>Samuel Mendoza-Jonas</name>
<email>sam@mendozajonas.com</email>
</author>
<published>2018-05-09T01:13:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-petitboot/commit/?id=becf2b28d8b0aa561ac7e42db519071f8065d37f'/>
<id>urn:sha1:becf2b28d8b0aa561ac7e42db519071f8065d37f</id>
<content type='text'>
Recognise IPv6 addresses and URLs, and allow an interface_info struct to
have both an IPv4 and IPv6 address.
The addr_scheme() helper returns the address family of a given address.

Signed-off-by: Samuel Mendoza-Jonas &lt;sam@mendozajonas.com&gt;
</content>
</entry>
<entry>
<title>discover/pxe-parser: Retrieve configs asynchronously</title>
<updated>2016-06-28T06:17:21+00:00</updated>
<author>
<name>Samuel Mendoza-Jonas</name>
<email>sam@mendozajonas.com</email>
</author>
<published>2016-05-16T06:06:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-petitboot/commit/?id=2163af58b5e631a2a8d2acd79b541ed884ab7b57'/>
<id>urn:sha1:2163af58b5e631a2a8d2acd79b541ed884ab7b57</id>
<content type='text'>
Depending on the configuration of the DHCP server and the network, tftp
requests made by the pxe parser can timeout. The pxe parser makes these
requests synchronously so several timeouts can block the server
completely for several minutes, leaving the server unresponsive to UI
requests.

Rework the pxe parser such that it handles the result of each tftp
request in a callback, which can complete after iterate_parsers() has
returned. Each callback is allocated its own conf_context which takes a
talloc reference on the discover_context so that each callback can
commit new boot options after the initial iterate loop has completed.
This also means talloc_unlink must be used instead by the original
parent of the discover_context.

Signed-off-by: Samuel Mendoza-Jonas &lt;sam@mendozajonas.com&gt;
</content>
</entry>
<entry>
<title>configure: Use AC_GNU_SOURCE</title>
<updated>2013-12-18T02:19:21+00:00</updated>
<author>
<name>Jeremy Kerr</name>
<email>jk@ozlabs.org</email>
</author>
<published>2013-12-16T08:21:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-petitboot/commit/?id=66bf929fa97fabb70198455f9eec2e9ccf0661fa'/>
<id>urn:sha1:66bf929fa97fabb70198455f9eec2e9ccf0661fa</id>
<content type='text'>
Rather than #defining _GNU_SOURCE in our .c files, we can define this
from config.h instead.

Signed-off-by: Jeremy Kerr &lt;jk@ozlabs.org&gt;
</content>
</entry>
<entry>
<title>lib/url: Export is_url() function</title>
<updated>2013-11-06T08:34:26+00:00</updated>
<author>
<name>Neelesh Gupta</name>
<email>neelegup@linux.vnet.ibm.com</email>
</author>
<published>2013-10-28T07:15:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-petitboot/commit/?id=f385e8cacbc574e213b0805a8d383373f29a8058'/>
<id>urn:sha1:f385e8cacbc574e213b0805a8d383373f29a8058</id>
<content type='text'>
Signed-off-by: Neelesh Gupta &lt;neelegup@linux.vnet.ibm.com&gt;
Signed-off-by: Jeremy Kerr &lt;jk@ozlabs.org&gt;
</content>
</entry>
<entry>
<title>lib/url: talloc from new URL in pb_url_copy</title>
<updated>2013-09-26T07:20:59+00:00</updated>
<author>
<name>Jeremy Kerr</name>
<email>jk@ozlabs.org</email>
</author>
<published>2013-09-26T03:44:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-petitboot/commit/?id=8ad9aba4b4463c9231eb441c81694686443b011a'/>
<id>urn:sha1:8ad9aba4b4463c9231eb441c81694686443b011a</id>
<content type='text'>
We're ending up with members of new_url being allocated from the old
URL's context. We should be tallocing from the new_url instead.

Signed-off-by: Jeremy Kerr &lt;jk@ozlabs.org&gt;
</content>
</entry>
<entry>
<title>discover: log cleanup</title>
<updated>2013-05-16T03:56:28+00:00</updated>
<author>
<name>Jeremy Kerr</name>
<email>jk@ozlabs.org</email>
</author>
<published>2013-05-09T08:12:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-petitboot/commit/?id=a5db3ced87f5f24500f785b70af8b8630bc1c077'/>
<id>urn:sha1:a5db3ced87f5f24500f785b70af8b8630bc1c077</id>
<content type='text'>
Remove some of the more noisy log messages, and add some information
pertinent to device resolution events.

Signed-off-by: Jeremy Kerr &lt;jk@ozlabs.org&gt;
</content>
</entry>
<entry>
<title>lib/url: Add pb_url_to_string</title>
<updated>2013-05-15T06:50:45+00:00</updated>
<author>
<name>Jeremy Kerr</name>
<email>jk@ozlabs.org</email>
</author>
<published>2013-05-02T09:46:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-petitboot/commit/?id=d9a54dc81723f83a21e24aa362a7a356d266e942'/>
<id>urn:sha1:d9a54dc81723f83a21e24aa362a7a356d266e942</id>
<content type='text'>
Add a function to unparse a URL, to make comparisons in tests easy.

Signed-off-by: Jeremy Kerr &lt;jk@ozlabs.org&gt;
</content>
</entry>
<entry>
<title>lib/url: fix no-scheme URL parsing</title>
<updated>2013-05-06T01:02:12+00:00</updated>
<author>
<name>Jeremy Kerr</name>
<email>jk@ozlabs.org</email>
</author>
<published>2013-05-02T09:30:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-petitboot/commit/?id=a8f70e4bb930253065a0596a3b1f4d7894b074a9'/>
<id>urn:sha1:a8f70e4bb930253065a0596a3b1f4d7894b074a9</id>
<content type='text'>
We were incorrectly dropping the first strlen("file://") characters from
URLs with no scheme:

--- test/urls/data/localpath.test	2013-05-02 17:26:48.826359036 +0800
+++ /tmp/tmp.gn4JsWLw5o	2013-05-02 17:26:50.262364613 +0800
@@ -2,6 +2,6 @@
 scheme	file
 host	(null)
 port	(null)
-path	/test/path/to/local/file
-dir	/test/path/to/local/
+path	ath/to/local/file
+dir	ath/to/local/
 file	file

This change fixes the issue by indicating "no scheme found" by a NULL
return from pb_url_find_scheme, and hadling it appropriately. We add a
testcase too.

Signed-off-by: Jeremy Kerr &lt;jk@ozlabs.org&gt;
</content>
</entry>
</feed>
