Displaying 4 results from an estimated 4 matches for "targinfos".
Did you mean:
targinfo
2005 Oct 04
0
IMQ and nfcache
Hi, I''m working on the IMQ patch for 2.6.14-rc* and ran in trouble with
nfcache. I have to be honest that I''m not following kernel devel as I
should so I need to ask for a little help here. I know Mr Harald Welte
removed nfcache but I''m not sure about the way to go. I have this at
net/ipv4/netfilter/ipt-IMQ.c:
static unsigned int imq_target(struct sk_buff **pskb,
2006 Dec 11
21
iptables 1.3.7, kernel 2.6.19, ROUTE and Layer7 issues
...able I have this error:
[root@myhost ~]# iptables -v -t mangle -A POSTROUTING -p tcp --dport msnp
-j ROUTE --gw $chat_gw
ROUTE tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:1863 ROUTE
gw:80.32.61.1
iptables: Invalid argument
[root@myhost ~]# dmesg | grep "ROUTE"
ipt_ROUTE: targinfosize 0 != 40
[root@myhost ~]# cat /var/log/messages | grep "ROUTE"
Dec 11 20:32:50 myhost kernel: ipt_ROUTE: targinfosize 0 != 40
With layer7 filter, I have a problem too, but it has no dmesg or syslog
entry:
[root@myhost ~]# iptables -v -t mangle -A PREROUTING -m layer7 --l7proto
msnmes...
2002 May 14
1
what''s the meaning of xchg()?
...serinfo)
>++{
>++ (*pskb)->from_imq = 1;
>++ (*pskb)->nfcache |= NFC_ALTERED;
>++
>++ return IPT_CONTINUE;
>++}
>++
>++static int
>++checkentry(const char *tablename,
>++ const struct ipt_entry *e,
>++ void *targinfo,
>++ unsigned int targinfosize,
>++ unsigned int hook_mask)
>++{
>++ if (strcmp(tablename, "mangle") != 0) {
>++ printk(KERN_WARNING "IMQX: can only be called from \"mangle\" table, not \"s\"\n", tablename);
>++ return 0;
>++ }
>++
>++ return 1;
>+...
2006 May 19
25
iptables CLASSIFY and MARK not working?
I have to match my packets based on MAC address, which I cannot do in
the POSTROUTING chain, so I do it in PREROUTING using MARK. Then, I
match on the MARK in the POSTROUTING chain to do a CLASSIFY. But this
does not seem to work:
wireless-r1 bwlimit # iptables -L -v -n -t mangle
Chain PREROUTING (policy ACCEPT 3353K packets, 941M bytes)
pkts bytes target prot opt in out source