173006Sjulian/*
273006Sjulian * ng_eiface.h
3139823Simp */
4139823Simp
5139823Simp/*-
673006Sjulian * Copyright (c) 1999-2001, Vitaly V Belekhov
773006Sjulian * All rights reserved.
873006Sjulian *
973006Sjulian * Redistribution and use in source and binary forms, with or without
1073006Sjulian * modification, are permitted provided that the following conditions
1173006Sjulian * are met:
1273006Sjulian * 1. Redistributions of source code must retain the above copyright
1373006Sjulian *    notice unmodified, this list of conditions, and the following
1473006Sjulian *    disclaimer.
1573006Sjulian * 2. Redistributions in binary form must reproduce the above copyright
1673006Sjulian *    notice, this list of conditions and the following disclaimer in the
1773006Sjulian *    documentation and/or other materials provided with the distribution.
1873006Sjulian *
1973006Sjulian * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
2073006Sjulian * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2173006Sjulian * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2273006Sjulian * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
2373006Sjulian * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2473006Sjulian * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2573006Sjulian * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2673006Sjulian * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2773006Sjulian * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2873006Sjulian * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2973006Sjulian * SUCH DAMAGE.
3073006Sjulian *
31141140Sru * $FreeBSD$
3273006Sjulian */
3373006Sjulian
34122481Sru#ifndef _NETGRAPH_NG_EIFACE_H_
35122481Sru#define _NETGRAPH_NG_EIFACE_H_
3673006Sjulian
3773006Sjulian/* Node type name and magic cookie */
3873006Sjulian#define NG_EIFACE_NODE_TYPE		"eiface"
3973006Sjulian#define NGM_EIFACE_COOKIE		948105892
4073006Sjulian
4173006Sjulian/* Interface base name */
42122488Sru#define NG_EIFACE_EIFACE_NAME		"ngeth"
4373006Sjulian
4473006Sjulian/* My hook names */
4573006Sjulian#define NG_EIFACE_HOOK_ETHER		"ether"
4673006Sjulian
4773006Sjulian/* MTU bounds */
4873006Sjulian#define NG_EIFACE_MTU_MIN		72
49215673Szec#define NG_EIFACE_MTU_MAX		ETHER_MAX_LEN_JUMBO
5073006Sjulian#define NG_EIFACE_MTU_DEFAULT		1500
5173006Sjulian
5273006Sjulian/* Netgraph commands */
5373006Sjulianenum {
54141193Sru	NGM_EIFACE_GET_IFNAME = 1,	/* get the interface name */
5573006Sjulian	NGM_EIFACE_GET_IFADDRS,		/* returns list of addresses */
5673006Sjulian	NGM_EIFACE_SET,			/* set ethernet address */
5773006Sjulian};
5873006Sjulian
59122481Sru#endif /* _NETGRAPH_NG_EIFACE_H_ */
60