From owner-freebsd-net@FreeBSD.ORG Fri Oct 27 15:59:02 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B0EA516A407 for ; Fri, 27 Oct 2006 15:59:02 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from mrout2-b.corp.dcn.yahoo.com (mrout2-b.corp.dcn.yahoo.com [216.109.112.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id F398643D6E for ; Fri, 27 Oct 2006 15:59:00 +0000 (GMT) (envelope-from gnn@neville-neil.com) Received: from minion.local.neville-neil.com (proxy7.corp.yahoo.com [216.145.48.98]) by mrout2-b.corp.dcn.yahoo.com (8.13.6/8.13.6/y.out) with ESMTP id k9RFwk64012136; Fri, 27 Oct 2006 08:58:47 -0700 (PDT) Date: Fri, 27 Oct 2006 17:58:42 +0200 Message-ID: From: gnn@freebsd.org To: "Sam Wun" In-Reply-To: References: User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.0.50 (i386-apple-darwin8.7.1) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: freebsd-net@freebsd.org Subject: Re: check internet connection X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Oct 2006 15:59:02 -0000 At Fri, 27 Oct 2006 09:43:17 +1000, Sam Wun wrote: > > [1 ] > Hi, > > I want to write a C program to check freebsd's internet connection. > What s the best way to achieve this checking in layer 2 or 3 of the tcp/ip > stacks in freebsd? What do you want to check? There are many layers of connectivity. Later, George