=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/telnet/commands.c,v retrieving revision 1.52 retrieving revision 1.53 diff -u -r1.52 -r1.53 --- src/usr.bin/telnet/commands.c 2010/07/03 04:44:51 1.52 +++ src/usr.bin/telnet/commands.c 2011/06/21 17:31:07 1.53 @@ -1,4 +1,4 @@ -/* $OpenBSD: commands.c,v 1.52 2010/07/03 04:44:51 guenther Exp $ */ +/* $OpenBSD: commands.c,v 1.53 2011/06/21 17:31:07 mikeb Exp $ */ /* $NetBSD: commands.c,v 1.14 1996/03/24 22:03:48 jtk Exp $ */ /* @@ -2397,7 +2397,7 @@ continue; if (rtableid) { - if (setsockopt(net, IPPROTO_IP, SO_RTABLE, &rtableid, + if (setsockopt(net, SOL_SOCKET, SO_RTABLE, &rtableid, sizeof(rtableid)) == -1) perror("setsockopt (SO_RTABLE)"); }