From owner-freebsd-hackers Fri Jul 30 1:33:22 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from dingo.cdrom.com (castles548.castles.com [208.214.165.112]) by hub.freebsd.org (Postfix) with ESMTP id 4B8B8150EF for ; Fri, 30 Jul 1999 01:33:19 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.9.3/8.8.8) with ESMTP id BAA01520; Fri, 30 Jul 1999 01:28:08 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Message-Id: <199907300828.BAA01520@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: eT Cc: Mike Smith , Hackers FreeBSD Subject: Re: Changing Interface IP address In-reply-to: Your message of "Fri, 30 Jul 1999 10:30:18 +0200." <37A1629A.7C7AF32F@post.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 30 Jul 1999 01:28:08 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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