Commit Graph

8 Commits

Author SHA1 Message Date
Jo-Philipp Wich 175cf9e985 iodine: workaround incomplete musl nameser.h header
The arpa/nameser.h header of musl libc indirectly depends on the endian.h
header but fails to explicitely include it to properly define
`__BYTE_ORDER` and `__BIG_ENDIAN` prior to declaring the DNS `HEADER`
structure.

When both the appropriate `__BYTE_ORDER` and `__BIG_ENDIAN` defines are
unset, the `#if __BYTE_ORDER == __BIG_ENDIAN` condition in `nameser.h`
evaluates to true, causing it to declare a bad (big endian) DNS packet
header structure on little endian systems.

Work around this musl bug by forcibly passing `-include endian.h` through
the `osflags` file.

An upstream fix for musl libc has been submitted with
http://www.openwall.com/lists/musl/2017/12/04/3

This should solve iodine packet corruption on little endian musl systems
reported at
http://lists.infradead.org/pipermail/lede-dev/2017-November/010085.html

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-12-12 23:41:44 +01:00
Etienne Champetier 4006865ae8 treewide: run "make check FIXUP=1"
fix Makefile chmod (644)
replace MD5SUM with HASH
add PKG_MIRROR_HASH when PKG_SOURCE_PROTO:=git

(PKG_SOURCE_PROTO:=svn tarballs are not reproducible for now)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
2017-08-29 21:41:14 -07:00
Maxim Storchak 5d4955c9ff iodine: fix musl compatibility
Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
2015-06-25 19:57:50 +03:00
Uwe Kleine-König a66f9e8854 net/iodine: make address config optional
In the absense of an address entry bind to all interfaces which is also
iodined's default when -l isn't given.

Signed-off-by: Uwe Kleine-König <uwe+openwrt@kleine-koenig.org>
2014-07-24 09:56:09 +02:00
Uwe Kleine-König 4e09eeb4ae net/iodine: make port configurable
Fall back to the default DNS port (i.e. 53). If you configure something
different than 53 this results in a warning from iodined:

	ALERT! Other dns servers expect you to run on port 53.
	You must manually forward port 53 to port $port for things to work.

This is obviously true.

Signed-off-by: Uwe Kleine-König <uwe+openwrt@kleine-koenig.org>
2014-07-24 09:41:56 +02:00
Uwe Kleine-König d1f21a7ad6 net/iodine: grab maintainership and add license info
Signed-off-by: Uwe Kleine-König <uwe+openwrt@kleine-koenig.org>
2014-07-21 21:29:40 +02:00
Uwe Kleine-König 7d5784fc51 net/iodine: upgrade to version 0.7.0
This is compatible to 0.6.0-rc1 client and servers and fixes an
authentication bypass bug (CVE-2014-4168).

Signed-off-by: Uwe Kleine-König <uwe+openwrt@kleine-koenig.org>
2014-07-21 21:29:40 +02:00
Uwe Kleine-König f22fc16043 net/iodine: import from old packages
No further changes.
2014-07-21 21:29:34 +02:00