From owner-freebsd-hackers Sat Jul 28 13:21:25 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.dis.org (sat.dis.org [216.240.44.14]) by hub.freebsd.org (Postfix) with ESMTP id A50BD37B405 for ; Sat, 28 Jul 2001 13:21:21 -0700 (PDT) (envelope-from msmith@mass.dis.org) Received: from mass.dis.org (localhost [127.0.0.1]) by mass.dis.org (8.11.4/8.11.3) with ESMTP id f6SKMhJ01990; Sat, 28 Jul 2001 13:22:45 -0700 (PDT) (envelope-from msmith@mass.dis.org) Message-Id: <200107282022.f6SKMhJ01990@mass.dis.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: "Anjali Kulkarni" Cc: freebsd-hackers@freebsd.org Subject: Re: inet_aton In-reply-to: Your message of "Sat, 28 Jul 2001 11:17:42 +0530." <002d01c11728$d34723b0$0a00a8c0@indranet> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 28 Jul 2001 13:22:43 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > I want to use the function inet_aton() in the kernel code. However, I = > found no kernel equivalent of this function int the freebsd sources. I = > could find inet_ntoa(), but not inet_aton(). Is it named by some other = > name or how can I locate it? If you are trying to parse an ascii internet address in the kernel, you're quite possibly making a bad design mistake - why is it still in text format? If you're passing it in from another program, you should be passing a sockaddr struct. Failing that, you'll just have to steal the code from libc and bring it in yourself. -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message