unistruct.h (131826) | unistruct.h (133492) |
---|---|
1/* 2 * Copyright (c) 1996-2003 3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus). 4 * All rights reserved. 5 * 6 * Author: Hartmut Brandt <harti@freebsd.org> 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * | 1/* 2 * Copyright (c) 1996-2003 3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus). 4 * All rights reserved. 5 * 6 * Author: Hartmut Brandt <harti@freebsd.org> 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * |
29 * $Begemot: libunimsg/netnatm/msg/unistruct.h,v 1.6 2004/07/08 08:22:08 brandt Exp $ | 29 * $Begemot: libunimsg/netnatm/msg/unistruct.h,v 1.7 2004/07/16 18:42:22 brandt Exp $ |
30 * 31 * This file defines all structures that are used by 32 * API users. 33 */ 34#ifndef _NETNATM_MSG_UNISTRUCT_H_ 35#define _NETNATM_MSG_UNISTRUCT_H_ 36 37#include <netnatm/msg/uni_config.h> --- 163 unchanged lines hidden (view full) --- 201}; 202enum uni_addr_screen { 203 UNI_ADDR_SCREEN_NOT = 0x0, 204 UNI_ADDR_SCREEN_PASSED = 0x1, 205 UNI_ADDR_SCREEN_FAILED = 0x2, 206 UNI_ADDR_SCREEN_NET = 0x3, 207}; 208 | 30 * 31 * This file defines all structures that are used by 32 * API users. 33 */ 34#ifndef _NETNATM_MSG_UNISTRUCT_H_ 35#define _NETNATM_MSG_UNISTRUCT_H_ 36 37#include <netnatm/msg/uni_config.h> --- 163 unchanged lines hidden (view full) --- 201}; 202enum uni_addr_screen { 203 UNI_ADDR_SCREEN_NOT = 0x0, 204 UNI_ADDR_SCREEN_PASSED = 0x1, 205 UNI_ADDR_SCREEN_FAILED = 0x2, 206 UNI_ADDR_SCREEN_NET = 0x3, 207}; 208 |
209/* don't use bitfields to get a defined structure layout */ |
|
209struct uni_addr { | 210struct uni_addr { |
210 enum uni_addr_type type; 211 enum uni_addr_plan plan; 212 u_int len; | 211 uint8_t type; 212 uint8_t plan; 213 uint8_t len; |
213 u_char addr[UNI_ADDR_MAXLEN]; 214}; 215struct uni_subaddr { 216 enum uni_subaddr_type type; 217 u_int len; 218 u_char addr[UNI_SUBADDR_MAXLEN]; 219}; 220 --- 1150 unchanged lines hidden --- | 214 u_char addr[UNI_ADDR_MAXLEN]; 215}; 216struct uni_subaddr { 217 enum uni_subaddr_type type; 218 u_int len; 219 u_char addr[UNI_SUBADDR_MAXLEN]; 220}; 221 --- 1150 unchanged lines hidden --- |