From owner-svn-src-all@FreeBSD.ORG Wed Jun 10 10:39:42 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 289BF106564A; Wed, 10 Jun 2009 10:39:42 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 176088FC12; Wed, 10 Jun 2009 10:39:42 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n5AAdfIs010391; Wed, 10 Jun 2009 10:39:41 GMT (envelope-from bz@svn.freebsd.org) Received: (from bz@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n5AAdfFQ010390; Wed, 10 Jun 2009 10:39:41 GMT (envelope-from bz@svn.freebsd.org) Message-Id: <200906101039.n5AAdfFQ010390@svn.freebsd.org> From: "Bjoern A. Zeeb" Date: Wed, 10 Jun 2009 10:39:41 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r193895 - head/sys/netinet X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jun 2009 10:39:42 -0000 Author: bz Date: Wed Jun 10 10:39:41 2009 New Revision: 193895 URL: http://svn.freebsd.org/changeset/base/193895 Log: Remove the "The option TCPDEBUG requires option INET." requirement. In case of !INET we will not have a timestamp on the trace for now but that might only affect spx debugging as long as INET6 requires INET. Reviewed by: rwatson (earlier version) Modified: head/sys/netinet/tcp_debug.c Modified: head/sys/netinet/tcp_debug.c ============================================================================== --- head/sys/netinet/tcp_debug.c Wed Jun 10 10:34:59 2009 (r193894) +++ head/sys/netinet/tcp_debug.c Wed Jun 10 10:39:41 2009 (r193895) @@ -37,10 +37,6 @@ __FBSDID("$FreeBSD$"); #include "opt_inet6.h" #include "opt_tcpdebug.h" -#ifndef INET -#error The option TCPDEBUG requires option INET. -#endif - #ifdef TCPDEBUG /* load symbolic names */ #define PRUREQUESTS @@ -121,7 +117,9 @@ tcp_trace(short act, short ostate, struc (isipv6 != 0) ? AF_INET6 : #endif AF_INET; +#ifdef INET td->td_time = iptime(); +#endif td->td_act = act; td->td_ostate = ostate; td->td_tcb = (caddr_t)tp; @@ -129,9 +127,11 @@ tcp_trace(short act, short ostate, struc td->td_cb = *tp; if (ipgen != NULL) { switch (td->td_family) { +#ifdef INET case AF_INET: bcopy(ipgen, &td->td_ti.ti_i, sizeof(td->td_ti.ti_i)); break; +#endif #ifdef INET6 case AF_INET6: bcopy(ipgen, td->td_ip6buf, sizeof(td->td_ip6buf)); @@ -141,9 +141,11 @@ tcp_trace(short act, short ostate, struc } if (th != NULL) { switch (td->td_family) { +#ifdef INET case AF_INET: td->td_ti.ti_t = *th; break; +#endif #ifdef INET6 case AF_INET6: td->td_ti6.th = *th;