diff options
| author | Marko Zec <zec@FreeBSD.org> | 2009-05-31 12:10:04 +0000 |
|---|---|---|
| committer | Marko Zec <zec@FreeBSD.org> | 2009-05-31 12:10:04 +0000 |
| commit | feb08d06b96efe8c04c604de3ad591f103ae83b0 (patch) | |
| tree | 6885e54172e0694f4186029864fdc53c37aa9631 /sys/net/if.c | |
| parent | 38a18e9760bdfd0d0b56bac1c26e3582f66bb011 (diff) | |
Notes
Diffstat (limited to 'sys/net/if.c')
| -rw-r--r-- | sys/net/if.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index 7248768439c1..4d4befc2735d 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -2283,6 +2283,21 @@ ifioctl(struct socket *so, u_long cmd, caddr_t data, struct thread *td) ifr = (struct ifreq *)data; switch (cmd) { +#ifdef VIMAGE + /* + * XXX vnet creation will be implemented through the new jail + * framework - this is just a temporary hack for testing the + * vnet create / destroy mechanisms. + */ + case SIOCSIFVIMAGE: + error = vi_if_move((struct vi_req *) data, NULL, + TD_TO_VIMAGE(td)); + return (error); + case SIOCSPVIMAGE: + case SIOCGPVIMAGE: + error = vi_td_ioctl(cmd, (struct vi_req *) data, td); + return (error); +#endif case SIOCIFCREATE: case SIOCIFCREATE2: error = priv_check(td, PRIV_NET_IFCREATE); |
