From owner-p4-projects@FreeBSD.ORG Fri May 2 22:11:23 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 6F0FC1065672; Fri, 2 May 2008 22:11:23 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 315FF1065674 for ; Fri, 2 May 2008 22:11:23 +0000 (UTC) (envelope-from andre@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 1B0CA8FC19 for ; Fri, 2 May 2008 22:11:23 +0000 (UTC) (envelope-from andre@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m42MBNeI008709 for ; Fri, 2 May 2008 22:11:23 GMT (envelope-from andre@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m42MBMdj008707 for perforce@freebsd.org; Fri, 2 May 2008 22:11:22 GMT (envelope-from andre@freebsd.org) Date: Fri, 2 May 2008 22:11:22 GMT Message-Id: <200805022211.m42MBMdj008707@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to andre@freebsd.org using -f From: Andre Oppermann To: Perforce Change Reviews Cc: Subject: PERFORCE change 141066 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 May 2008 22:11:23 -0000 http://perforce.freebsd.org/chv.cgi?CH=141066 Change 141066 by andre@andre_flirtbox on 2008/05/02 22:10:30 Add logging of failures to tcp_ouput(). Affected files ... .. //depot/projects/tcp_reass/netinet/tcp_output.c#6 edit Differences ... ==== //depot/projects/tcp_reass/netinet/tcp_output.c#6 (text+ko) ==== @@ -49,6 +49,7 @@ #include #include #include +#include #include @@ -131,7 +132,7 @@ struct mbuf *m; struct ip *ip = NULL; struct ipovly *ipov = NULL; - struct tcphdr *th; + struct tcphdr *th = NULL; u_char opt[TCP_MAXOLEN]; unsigned ipoptlen, optlen, hdrlen; #ifdef IPSEC @@ -142,6 +143,7 @@ struct sackhole *p; int tso = 0; struct tcpopt to; + char *s; #if 0 int maxburst = TCP_MAXBURST; #endif @@ -1164,6 +1166,13 @@ } out: SOCKBUF_UNLOCK_ASSERT(&so->so_snd); /* Check gotos. */ + + if ((s = tcp_log_addrs(&tp->t_inpcb->inp_inc, NULL, NULL, NULL))) { + log(LOG_DEBUG, "%s; %s: error %i while sending\n", + s, __func__, error); + free(s, M_TCPLOG); + } + switch (error) { case EPERM: tp->t_softerror = error;