[708] in linux-net channel archive

home help back first fref pref prev next nref lref last post

problem opening a raw-socket

daemon@ATHENA.MIT.EDU (Hans Alblas)
Mon Jul 17 19:03:39 1995

From: Hans Alblas <pe1ayx@pi8hrl.ampr.org>
To: linux-net@vger.rutgers.edu
Date: Mon, 17 Jul 1995 10:24:29 +0200 (MET DST)
Reply-To: pe1ayx@pi8hrl.ampr.org


Since using linux 1.3.x I have folowing problem.
It is not possible for me to open een RAW sockt for LISTEN

I open the socket like this

int blabla()
{

	int fd = -1;

	fd = socket(AF_INET, SOCK_RAW, 4);

	if (fd<0) {
		printf("error opening socket");
		return -1;
	}

	if (fcntl(fd, F_SETFL, O_NDELAY ) < 0) {
		printf("error setting non-blocking I/O on raw socket");
		return -1;
	}
........

in kernels 1.1.x and 1.2.x is the socket at this moment active for
read and write ,now with 1.3.x can i only write over that socket and
not read !.

How do i have to open and install the raw socket for reading and writing now?

============
Greetings Hans Alblas
pe1ayx@pi8hrl.ampr.org



home help back first fref pref prev next nref lref last post