pknock: drop evil-tinygram warning messages

The duprintf macro then also becomes unneeded.
This commit is contained in:
Jan Engelhardt
2009-09-29 19:42:36 +02:00
parent 45515a0afd
commit 9928c864ab

View File

@@ -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;
} }