Nmap Announce mailing list archives
Re: Socket type not supported..
From: Juan Cespedes <cespedes () lander es>
Date: Mon, 18 Jan 1999 16:27:19 +0100
On Fri, Jan 15, 1999 at 09:25:11PM +0100, Hroi Sigurdsson wrote:
SOCK_PACKET seems to have been completely deprecated in 2.2.0. There's not even a mention of it in any of the toplevel files in /usr/src/linux. So obviously nmap/libpcap-possibly-modified needs to be fixed? Will it even be fixable when using the linux packet-filter?
I don't know what does libpcap do (I don't have it handy), but the correct way to open a socket for sending and receiving packets in linux-2.1.* and linux-2.2.* is to do socket(PF_PACKET, SOCK_RAW, htons(0x0800)) instead of socket(PF_INET, SOCK_PACKET, htons(0x0800)) IMHO, the best option is to use the newer parameters, and if that fails, fall back to the old ones. -- Juan Cespedes
Current thread:
- Socket type not supported.. Hroi Sigurdsson (Jan 14)
- Re: Socket type not supported.. Lamont Granquist (Jan 14)
- Re: Socket type not supported.. Roeland Th Jansen (Jan 14)
- Re: Socket type not supported.. Lamont Granquist (Jan 15)
- Re: Socket type not supported.. Hroi Sigurdsson (Jan 15)
- Re: Socket type not supported.. Juan Cespedes (Jan 18)
- Re: Socket type not supported.. Gigi Sullivan (Jan 18)
- Re: Socket type not supported.. Juan Cespedes (Jan 19)
- Re: Socket type not supported.. Gigi Sullivan (Jan 19)
- Re: Socket type not supported.. Roeland Th Jansen (Jan 14)
- Re: Socket type not supported.. Lamont Granquist (Jan 14)
- Re: Socket type not supported.. Kevin Steves (Jan 18)
- Re: Socket type not supported.. Taral (Jan 18)
- <Possible follow-ups>
- Re: Socket type not supported.. Hroi Sigurdsson (Jan 19)