From: Patrick McHardy <kaber@trash.net>
To: Arnaud Fontaine <arnaud@andesi.org>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: libipt_multiport: getsockopt failed strangely: Invalid argument
Date: Fri, 01 Dec 2006 17:24:39 +0100 [thread overview]
Message-ID: <45705747.9090806@trash.net> (raw)
In-Reply-To: <87irgvomfx.fsf@scoobidee.mini-dweeb.org>
Arnaud Fontaine wrote:
> Hello,
>
> When I try to use the '-m multiport' argument, I have the following
> error message:
>
> # /sbin/iptables -A INPUT -p tcp -m multiport --sports \
> ssh,www,imap2,pop3,domain,https,smtp,auth -m state \
> --state NEW,ESTABLISHED,RELATED -j ACCEPT
> getsockopt failed strangely: Invalid argument
>
> strace results:
>
> munmap(0xf7fde000, 8192) = 0
> open("/lib/iptables/libipt_multiport.so", O_RDONLY) = 3
> read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\2\0\0\0\1\0\0\10"..., 512) = 512
> fstat64(3, {st_mode=S_IFREG|0644, st_size=9208, ...}) = 0
> mmap(NULL, 73704, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xf7dc0000
> mprotect(0xf7dc2000, 65512, PROT_NONE) = 0
> mmap(0xf7dd0000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0xf7dd0000
> close(3) = 0
> socket(PF_INET, SOCK_RAW, IPPROTO_RAW) = 3
> getsockopt(3, SOL_IP, 0x42 /* IP_??? */, 0xff565346, 0xff565364) = -1 EINVAL (Invalid argument)
> write(2, "getsockopt failed strangely: Inv"..., 46getsockopt failed strangely: Invalid argument) = 46
>
> This error happens only with 2.6.17 and 2.6.18, using 2.6.15 it works
> fine. I don't know at all how I could identify the problem. I'm using
> Debian GNU/Linux with sparc64-smp Linux kernel and iptables 1.3.6. I
> hope that i have sent this mail to the proper mailing list.
I *think* this should be fixed in 2.6.19. The 32 bit compat code
didn't implement the SO_GET_REVISION_MATCH/TARGET options and
returned an error.
next prev parent reply other threads:[~2006-12-01 16:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-01 12:00 libipt_multiport: getsockopt failed strangely: Invalid argument Arnaud Fontaine
2006-12-01 16:24 ` Patrick McHardy [this message]
2006-12-01 23:24 ` David Miller
2006-12-01 23:51 ` Patrick McHardy
2006-12-02 4:15 ` David Miller
-- strict thread matches above, loose matches on Subject: below --
2006-11-27 18:54 Arnaud Fontaine
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45705747.9090806@trash.net \
--to=kaber@trash.net \
--cc=arnaud@andesi.org \
--cc=netfilter-devel@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.