From owner-freebsd-net@freebsd.org Wed Apr 20 19:29:54 2016 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A703DB15665 for ; Wed, 20 Apr 2016 19:29:54 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: from mail-pf0-x233.google.com (mail-pf0-x233.google.com [IPv6:2607:f8b0:400e:c00::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7A51D114B for ; Wed, 20 Apr 2016 19:29:54 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: by mail-pf0-x233.google.com with SMTP id e128so21161737pfe.3 for ; Wed, 20 Apr 2016 12:29:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=H/HLJ04WA67/e9/aAm7fKAN5ratMCadOfJrGyed+Nb4=; b=oP2D1WdZinE0WNP+wkxqMmQ859eHJ3D6BUYR/1CqvpT5zATUFhxk+HcHCrPFGORt2W bLuVc+NTLS6iD9grf+RUg/GHi2EvfhtfF9+xvV9GfOWkkfkPNVypoLitP59m73AgpJju N8DHQqU+S7UJL0jBspvpNFpbG3GFF7jbuq9xhN+ZrvUiQZ2IMcZ+mzmfBqT8bLWje0Cr j9Lb/YdqSz0zpbEMZC6p32+4ED72qc9vk+ZDe98b7dvFJWqlWigcV3KR9bxY6ddKQxey +0anfukzekVmvj2GZexhplsIiTcnrDRgsVliUZEE08x/MrJmQllUzkd1EofcwDoWt7bJ 0eYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=H/HLJ04WA67/e9/aAm7fKAN5ratMCadOfJrGyed+Nb4=; b=K5FlIzZOS2Fct3c0/YpPbmJHd018VLoDu/umhyGtuEW4Ehqh7OvwFgBsq1BEpdx7Us K9Sj/mFDf5QlOWj0GD9YwUWs0salszdfhmvkQNH3FzKmPPCGrcGGijsMnWHXHENlsf+H 7zYxKQTwDIuctUNGu4a3ZTedhAJfEsVXdo5xC0x1tJ9tSHhZcrmUoDnF4bPL3ocXSs5/ t+hFqbzoosxf1KrW/faNh1yyXQJ/cB4xM3lN46UTkCKVY0EmT1jkWrb6+KfAvvYC4o5o zquNQ3cUq0RSA2M1qClehRKTXK0NlEn51zvJk0J2VMYUz7Zt1Nm5IDYUQ/zVQ/juSj4G VZ5g== X-Gm-Message-State: AOPr4FVHO78hb3SROE6AyGG29ObeUmMgJH0kWuZNmLTOGtVoSDCWSaPBonPzrf04CkDBsg== X-Received: by 10.98.102.195 with SMTP id s64mr14862666pfj.89.1461180593878; Wed, 20 Apr 2016 12:29:53 -0700 (PDT) Received: from [10.192.166.0] (stargate.chelsio.com. [12.32.117.8]) by smtp.googlemail.com with ESMTPSA id 88sm100179282pfj.20.2016.04.20.12.29.52 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 20 Apr 2016 12:29:52 -0700 (PDT) Subject: Re: Tracing dropped UDP packets To: bazzoola , freebsd-net@freebsd.org References: <5711CFF1.60708@gmail.com> From: Navdeep Parhar Message-ID: <1c18eb03-7520-7653-275c-073305203213@gmail.com> Date: Wed, 20 Apr 2016 12:29:51 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <5711CFF1.60708@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2016 19:29:54 -0000 On 04/15/2016 22:38, bazzoola wrote: > Greetings, > > I would like to know where (in the kernel) UDP packets are dropped. Have you tried netstat -sp udp ? If the drops show up in some counter there then you can look at the kernel code to see where the counter is incremented. Regards, Navdeep > > I looked at udp_usrreq.c but is overwhelming for the 1st time. Is it > possible to use DTrace to locate where the packets are being dropped? or > is there a tool similar to 'dropwatch' which can tell me where in the > kernel my packets are getting dropped? > > On Linux, I used dropwatch and they were dropped packets were at > udp_queue_rcv_skb(). > > Thanks! > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >