TARPIT: mark oldtcphdr const

This commit is contained in:
Jan Engelhardt
2012-07-08 20:50:54 +02:00
parent 911d3d146a
commit d11218815f

View File

@@ -54,7 +54,8 @@
static void tarpit_tcp(struct sk_buff *oldskb, unsigned int hook,
unsigned int mode)
{
struct tcphdr _otcph, *oth, *tcph;
struct tcphdr _otcph, *tcph;
const struct tcphdr *oth;
unsigned int addr_type = RTN_UNSPEC;
struct sk_buff *nskb;
const struct iphdr *oldhdr;