From owner-freebsd-hackers Thu Jul 29 8:40:35 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 0C79E14C8F for ; Thu, 29 Jul 1999 08:40:26 -0700 (PDT) (envelope-from eT@KryptoKom.DE) Received: (from root@localhost) by Thingol.KryptoKom.DE (8.9.1/8.9.1) id TAA06032 for ; Thu, 29 Jul 1999 19:39:54 +0200 Received: from cirdan.kryptokom.de by KryptoWall via smtpp (Version 1.2.0) id kwa06026; Thu Jul 29 19:39:31 1999 Received: from borg.kryptokom.de (borg.Kryptokom.DE [192.168.6.132]) by Cirdan.KryptoKom.DE (8.8.8/8.8.8) with ESMTP id RAA16355 for ; Thu, 29 Jul 1999 17:45:58 +0200 Received: from kryptokom.de (localhost [127.0.0.1]) by borg.kryptokom.de (8.8.8/8.8.8) with ESMTP id SAA29642 for ; Thu, 29 Jul 1999 18:07:54 +0200 (CEST) (envelope-from eT@kryptokom.de) Message-ID: <37A07C58.D7E97962@kryptokom.de> Date: Thu, 29 Jul 1999 18:07:53 +0200 From: eT X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 3.0-19980804-SNAP i386) X-Accept-Language: en MIME-Version: 1.0 To: Hackers FreeBSD Subject: Changing Interface IP address Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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). 2. Which structure and which member should I write the new information to (ifaddr?)? Thanks To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message