Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jan 2001 23:50:01 -0800
From:      Julian Elischer <julian@elischer.org>
To:        "Geoffrey Crompton (RMIT Guest)" <ghcrompton@gecko.eric.net.au>
Cc:        freebsd-net@freebsd.org
Subject:   Re: pseudo interface and ioctls
Message-ID:  <3A791528.BC4593E2@elischer.org>
References:  <20010201103716.A23667@gecko.eric.net.au>

next in thread | previous in thread | raw e-mail | index | archive | help
"Geoffrey Crompton (RMIT Guest)" wrote:

why are you doing this?
there are already 4 pseudo interfaces in the system of varying types..

netgraph(2 types), divert, tap, tun.

what do you need to do?


> 
>   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

-- 
      __--_|\  Julian Elischer
     /       \ julian@elischer.org
    (   OZ    ) World tour 2000-2001
---> X_.---._/  
            v


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?3A791528.BC4593E2>