Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Feb 2001 10:37:16 +1100
From:      "Geoffrey Crompton (RMIT Guest)" <ghcrompton@gecko.eric.net.au>
To:        freebsd-net@freebsd.org
Subject:   pseudo interface and ioctls
Message-ID:  <20010201103716.A23667@gecko.eric.net.au>

next in thread | raw e-mail | index | archive | help
  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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010201103716.A23667>