miniupnpd: fix integer conversion in NAT-PMP, update description
Signed-off-by: Steven Barth <steven@midlink.org>
This commit is contained in:
parent
ba11f8d9d3
commit
d7616fd1f3
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=miniupnpd
|
PKG_NAME:=miniupnpd
|
||||||
PKG_VERSION:=1.8.20140523
|
PKG_VERSION:=1.8.20140523
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=4
|
||||||
|
|
||||||
PKG_SOURCE_URL:=http://miniupnp.free.fr/files
|
PKG_SOURCE_URL:=http://miniupnp.free.fr/files
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
|
@ -23,7 +23,7 @@ define Package/miniupnpd
|
||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=Network
|
CATEGORY:=Network
|
||||||
DEPENDS:=+iptables +libip4tc +IPV6:libip6tc +IPV6:ip6tables +libnfnetlink
|
DEPENDS:=+iptables +libip4tc +IPV6:libip6tc +IPV6:ip6tables +libnfnetlink
|
||||||
TITLE:=Lightweight UPnP daemon
|
TITLE:=Lightweight UPnP IGD, NAT-PMP & PCP daemon
|
||||||
SUBMENU:=Firewall
|
SUBMENU:=Firewall
|
||||||
URL:=http://miniupnp.free.fr/
|
URL:=http://miniupnp.free.fr/
|
||||||
endef
|
endef
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
--- a/natpmp.c
|
||||||
|
+++ b/natpmp.c
|
||||||
|
@@ -54,7 +54,7 @@ INLINE void writenu32(uint8_t * p, uint3
|
||||||
|
#define WRITENU32(p, n) writenu32(p, n)
|
||||||
|
INLINE void writenu16(uint8_t * p, uint16_t n)
|
||||||
|
{
|
||||||
|
- p[0] = (n < 0xff00) >> 8;
|
||||||
|
+ p[0] = (n & 0xff00) >> 8;
|
||||||
|
p[1] = n & 0xff;
|
||||||
|
}
|
||||||
|
#define WRITENU16(p, n) writenu16(p, n)
|
Loading…
Reference in New Issue