From: Chris Wedgwood <cw@f00f.org>
To: Adam <adam@cfar.umd.edu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: recvfrom and sockaddr_in.sin_port
Date: Mon, 9 Jul 2001 06:31:11 +1200 [thread overview]
Message-ID: <20010709063111.A28940@weta.f00f.org> (raw)
In-Reply-To: <Pine.LNX.4.33.0107081338140.936-100000@eax.student.umd.edu>
In-Reply-To: <Pine.LNX.4.33.0107081338140.936-100000@eax.student.umd.edu>
On Sun, Jul 08, 2001 at 01:42:28PM -0500, Adam wrote:
so it seem to imply that only tcp packets only are to be passed.
still group "SOCK_RAW" is subset of the PF_INET group (the way
I see it), so from ip(7) man page I should use sockaddr_in
structure, which should be defined in this particular case,
as it ought be for IPPROTO_UDP.
have you dumped the packet contents? presumably its a raw packet,
protocol 6, and the header and such like is returned
i see no reason, for raw packets to fill out sin_port whatoever, it
just doesn't make sense that raw packets have a port
--cw
next prev parent reply other threads:[~2001-07-08 18:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-08 17:14 recvfrom and sockaddr_in.sin_port Adam
2001-07-08 17:05 ` Chris Wedgwood
2001-07-08 18:08 ` Adam
2001-07-08 17:21 ` Chris Wedgwood
2001-07-08 18:42 ` Adam
2001-07-08 18:31 ` Chris Wedgwood [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-07-08 19:28 Andi Kleen
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=20010709063111.A28940@weta.f00f.org \
--to=cw@f00f.org \
--cc=adam@cfar.umd.edu \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox