ifconfig.h revision 50476
1198160Srrs/* 2198160Srrs * Copyright (c) 1997 Peter Wemm. 3198160Srrs * All rights reserved. 4198160Srrs * 5198160Srrs * Redistribution and use in source and binary forms, with or without 6198160Srrs * modification, are permitted provided that the following conditions 7198160Srrs * are met: 8198160Srrs * 1. Redistributions of source code must retain the above copyright 9198160Srrs * notice, this list of conditions and the following disclaimer. 10198160Srrs * 2. Redistributions in binary form must reproduce the above copyright 11198160Srrs * notice, this list of conditions and the following disclaimer in the 12198160Srrs * documentation and/or other materials provided with the distribution. 13198160Srrs * 3. All advertising materials mentioning features or use of this software 14198160Srrs * must display the following acknowledgement: 15198160Srrs * This product includes software developed for the FreeBSD Project 16198160Srrs * by Peter Wemm. 17198160Srrs * 4. The name of the author may not be used to endorse or promote products 18198160Srrs * derived from this software without specific prior written permission. 19198160Srrs * 20198160Srrs * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 21198160Srrs * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 22198160Srrs * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 23198160Srrs * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 24198160Srrs * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 25198160Srrs * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 26198160Srrs * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 27198160Srrs * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 28198160Srrs * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29209318Sjchandra * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30209318Sjchandra * SUCH DAMAGE. 31209318Sjchandra * 32198160Srrs * so there! 33213199Sjchandra * 34198160Srrs * $FreeBSD: head/sbin/ifconfig/ifconfig.h 50476 1999-08-28 00:22:10Z peter $ 35209318Sjchandra */ 36209318Sjchandra 37209318Sjchandraextern struct ifreq ifr; 38209318Sjchandra 39213199Sjchandraextern char name[32]; /* name of interface */ 40213199Sjchandraextern int allmedia; 41213199Sjchandrastruct afswtch; 42213199Sjchandra 43213199Sjchandraextern void setmedia(const char *, int, int, const struct afswtch *rafp); 44213199Sjchandraextern void setmediaopt(const char *, int, int, const struct afswtch *rafp); 45213199Sjchandraextern void unsetmediaopt(const char *, int, int, const struct afswtch *rafp); 46213199Sjchandraextern void media_status(int s, struct rt_addrinfo *); 47213199Sjchandra 48213199Sjchandraextern void setvlantag(const char *, int, int, const struct afswtch *rafp); 49198160Srrsextern void setvlandev(const char *, int, int, const struct afswtch *rafp); 50209318Sjchandraextern void unsetvlandev(const char *, int, int, const struct afswtch *rafp); 51209318Sjchandraextern void vlan_status(int s, struct rt_addrinfo *); 52209318Sjchandra