Re: question about sockets
From: David Schwartz (davids_at_webmaster.com)
Date: 04/19/05
- Next message: Greg Law: "Re: Allocating memory below 4G"
- Previous message: maheshpradhan_at_fastmail.fm: "Reqst for Information: Loopback device programming"
- In reply to: Daniel Munzinger: "Re: question about sockets"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 19 Apr 2005 01:12:01 -0700
"Daniel Munzinger" <bender316@gmail.com> wrote in message
news:d42aj2$j9i$05$1@news.t-online.com...
> David Schwartz schrieb:
>> How the right socket structure is found is protocol-dependent. For
>> TCP, for example, it's based on the source IP, destination IP, source
>> port, and destination port.
> Ok thanks.
>
> But does someone know how sockets with AF_PACKET are managed?
The application registers a filter that tells the kernel what packets it
wants and the kernel checks all packets against the filter. See
net/core/filter.c and net/packet/af_packet.c in the Linux source tree.
DS
- Next message: Greg Law: "Re: Allocating memory below 4G"
- Previous message: maheshpradhan_at_fastmail.fm: "Reqst for Information: Loopback device programming"
- In reply to: Daniel Munzinger: "Re: question about sockets"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|