Date: Fri, 30 Jul 1999 01:28:08 -0700 From: Mike Smith <mike@smith.net.au> To: eT <eT@post.com> Cc: Mike Smith <mike@smith.net.au>, Hackers FreeBSD <hackers@freebsd.org> Subject: Re: Changing Interface IP address Message-ID: <199907300828.BAA01520@dingo.cdrom.com> In-Reply-To: Your message of "Fri, 30 Jul 1999 10:30:18 %2B0200." <37A1629A.7C7AF32F@post.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> Mike Smith wrote: > > > > I would like to change the IP address (netmask, gateway etc.) of an Interface > > > (eg. fxp0) from within my C source code. > > > > > > 1. Is this possible to do without the SIOC ioctl call? (i am already in the > > > kernel). > > > > Make the call from within the kernel. > > But I was under the impression that I can't do ioctl calls in the kernel? Which call > should I then make from within the kernel? The current BSD kernel architecture does not well handle ABI calls from within kernel space, no. You will probably have to duplicate the code that handles the SIOC[AD]IFADDR in netinet/in.c in your module. -- \\ The mind's the standard \\ Mike Smith \\ of the man. \\ msmith@freebsd.org \\ -- Joseph Merrick \\ msmith@cdrom.com 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?199907300828.BAA01520>