From owner-freebsd-net Tue Jun 19 3:29: 5 2001 Delivered-To: freebsd-net@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id EC1BE37B403 for ; Tue, 19 Jun 2001 03:28:58 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f5JASY532110; Tue, 19 Jun 2001 13:28:34 +0300 (EEST) (envelope-from ru) Date: Tue, 19 Jun 2001 13:28:34 +0300 From: Ruslan Ermilov To: raviprasad20@netscape.net Cc: net@FreeBSD.org Subject: Re: Route command Message-ID: <20010619132834.B29608@sunbay.com> Mail-Followup-To: raviprasad20@netscape.net, net@FreeBSD.org References: <4A556EC3.7AE53828.9513E96F@netscape.net> <20010619122426.D5368@sunbay.com> <523FD471.1174D73E.9513E96F@netscape.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <523FD471.1174D73E.9513E96F@netscape.net>; from raviprasad20@netscape.net on Tue, Jun 19, 2001 at 06:13:23AM -0400 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Jun 19, 2001 at 06:13:23AM -0400, raviprasad20@netscape.net wrote: > Hi, > Iam not clear about your point. > All my queries are withrespect to the file /usr/src/sbin/route/route.c. > > The "route" command main() open a routing socket. All the user > requests are stored in are stored in the structure rt_msghdr. Then > the function rtmsg()writes to the routing socket. Later the same > function reads from the same socket to display messages to the user about the result of the command. > > My doubt is who is reading this information that he writes to the > routing socket & updating the kernel routing table. Whether the > routed daemon? > This is from the route(4) manpage: : Any messages sent to the kernel are returned, and copies are sent to all : interested listeners. The kernel will provide the process ID for the : sender, and the sender may use an additional sequence field to distin- : guish between outstanding messages. And yes, routing daemon (if running) will receive these messages. Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message