Re: question about sockets

From: David Schwartz (davids_at_webmaster.com)
Date: 04/19/05


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



Relevant Pages

  • Re: Remote Desktop on SBS2003
    ... For internet access you would need to configure your firewall to only allow ... access to destination port 3389 TCP from a specific IP address. ... I allowed to use Remote Desktop. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: TCP/IP Filtering
    ... you'll need TCP and UDP 53 for DNS name resolution. ... want or need someone to send packets into your computer to destination port ... FTP uses TCP 21 just for passing FTP commands only, ... I prefer using firewall software or devices instead of IPsec because there ...
    (microsoft.public.win2000.security)
  • Re: Reading pfirewall log from SP2 FW
    ... Destination Port ... TCP Flags ... TCP SYN (sequence) ... TCP ACK ...
    (microsoft.public.windowsxp.security_admin)
  • Re: basic port forward in router question
    ... Application: custome Protocol: TCP, UDP, or UDP ... Source IP Address: Source Netmask: ... Destination Port Start: Destination Port End: ... Application: custome Protocol: TCP, UDP, or UDP: Usually TCP ...
    (microsoft.public.win2000.networking)