1129759Sbrooks/* 2129759Sbrooks * Copyright 2004 The Aerospace Corporation. All rights reserved. 3129759Sbrooks * 4129759Sbrooks * Redistribution and use in source and binary forms, with or without 5129759Sbrooks * modification, are permitted provided that the following conditions 6129759Sbrooks * are met: 7129759Sbrooks * 8129759Sbrooks * 1. Redistributions of source code must retain the above copyright 9129759Sbrooks * notice, this list of conditions, and the following disclaimer. 10129759Sbrooks * 2. Redistributions in binary form must reproduce the above copyright 11129759Sbrooks * notice, this list of conditions, and the following disclaimer in the 12129759Sbrooks * documentation and/or other materials provided with the distribution. 13129759Sbrooks * 3. The name of The Aerospace Corporation may not be used to endorse or 14129759Sbrooks * promote products derived from this software. 15129759Sbrooks * 16129759Sbrooks * THIS SOFTWARE IS PROVIDED BY THE AEROSPACE CORPORATION "AS IS" AND 17129759Sbrooks * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18129759Sbrooks * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19129759Sbrooks * ARE DISCLAIMED. IN NO EVENT SHALL THE AEROSPACE CORPORATION BE LIABLE 20129759Sbrooks * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21129759Sbrooks * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22129759Sbrooks * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23129759Sbrooks * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24129759Sbrooks * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25129759Sbrooks * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26129759Sbrooks * SUCH DAMAGE. 27129759Sbrooks * 28129759Sbrooks * $FreeBSD: releng/11.0/lib/libc/tests/net/test-eui64.h 290563 2015-11-08 23:06:40Z ngie $ 29129759Sbrooks */ 30129759Sbrooks#ifndef _TEST_EUI64_H 31129759Sbrooks#define _TEST_EUI64_H 32129759Sbrooks 33129759Sbrooksstruct eui64 test_eui64_id = {{0x00,0x11,0x22,0x33,0x44,0x55,0x66,0x77}}; 34129759Sbrooksstruct eui64 test_eui64_eui48 = {{0x00,0x11,0x22,0xFF,0xFE,0x33,0x44,0x55}}; 35129759Sbrooksstruct eui64 test_eui64_mac48 = {{0x00,0x11,0x22,0xFF,0xFF,0x33,0x44,0x55}}; 36129759Sbrooks 37129759Sbrooks#define test_eui64_id_ascii "00-11-22-33-44-55-66-77" 38129759Sbrooks#define test_eui64_id_colon_ascii "00:11:22:33:44:55:66:77" 39129759Sbrooks#define test_eui64_hex_ascii "0x0011223344556677" 40129759Sbrooks#define test_eui64_eui48_ascii "00-11-22-ff-fe-33-44-55" 41129759Sbrooks#define test_eui64_mac48_ascii "00-11-22-ff-fe-33-44-55" 42129759Sbrooks#define test_eui64_mac_ascii "00-11-22-33-44-55" 43129759Sbrooks#define test_eui64_mac_colon_ascii "00:11:22:33:44:55" 44129759Sbrooks#define test_eui64_id_host "id" 45129759Sbrooks#define test_eui64_eui48_host "eui-48" 46129759Sbrooks#define test_eui64_mac48_host "mac-48" 47129759Sbrooks 48129759Sbrooks#define test_eui64_line_id "00-11-22-33-44-55-66-77 id" 49129759Sbrooks#define test_eui64_line_id_colon "00:11:22:33:44:55:66:77 id" 50129759Sbrooks#define test_eui64_line_eui48 "00-11-22-FF-fe-33-44-55 eui-48" 51129759Sbrooks#define test_eui64_line_mac48 "00-11-22-FF-ff-33-44-55 mac-48" 52129759Sbrooks#define test_eui64_line_eui48_6byte "00-11-22-33-44-55 eui-48" 53129759Sbrooks#define test_eui64_line_eui48_6byte_c "00:11:22:33:44:55 eui-48" 54129759Sbrooks 55129759Sbrooks#endif /* !_TEST_EUI64_H */ 56