From owner-freebsd-net Wed Jan 31 15:32:59 2001 Delivered-To: freebsd-net@freebsd.org Received: from gecko.eric.net.au (gecko.eric.net.au [203.102.228.3]) by hub.freebsd.org (Postfix) with ESMTP id 3161237B491 for ; Wed, 31 Jan 2001 15:32:42 -0800 (PST) Received: (from ghcrompton@localhost) by gecko.eric.net.au (8.9.3/8.8.7) id KAA23707 for freebsd-net@freebsd.org; Thu, 1 Feb 2001 10:37:16 +1100 Date: Thu, 1 Feb 2001 10:37:16 +1100 From: "Geoffrey Crompton (RMIT Guest)" To: freebsd-net@freebsd.org Subject: pseudo interface and ioctls Message-ID: <20010201103716.A23667@gecko.eric.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3us Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I'm trying to write a pseudo interface, but I'm confused about my responsibilities for the _ioctl() command. It seems that for the assigning of an address, I simply need to return 0 to indicate that address family is ok, as the higher level functions handle the actuall assignment of addresses. Is this true? Do I need to do anything else, such as installing routes into the routing table (if I don't want the user to have to run route commands for it). Is my interface responsible for any other SIOC's, or can it safely return EINVAL or 0 for SIOC's it doesn't recognize? (Apart from any SIOC's that I custom define of course) Thanks Geoff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message