4 #include <sys/socket.h>
10 #define IPN_BROADCAST 1
12 #define IPN_VDESWITCH 2
13 #define IPN_VDESWITCH_L3 3
16 struct sockaddr_un sun
={.sun_family
=AF_IPN
,.sun_path
="/tmp/sockipn"};
19 int s
=socket(AF_IPN
,SOCK_RAW
,IPN_BROADCAST
);
25 err
=connect(s
,(struct sockaddr
*)&sun
,sizeof(sun
));
28 while ((len
=read(s
,buf
,256)) > 0) {