From owner-freebsd-net@FreeBSD.ORG Thu Feb 26 09:22:46 2004 Return-Path: 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 06D7A16A4CE for ; Thu, 26 Feb 2004 09:22:46 -0800 (PST) Received: from nord.interexc.com (nord.interexc.com [193.108.123.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01B1643D2F for ; Thu, 26 Feb 2004 09:22:45 -0800 (PST) (envelope-from nick@nord.interexc.com) Received: from nord.interexc.com (localhost.interexc.com [127.0.0.1]) by nord.interexc.com (8.12.10/8.12.10) with ESMTP id i1QHMe8b034769 for ; Thu, 26 Feb 2004 19:22:40 +0200 (EET) (envelope-from nick@nord.interexc.com) Received: (from nick@localhost) by nord.interexc.com (8.12.10/8.12.10/Submit) id i1QHMecH034768 for net@freebsd.org; Thu, 26 Feb 2004 19:22:40 +0200 (EET) (envelope-from nick) Date: Thu, 26 Feb 2004 19:22:39 +0200 From: Nick Strebkov To: net@freebsd.org Message-ID: <20040226172239.GA34508@nord.interexc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-u Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 5.2.1-RELEASE X-Real-Name: =?koi8-u?B?89TSxcLLz9cgSMnLz8zByiDhzsHU?= =?koi8-u?B?z8zYxdfJ3g==?= Subject: rtp jitter control X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2004 17:22:46 -0000 Hi, I have a kernel-level RTP-poxy and now I need to control a jitter of incoming RTP stream by caching the last incoming RTP packet and sending it in case when the next packet is missed or delayed. RTP-proxy realized as kld module + kernel patch that modify ip_input.c. Patch adds a hook that process all IPv4 unicast UDP packets. In "my" packets it change the dest address and call ip_forward() with source routing simulation. My solution for task above is to start kernel-level process by kthread(9) and make buffering for all "my" packets with real sending it from the started kthread. Here I have three questions: 1. Is this solution posiible? 2. Do I need some special steps to send a cached packet from my kthread? 3. How to "lose" packet in ip_input()? Thanks. -- Nick Strebkov Public key: http://humgat.org/~nick/pubkey.txt fpr: 552C 88D6 895B 6E64 F277 D367 8A70 8132 47F5 C1B6