Hello Julian
+static void ip_vs_debug_packet(struct sk_buff *skb, char *msg)
+{
+ struct iphdr *iph = skb->nh.iph;
+ int len = skb->len;
+ union ip_vs_tphdr h;
+ u16 s1, s2;
+
+ /* Many printk not good on SMP */
+ printk("%s:", msg);
You rate limit it, so it should be ok :)
+ else
+ printk(" %s(%u->%u, doff=%d, %s%s%s%s)",
+ ip_vs_proto_name(iph->protocol),
+ ntohs(s1), ntohs(s2), h.th->doff,
+ h.th->syn? "S":"s",
+ h.th->ack? "A":"a",
+ h.th->fin? "F":"f",
+ h.th->rst? "R":"r");
Two things:
o Can you make it h.th->syn? "S" : "-"; instead of writing the 's'? This
makes it more consistent with existing ipchains (I know it's 2.4.x but
for the sake of completeness) printk's.
o Could you print out the URG and PSH flags too?
Best regards,
Roberto Nibali, ratz
--
echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq'|dc
|