[comp.unix.sysv386] ESIX : Socket Trouble

rrhres01@pc.usl.edu (Godeaux Darell) (10/24/90)

Has anyone tried to create a socket (SOCK_RAW) for ICMPs in ESIX ???

I tried the following program:

% cat socket.c
#include <sys/types.h>
#include <lan/net_types.h>
#include <lan/socket.h>
#include <lan/in.h>
int s;
main() { 
   s = socket(AF_INET, SOCK_RAW, 0);
   if (s<0) {
      perror("socket");
      exit(0);
}
}
% cc socket.c -o socket -lbsd -lnet -lnsl_s
% socket
socket: Error 0

I can create a SOCK_STREAM and SOCK_DGRAM, but SOCK_RAW gives the results above.

How compatible is ESIX 5.3.2.D with BSD sockets?  I am also trying to port the
CMU SNMP code to ESIX without any success. (It compiles, but hangs up on the
'select' function when executed.) Does anyone have any experience using sockets?
Any comments would be appreciated.

Darell J. Godeaux
University of Southwestern Louisiana
rrhres01@pc.usl.edu