/*1* ng_eiface.h2*/34/*-5* SPDX-License-Identifier: BSD-2-Clause6*7* Copyright (c) 1999-2001, Vitaly V Belekhov8* All rights reserved.9*10* Redistribution and use in source and binary forms, with or without11* modification, are permitted provided that the following conditions12* are met:13* 1. Redistributions of source code must retain the above copyright14* notice unmodified, this list of conditions, and the following15* disclaimer.16* 2. Redistributions in binary form must reproduce the above copyright17* notice, this list of conditions and the following disclaimer in the18* documentation and/or other materials provided with the distribution.19*20* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND21* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE22* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE23* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE24* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL25* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS26* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)27* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT28* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY29* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF30* SUCH DAMAGE.31*/3233#ifndef _NETGRAPH_NG_EIFACE_H_34#define _NETGRAPH_NG_EIFACE_H_3536/* Node type name and magic cookie */37#define NG_EIFACE_NODE_TYPE "eiface"38#define NGM_EIFACE_COOKIE 9481058923940/* Interface base name */41#define NG_EIFACE_EIFACE_NAME "ngeth"4243/* My hook names */44#define NG_EIFACE_HOOK_ETHER "ether"4546/* MTU bounds */47#define NG_EIFACE_MTU_MIN 7248#define NG_EIFACE_MTU_MAX ETHER_MAX_LEN_JUMBO49#define NG_EIFACE_MTU_DEFAULT 15005051/* Netgraph commands */52enum {53NGM_EIFACE_GET_IFNAME = 1, /* get the interface name */54NGM_EIFACE_GET_IFADDRS, /* returns list of addresses */55NGM_EIFACE_SET, /* set ethernet address */56};5758#endif /* _NETGRAPH_NG_EIFACE_H_ */596061