4 #include <sys/socket.h>
9 struct sockaddr_un sun
={.sun_family
=AF_IPN
,.sun_path
="/tmp/sockipn"};
12 int s
=socket(AF_IPN
,SOCK_RAW
,IPN_BROADCAST
);
16 s
=socket(AF_IPN
,SOCK_RAW
,IPN_BROADCAST
);
21 err
=connect(s
,(struct sockaddr
*)&sun
,sizeof(sun
));
24 while ((len
=read(s
,buf
,256)) > 0) {