Date: Sat, 28 Jul 2001 13:22:43 -0700 From: Mike Smith <msmith@freebsd.org> To: "Anjali Kulkarni" <anjali@indranetworks.com> Cc: freebsd-hackers@freebsd.org Subject: Re: inet_aton Message-ID: <200107282022.f6SKMhJ01990@mass.dis.org> In-Reply-To: Your message of "Sat, 28 Jul 2001 11:17:42 %2B0530." <002d01c11728$d34723b0$0a00a8c0@indranet>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107282022.f6SKMhJ01990>