From bab0f04b1ce3e3585e7d7fdcc5b95c2bed933f01 Mon Sep 17 00:00:00 2001 From: Kevin Steves Date: Mon, 12 Aug 2002 02:36:26 +0000 Subject: SO_DONTROUTE on receive socket is not needed; ok itojun@ --- usr.sbin/traceroute/traceroute.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/usr.sbin/traceroute/traceroute.c b/usr.sbin/traceroute/traceroute.c index 5342e9d06c4..278ccbb27d8 100644 --- a/usr.sbin/traceroute/traceroute.c +++ b/usr.sbin/traceroute/traceroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: traceroute.c,v 1.48 2002/08/08 23:53:21 stevesk Exp $ */ +/* $OpenBSD: traceroute.c,v 1.49 2002/08/12 02:36:25 stevesk Exp $ */ /* $NetBSD: traceroute.c,v 1.10 1995/05/21 15:50:45 mycroft Exp $ */ /*- @@ -47,7 +47,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)traceroute.c 8.1 (Berkeley) 6/6/93";*/ #else -static char rcsid[] = "$OpenBSD: traceroute.c,v 1.48 2002/08/08 23:53:21 stevesk Exp $"; +static char rcsid[] = "$OpenBSD: traceroute.c,v 1.49 2002/08/12 02:36:25 stevesk Exp $"; #endif #endif /* not lint */ @@ -506,9 +506,6 @@ main(int argc, char *argv[]) if (options & SO_DEBUG) (void) setsockopt(s, SOL_SOCKET, SO_DEBUG, (char *)&on, sizeof(on)); - if (options & SO_DONTROUTE) - (void) setsockopt(s, SOL_SOCKET, SO_DONTROUTE, - (char *)&on, sizeof(on)); #ifdef SO_SNDBUF if (setsockopt(sndsock, SOL_SOCKET, SO_SNDBUF, (char *)&datalen, sizeof(datalen)) < 0) -- cgit v1.2.3