Fortunately, the destination buffer is always big enough, so no buffer
overflow can happen. Use memcpy instead of strncpy to make this explicit
(and slightly more efficient).
Previously, delays were specific for interfaces, but not for the group
address. This behaviour was confusing when the same interface was passed
for multiple group addresses. Fix by keeping track of both groups and
interfaces.
With the netlink functions backported batman-adv-legacy works fine with
the upstream batctl. Therefore there is no more need to build and
install the old batctl v2013.4 version.
- fixes broken Broker reset bug in tunneldigger-client wlanslovenija/tunneldigger#87 - now tunneldigger client resets error-tags and starts from scratch, when no Brokers are left over
- added cmake related patches to Makefile
This fixes ordering for the following patterns:
* 1.0 < 1.0a
* 1.0a < 1.0ab
* 1.0a < 1.0a1
Note that trailing zeros are still ignored (1.0 == 1., 1test0 == 1test),
which matches the behaviour of dpkg and opkg.
Version strings with the same prefix, e.g. "1.0" and "1.0~pre", or even
"1.0" and "1.0.1" were considered equal. This is a regression in the C
autoupdater rewrite.
The noise value delivered by nl80211 is actually a signed int8. Thus it
must be interpreted as a signed value, too.
Signed-off-by: Tobias Schramm <tobleminer@gmail.com>
2f5be1a49318 batman-adv: do not modify batadv packet header before pulling it
fad4085f659c batman-adv: update data pointers after skb_cow()
8a495c4284b6 batman-adv: Add extack to ndo_add_slave
d176649871cc batman-adv: Add extack to upper device linking
Give the user a better error message when allocations fail by using our
checked allocation functions.
Signed-off-by: Tobias Schramm <tobleminer@gmail.com>
[Matthias Schiffer: squash, use safe_realloc]
safe_malloc() and safe_realloc() are wrappers around malloc() and realloc()
than abort the process if the memory allocation fails.
Signed-off-by: Tobias Schramm <tobleminer@gmail.com>
[Matthias Schiffer: add safe_realloc()]
Previously the return value of uci_alloc_context was not checked leading
to a possible null ptr dereference
Signed-off-by: Tobias Schramm <tobleminer@gmail.com>
[Matthias Schiffer: use abort()]
Previously supplying an invalid url for download would result in
uclient_new returning NULL and crash the autoupdater as soon as
cl->priv is accessed.
Signed-off-by: Tobias Schramm <tobleminer@gmail.com>