From owner-freebsd-hackers Fri Jul 30 1:25:47 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from Thingol.KryptoKom.DE (Thingol.KryptoKom.DE [194.245.91.1]) by hub.freebsd.org (Postfix) with ESMTP id AB86D15125 for ; Fri, 30 Jul 1999 01:25:33 -0700 (PDT) (envelope-from eT@post.com) Received: (from root@localhost) by Thingol.KryptoKom.DE (8.9.1/8.9.1) id MAA12204; Fri, 30 Jul 1999 12:24:17 +0200 Received: from cirdan.kryptokom.de by KryptoWall via smtpp (Version 1.2.0) id kwa12196; Fri Jul 30 12:24:04 1999 Received: from fwd.kryptokom.de ([192.168.6.40]) by Cirdan.KryptoKom.DE (8.8.8/8.8.8) with ESMTP id KAA22806; Fri, 30 Jul 1999 10:30:33 +0200 Received: from post.com (localhost [127.0.0.1]) by fwd.kryptokom.de (8.9.2/8.9.2) with ESMTP id KAA02916; Fri, 30 Jul 1999 10:30:20 +0200 (CEST) (envelope-from eT@post.com) Message-ID: <37A1629A.7C7AF32F@post.com> Date: Fri, 30 Jul 1999 10:30:18 +0200 From: eT X-Mailer: Mozilla 4.6 [en] (X11; I; FreeBSD 3.1-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Mike Smith Cc: Hackers FreeBSD Subject: Re: Changing Interface IP address References: <199907300749.AAA01140@dingo.cdrom.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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? Thanks for the Help To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message