--- l2_test.c 2001/10/04 12:53:54 1.29
+++ l2_test.c 2001/10/04 13:35:47 1.30
@@ -165,11 +165,11 @@
die("failed to create socket channel");
if (l2_channel_configure(chSock, "protocol,ipversion,host,port",\
- "tcp", "ipv4", "localhost", 2002) != L2_OK)
+ "IPPROTO_TCP", "AF_INET", "localhost", 2002) != L2_OK)
die("failed to configure socket tcp/ipv4 channel");
#if 0
if (l2_channel_configure(chSock, "protocol,ipversion,host,port",\
- "tcp", "ipv6", "0:0:0:0:0:0:0:1", 2002) != L2_OK)
+ "IPPROTO_TCP", "AF_INET6", "0:0:0:0:0:0:0:1", 2002) != L2_OK)
die("failed to configure socket tcp/ipv6 channel");
#endif
if (l2_channel_open(chSock) != L2_OK)
|