ifconfig.h revision 44764
155682Smarkm/* 2233294Sstas * Copyright (c) 1997 Peter Wemm. 3233294Sstas * All rights reserved. 4233294Sstas * 555682Smarkm * Redistribution and use in source and binary forms, with or without 6233294Sstas * modification, are permitted provided that the following conditions 7233294Sstas * are met: 8233294Sstas * 1. Redistributions of source code must retain the above copyright 955682Smarkm * notice, this list of conditions and the following disclaimer. 10233294Sstas * 2. Redistributions in binary form must reproduce the above copyright 11233294Sstas * notice, this list of conditions and the following disclaimer in the 1255682Smarkm * documentation and/or other materials provided with the distribution. 13233294Sstas * 3. All advertising materials mentioning features or use of this software 14233294Sstas * must display the following acknowledgement: 15233294Sstas * This product includes software developed for the FreeBSD Project 1655682Smarkm * by Peter Wemm. 17233294Sstas * 4. The name of the author may not be used to endorse or promote products 18233294Sstas * derived from this software without specific prior written permission. 19233294Sstas * 2055682Smarkm * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 21233294Sstas * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 22233294Sstas * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 23233294Sstas * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 24233294Sstas * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 25233294Sstas * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 26233294Sstas * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 27233294Sstas * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 28233294Sstas * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29233294Sstas * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30233294Sstas * SUCH DAMAGE. 31233294Sstas * 3255682Smarkm * so there! 3355682Smarkm * 3455682Smarkm * $Id: ifconfig.h,v 1.3 1997/05/10 17:14:53 peter Exp $ 3572445Sassar */ 3655682Smarkm 3755682Smarkmextern struct ifreq ifr; 3855682Smarkm 3955682Smarkmextern char name[32]; /* name of interface */ 4055682Smarkmextern int allmedia; 41233294Sstasstruct afswtch; 4255682Smarkm 4355682Smarkmextern void setmedia(const char *, int, int, const struct afswtch *rafp); 4455682Smarkmextern void setmediaopt(const char *, int, int, const struct afswtch *rafp); 4555682Smarkmextern void unsetmediaopt(const char *, int, int, const struct afswtch *rafp); 4655682Smarkmextern void media_status(int s, struct rt_addrinfo *); 4778527Sassar 48233294Sstasextern void setvlantag(const char *, int, int, const struct afswtch *rafp); 49233294Sstasextern void setvlandev(const char *, int, int, const struct afswtch *rafp); 5055682Smarkmextern void unsetvlandev(const char *, int, int, const struct afswtch *rafp); 5178527Sassarextern void vlan_status(int s, struct rt_addrinfo *); 5255682Smarkm