From owner-freebsd-questions@FreeBSD.ORG Thu Jul 21 08:10:22 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1E6AF1065674 for ; Thu, 21 Jul 2011 08:10:22 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id A7AEA8FC0C for ; Thu, 21 Jul 2011 08:10:21 +0000 (UTC) Received: by wyg24 with SMTP id 24so882852wyg.13 for ; Thu, 21 Jul 2011 01:10:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Mr9yArcRWCJDaPdb1DGzV9GKQoepqEauGwBUsOuTmpQ=; b=TfCbIoI/OiNnyHTWfeSHI1egPxkw53zjjSTYFeJzC0SshiHBa9WRDhWbuqerOP63NE C612JkPTyQVWh6AYj1zmFfEjEcIDhJ3MTg7G6fwOyQ7DWakGUlzSsxWjhnTAuIswgDMt dqbtU/asGacqhurqbZRcXMk/nlHSFyRrNzmvw= MIME-Version: 1.0 Received: by 10.216.211.13 with SMTP id v13mr8051025weo.98.1311235820521; Thu, 21 Jul 2011 01:10:20 -0700 (PDT) Received: by 10.216.90.211 with HTTP; Thu, 21 Jul 2011 01:10:20 -0700 (PDT) In-Reply-To: References: Date: Thu, 21 Jul 2011 04:10:20 -0400 Message-ID: From: Aryeh Friedman To: FreeBSD Mailing List Content-Type: text/plain; charset=ISO-8859-1 Subject: Fwd: best way to force a single packet to be sent via a specific interface X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2011 08:10:22 -0000 ---------- Forwarded message ---------- From: Aryeh Friedman Date: Thu, Jul 21, 2011 at 4:00 AM Subject: best way to force a single packet to be sent via a specific interface To: FreeBSD Mailing List I have both ethernet (the default route and such) and ppp done via "ppp -ddial" the man page for ppp(8) says tun0 will not have an IP assigned until a single packet is sent on it... what is the best way to have one packet sent on it (ping only always ifaces on multicast, traceroute seems to have no way to say exit after the first hop and/or after one packet is sent, tcpdump refuses a "-c 0" arg saying it is illegal)