----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 26, 2002 11:01 AM
Subject: Re: [plug] pf_packet


> i've found my answers (i think) at the nmap source last night.
> if i remember every detail, it is
> socket(PF_PACKET,SOCK_DGRAM,htons(ETH_P_IP)

yup this means that you want to send and receive raw packets for ip protocol
only (ETH_P_IP) without the link-level header (SOCK_DGRAM)... but be
forewarn that this command is not portable to other OSes and only works for
linux only...

> and then when sending change the sockaddr_in (i think)
> from the header.

sockaddr_ll

fooler.

_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to