mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-20 19:44:56 +02:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
061fc794b5 | ||
![]() |
bf1ca298ae | ||
![]() |
6e5edc8372 |
@@ -1,4 +1,4 @@
|
||||
AC_INIT([xtables-addons], [3.6])
|
||||
AC_INIT([xtables-addons], [3.7])
|
||||
AC_CONFIG_AUX_DIR([build-aux])
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
@@ -57,7 +57,7 @@ if test -n "$kbuilddir"; then
|
||||
echo "WARNING: Version detection did not succeed. Continue at own luck.";
|
||||
else
|
||||
echo "$kmajor.$kminor.$kmicro.$kstable in $kbuilddir";
|
||||
if test "$kmajor" -gt 5 -o "$kmajor" -eq 5 -a "$kminor" -gt 3; then
|
||||
if test "$kmajor" -gt 5 -o "$kmajor" -eq 5 -a "$kminor" -gt 4; then
|
||||
echo "WARNING: That kernel version is not officially supported yet. Continue at own luck.";
|
||||
elif test "$kmajor" -eq 5 -a "$kminor" -ge 0; then
|
||||
:
|
||||
|
@@ -1,6 +1,8 @@
|
||||
|
||||
HEAD
|
||||
====
|
||||
v3.7 (2019-12-01)
|
||||
=================
|
||||
Fixes:
|
||||
- xt_geoip: fix in6_addr little-endian byte swapping
|
||||
|
||||
|
||||
v3.6 (2019-11-20)
|
||||
|
@@ -50,26 +50,6 @@ static struct option geoip_opts[] = {
|
||||
};
|
||||
|
||||
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
||||
static void geoip_swap_le16(uint16_t *buf)
|
||||
{
|
||||
unsigned char *p = (void *)buf;
|
||||
uint16_t n= p[0] + (p[1] << 8);
|
||||
p[0] = (n >> 8) & 0xff;
|
||||
p[1] = n & 0xff;
|
||||
}
|
||||
|
||||
static void geoip_swap_in6(struct in6_addr *in6)
|
||||
{
|
||||
geoip_swap_le16(&in6->s6_addr16[0]);
|
||||
geoip_swap_le16(&in6->s6_addr16[1]);
|
||||
geoip_swap_le16(&in6->s6_addr16[2]);
|
||||
geoip_swap_le16(&in6->s6_addr16[3]);
|
||||
geoip_swap_le16(&in6->s6_addr16[4]);
|
||||
geoip_swap_le16(&in6->s6_addr16[5]);
|
||||
geoip_swap_le16(&in6->s6_addr16[6]);
|
||||
geoip_swap_le16(&in6->s6_addr16[7]);
|
||||
}
|
||||
|
||||
static void geoip_swap_le32(uint32_t *buf)
|
||||
{
|
||||
unsigned char *p = (void *)buf;
|
||||
@@ -79,6 +59,14 @@ static void geoip_swap_le32(uint32_t *buf)
|
||||
p[2] = (n >> 8) & 0xff;
|
||||
p[3] = n & 0xff;
|
||||
}
|
||||
|
||||
static void geoip_swap_in6(struct in6_addr *in6)
|
||||
{
|
||||
geoip_swap_le32(&in6->s6_addr32[0]);
|
||||
geoip_swap_le32(&in6->s6_addr32[1]);
|
||||
geoip_swap_le32(&in6->s6_addr32[2]);
|
||||
geoip_swap_le32(&in6->s6_addr32[3]);
|
||||
}
|
||||
#endif
|
||||
|
||||
static void *
|
||||
|
@@ -1,4 +1,4 @@
|
||||
.TH xtables-addons 8 "" "" "v3.6 (2019-11-20)"
|
||||
.TH xtables-addons 8 "" "" "v3.7 (2019-12-01)"
|
||||
.SH Name
|
||||
Xtables-addons \(em additional extensions for iptables, ip6tables, etc.
|
||||
.SH Targets
|
||||
|
Reference in New Issue
Block a user