All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnaud Fontaine <arnaud@andesi.org>
To: netfilter-devel@lists.netfilter.org
Subject: libipt_multiport: getsockopt failed strangely: Invalid argument
Date: Mon, 27 Nov 2006 19:54:40 +0100	[thread overview]
Message-ID: <877ixgra8f.fsf@scoobidee.mini-dweeb.org> (raw)

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.

Regards,
Arnaud Fontaine

             reply	other threads:[~2006-11-27 18:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-27 18:54 Arnaud Fontaine [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-12-01 12:00 libipt_multiport: getsockopt failed strangely: Invalid argument Arnaud Fontaine
2006-12-01 16:24 ` Patrick McHardy
2006-12-01 23:24   ` David Miller
2006-12-01 23:51     ` Patrick McHardy
2006-12-02  4:15       ` David Miller

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=877ixgra8f.fsf@scoobidee.mini-dweeb.org \
    --to=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.