1*39a10a70Syamaguchi /* $NetBSD: ether_slowprotocols.h,v 1.1 2021/11/30 01:17:02 yamaguchi Exp $ */ 2*39a10a70Syamaguchi 3*39a10a70Syamaguchi /*- 4*39a10a70Syamaguchi * Copyright (c)2005 YAMAMOTO Takashi, 5*39a10a70Syamaguchi * All rights reserved. 6*39a10a70Syamaguchi * 7*39a10a70Syamaguchi * Redistribution and use in source and binary forms, with or without 8*39a10a70Syamaguchi * modification, are permitted provided that the following conditions 9*39a10a70Syamaguchi * are met: 10*39a10a70Syamaguchi * 1. Redistributions of source code must retain the above copyright 11*39a10a70Syamaguchi * notice, this list of conditions and the following disclaimer. 12*39a10a70Syamaguchi * 2. Redistributions in binary form must reproduce the above copyright 13*39a10a70Syamaguchi * notice, this list of conditions and the following disclaimer in the 14*39a10a70Syamaguchi * documentation and/or other materials provided with the distribution. 15*39a10a70Syamaguchi * 16*39a10a70Syamaguchi * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17*39a10a70Syamaguchi * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18*39a10a70Syamaguchi * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19*39a10a70Syamaguchi * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20*39a10a70Syamaguchi * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21*39a10a70Syamaguchi * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22*39a10a70Syamaguchi * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23*39a10a70Syamaguchi * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24*39a10a70Syamaguchi * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25*39a10a70Syamaguchi * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26*39a10a70Syamaguchi * SUCH DAMAGE. 27*39a10a70Syamaguchi */ 28*39a10a70Syamaguchi 29*39a10a70Syamaguchi #ifndef _NET_ETHER_SLOWPROTOCOLS_H_ 30*39a10a70Syamaguchi #define _NET_ETHER_SLOWPROTOCOLS_H_ 31*39a10a70Syamaguchi 32*39a10a70Syamaguchi /* 33*39a10a70Syamaguchi * IEEE802.3 slow protocols 34*39a10a70Syamaguchi * 35*39a10a70Syamaguchi * protocol (on-wire) definitions. 36*39a10a70Syamaguchi */ 37*39a10a70Syamaguchi 38*39a10a70Syamaguchi #define SLOWPROTOCOLS_SUBTYPE_LACP 1 39*39a10a70Syamaguchi #define SLOWPROTOCOLS_SUBTYPE_MARKER 2 40*39a10a70Syamaguchi 41*39a10a70Syamaguchi struct slowprothdr { 42*39a10a70Syamaguchi uint8_t sph_subtype; 43*39a10a70Syamaguchi uint8_t sph_version; 44*39a10a70Syamaguchi } __packed; 45*39a10a70Syamaguchi 46*39a10a70Syamaguchi #endif /* !_NET_ETHER_SLOWPROTOCOLS_H_ */ 47