<feed xmlns='http://www.w3.org/2005/Atom'>
<title>packages/net/owipcalc/src, branch master</title>
<subtitle>Mirror of packages feed</subtitle>
<id>https://git.openwrt.org/feed/packages/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/feed/packages/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/'/>
<updated>2021-02-15T09:45:41Z</updated>
<entry>
<title>owipcalc: separate in client and lib</title>
<updated>2021-02-15T09:45:41Z</updated>
<author>
<name>Nick Hainke</name>
</author>
<published>2021-01-23T12:54:41Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=686f91919431ddcb99f69baff005d0916a502ffa'/>
<id>urn:sha1:686f91919431ddcb99f69baff005d0916a502ffa</id>
<content type='text'>
Separate owipcalc in client and lib part. Owipcalc brings a lot of nice
functionality with it, e.g. parsing and calculating prefixes.

Signed-off-by: Nick Hainke &lt;vincent@systemli.org&gt;
</content>
</entry>
<entry>
<title>owipcalc: fix contains not respect default route</title>
<updated>2021-01-23T16:48:18Z</updated>
<author>
<name>Nick Hainke</name>
</author>
<published>2021-01-23T12:48:11Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=e974acaac78d8b90bd9e5cbd81010593ec725cbb'/>
<id>urn:sha1:e974acaac78d8b90bd9e5cbd81010593ec725cbb</id>
<content type='text'>
In IPv4 the default route can be written as
 0.0.0.0/0

In IPv6 the default route can be written as
 ::/0

If u try
  owipcalc 0.0.0.0/0 contains 1.1.1.1
or
  owipcalc ::/0 contains ::1
owipcalc will respond with 0 meaning that the "default prefixes" do not
contain the routes.
That is why we check now for 0 prefix.

Furthermore, if the prefix is 0, i will be 16. We will access a negative
array entry in the line:
 uint8_t net1 = x-&gt;s6_addr[15-i] &amp; m;

Divide by % 16 to prevent i becoming 16:
 uint8_t i = ((128 - a-&gt;prefix) / 8) % 16;

Signed-off-by: Nick Hainke &lt;vincent@systemli.org&gt;
</content>
</entry>
<entry>
<title>owipcalc: import from base</title>
<updated>2021-01-22T16:12:53Z</updated>
<author>
<name>Adrian Schmutzler</name>
</author>
<published>2021-01-22T16:12:53Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=ee75bd5a8f4780aefaec3e7a8075b637899cf050'/>
<id>urn:sha1:ee75bd5a8f4780aefaec3e7a8075b637899cf050</id>
<content type='text'>
This is a helpful utility, but it does not have any dependencies
in base repository. Move it to packages feed.

Signed-off-by: Adrian Schmutzler &lt;freifunk@adrianschmutzler.de&gt;
</content>
</entry>
</feed>
