test-eui64.h revision 129759
1/* 2 * Copyright 2004 The Aerospace Corporation. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions, and the following disclaimer. 10 * 2. Redistributions in binary form must reproduce the above copyright 11 * notice, this list of conditions, and the following disclaimer in the 12 * documentation and/or other materials provided with the distribution. 13 * 3. The name of The Aerospace Corporation may not be used to endorse or 14 * promote products derived from this software. 15 * 16 * THIS SOFTWARE IS PROVIDED BY THE AEROSPACE CORPORATION "AS IS" AND 17 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19 * ARE DISCLAIMED. IN NO EVENT SHALL THE AEROSPACE CORPORATION BE LIABLE 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * 28 * $FreeBSD: head/tools/regression/lib/libc/net/test-eui64.h 129759 2004-05-26 22:58:06Z brooks $ 29 */ 30#ifndef _TEST_EUI64_H 31#define _TEST_EUI64_H 32 33struct eui64 test_eui64_id = {{0x00,0x11,0x22,0x33,0x44,0x55,0x66,0x77}}; 34struct eui64 test_eui64_eui48 = {{0x00,0x11,0x22,0xFF,0xFE,0x33,0x44,0x55}}; 35struct eui64 test_eui64_mac48 = {{0x00,0x11,0x22,0xFF,0xFF,0x33,0x44,0x55}}; 36 37#define test_eui64_id_ascii "00-11-22-33-44-55-66-77" 38#define test_eui64_id_colon_ascii "00:11:22:33:44:55:66:77" 39#define test_eui64_hex_ascii "0x0011223344556677" 40#define test_eui64_eui48_ascii "00-11-22-ff-fe-33-44-55" 41#define test_eui64_mac48_ascii "00-11-22-ff-fe-33-44-55" 42#define test_eui64_mac_ascii "00-11-22-33-44-55" 43#define test_eui64_mac_colon_ascii "00:11:22:33:44:55" 44#define test_eui64_id_host "id" 45#define test_eui64_eui48_host "eui-48" 46#define test_eui64_mac48_host "mac-48" 47 48#define test_eui64_line_id "00-11-22-33-44-55-66-77 id" 49#define test_eui64_line_id_colon "00:11:22:33:44:55:66:77 id" 50#define test_eui64_line_eui48 "00-11-22-FF-fe-33-44-55 eui-48" 51#define test_eui64_line_mac48 "00-11-22-FF-ff-33-44-55 mac-48" 52#define test_eui64_line_eui48_6byte "00-11-22-33-44-55 eui-48" 53#define test_eui64_line_eui48_6byte_c "00:11:22:33:44:55 eui-48" 54 55#endif /* !_TEST_EUI64_H */ 56/* 57 * Copyright 2004 The Aerospace Corporation. All rights reserved. 58 * 59 * Redistribution and use in source and binary forms, with or without 60 * modification, are permitted provided that the following conditions 61 * are met: 62 * 63 * 1. Redistributions of source code must retain the above copyright 64 * notice, this list of conditions, and the following disclaimer. 65 * 2. Redistributions in binary form must reproduce the above copyright 66 * notice, this list of conditions, and the following disclaimer in the 67 * documentation and/or other materials provided with the distribution. 68 * 3. The name of The Aerospace Corporation may not be used to endorse or 69 * promote products derived from this software. 70 * 71 * THIS SOFTWARE IS PROVIDED BY THE AEROSPACE CORPORATION "AS IS" AND 72 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 73 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 74 * ARE DISCLAIMED. IN NO EVENT SHALL THE AEROSPACE CORPORATION BE LIABLE 75 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 76 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 77 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 78 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 79 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 80 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 81 * SUCH DAMAGE. 82 * 83 * $FreeBSD: head/tools/regression/lib/libc/net/test-eui64.h 129759 2004-05-26 22:58:06Z brooks $ 84 */ 85#ifndef _TEST_EUI64_H 86#define _TEST_EUI64_H 87 88struct eui64 test_eui64_id = {{0x00,0x11,0x22,0x33,0x44,0x55,0x66,0x77}}; 89struct eui64 test_eui64_eui48 = {{0x00,0x11,0x22,0xFF,0xFE,0x33,0x44,0x55}}; 90struct eui64 test_eui64_mac48 = {{0x00,0x11,0x22,0xFF,0xFF,0x33,0x44,0x55}}; 91 92#define test_eui64_id_ascii "00-11-22-33-44-55-66-77" 93#define test_eui64_id_colon_ascii "00:11:22:33:44:55:66:77" 94#define test_eui64_hex_ascii "0x0011223344556677" 95#define test_eui64_eui48_ascii "00-11-22-ff-fe-33-44-55" 96#define test_eui64_mac48_ascii "00-11-22-ff-fe-33-44-55" 97#define test_eui64_mac_ascii "00-11-22-33-44-55" 98#define test_eui64_mac_colon_ascii "00:11:22:33:44:55" 99#define test_eui64_id_host "id" 100#define test_eui64_eui48_host "eui-48" 101#define test_eui64_mac48_host "mac-48" 102 103#define test_eui64_line_id "00-11-22-33-44-55-66-77 id" 104#define test_eui64_line_id_colon "00:11:22:33:44:55:66:77 id" 105#define test_eui64_line_eui48 "00-11-22-FF-fe-33-44-55 eui-48" 106#define test_eui64_line_mac48 "00-11-22-FF-ff-33-44-55 mac-48" 107#define test_eui64_line_eui48_6byte "00-11-22-33-44-55 eui-48" 108#define test_eui64_line_eui48_6byte_c "00:11:22:33:44:55 eui-48" 109 110#endif /* !_TEST_EUI64_H */ 111