--- l2_test.c 2001/11/02 18:42:51 1.35
+++ l2_test.c 2001/11/03 20:49:25 1.36
@@ -183,12 +183,12 @@
if ((chSock = l2_channel_create(&l2_handler_socket)) == NULL) /* Socket */
die("failed to create socket channel");
- if (l2_channel_configure(chSock, "protocol,host,port",\
- "IPPROTO_TCP", "localhost", 2002) != L2_OK)
+ if (l2_channel_configure(chSock, "proto,host,port",\
+ "tcp", "localhost", 2002) != L2_OK)
die("failed to configure socket tcp/ipv4 channel");
#if 0
- if (l2_channel_configure(chSock, "protocol,host,port",\
- "IPPROTO_TCP", "0:0:0:0:0:0:0:1", 2002) != L2_OK)
+ if (l2_channel_configure(chSock, "proto,host,port",\
+ "tcp", "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)
|