mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-08 13:44:56 +02:00
pknock: drop evil-tinygram warning messages
The duprintf macro then also becomes unneeded.
This commit is contained in:
@@ -52,10 +52,8 @@ enum {
|
|||||||
#define DEBUGP(msg, peer) printk(KERN_INFO PKNOCK \
|
#define DEBUGP(msg, peer) printk(KERN_INFO PKNOCK \
|
||||||
"(S) peer: %u.%u.%u.%u - %s.\n", \
|
"(S) peer: %u.%u.%u.%u - %s.\n", \
|
||||||
NIPQUAD((peer)->ip), msg)
|
NIPQUAD((peer)->ip), msg)
|
||||||
#define duprintf(format, args...) printk(format, ## args);
|
|
||||||
#else
|
#else
|
||||||
#define DEBUGP(msg, peer)
|
#define DEBUGP(msg, peer)
|
||||||
#define duprintf(format, args...)
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static uint32_t ipt_pknock_hash_rnd;
|
static uint32_t ipt_pknock_hash_rnd;
|
||||||
@@ -924,7 +922,6 @@ static bool pknock_mt(const struct sk_buff *skb,
|
|||||||
/* We've been asked to examine this packet, and we
|
/* We've been asked to examine this packet, and we
|
||||||
* can't. Hence, no choice but to drop.
|
* can't. Hence, no choice but to drop.
|
||||||
*/
|
*/
|
||||||
duprintf("Dropping evil offset=0 tinygram.\n");
|
|
||||||
*par->hotdrop = true;
|
*par->hotdrop = true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user