arbitary length matchinfo
Is it possible to create arbitary length matchinfo? I couldn't find any info on this.
What I want is an path:
struct ipt_foo_info {
char *path;
}maximum path length in Linux is 4096 and doing
struct ipt_foo_info {
char path[4096];
}is bit crazy.
Regards,
Juha Heljoranta
Quoted 1 line · Juha Heljoranta
Is it possible to create arbitary length matchinfo?
Not without modifying both libiptc and the kernel. The structures does support this, but libiptc assumes the matchinfo is of fixed size, and the kernel also verifies the size is the expected size.
Quoted 1 line
What I want is an path:
Just curious: why?
Regards
Henrik
Quoted 2 lines · Juha Heljoranta
Is it possible to create arbitary length matchinfo? I couldn't find any info on this.
no.
Quoted 7 lines
What I want is an path:
struct ipt_foo_info { char *path; }maximum path length in Linux is 4096 and doing
you definitely don't want filename paths in an iptables rule. this is insane ;)
Signature · 5 lines
- Harald Welte <[email protected]> http://netfilter.org/ ============================================================================ "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie