/* This file was automatically generated by Epilogue Technology's * network datastructure layout tool. * * DO NOT MODIFY THIS FILE BY HAND. * * Source file information: * Id: ip6.ldb,v 1.9 1998/02/25 15:21:41 sra Exp */ #ifndef EPILOGUE_LAYOUT_TFTP_H #define EPILOGUE_LAYOUT_TFTP_H #ifndef EPILOGUE_INSTALL_H #include #endif #ifndef EPILOGUE_TYPES_H #include #endif #ifndef EPILOGUE_LAYOUT_LDBGLUE_H #include #endif /* Definitions for TFTP_MESSAGE */ #define SIZEOF_TFTP_MESSAGE (4) #define PTR_TFTP_MESSAGE_OPCODE(_P_)\ ((GLUE_CAST_PTR(_P_))) #define GET_TFTP_MESSAGE_OPCODE(_P_)\ GLUE_GB16((GLUE_CAST_PTR(_P_))) #define SET_TFTP_MESSAGE_OPCODE(_P_, _V_)\ GLUE_SB16((GLUE_CAST_PTR(_P_)), GLUE_CAST16(_V_)) #define TFTP_MESSAGE_OPCODE_is_OP_RRQ GLUE_CAST16(1L) #define TFTP_MESSAGE_OPCODE_is_OP_WRQ GLUE_CAST16(2L) #define TFTP_MESSAGE_OPCODE_is_OP_DATA GLUE_CAST16(3L) #define TFTP_MESSAGE_OPCODE_is_OP_ACK GLUE_CAST16(4L) #define TFTP_MESSAGE_OPCODE_is_OP_ERROR GLUE_CAST16(5L) #define PTR_TFTP_MESSAGE_FILENAME(_P_)\ ((GLUE_CAST_PTR(_P_))+(2)) #define GET_TFTP_MESSAGE_FILENAME(_P_)\ GLUE_GB08((GLUE_CAST_PTR(_P_))+(2)) #define SET_TFTP_MESSAGE_FILENAME(_P_, _V_)\ GLUE_SB08((GLUE_CAST_PTR(_P_))+(2), GLUE_CAST08(_V_)) #define PTR_TFTP_MESSAGE_BLOCK(_P_)\ ((GLUE_CAST_PTR(_P_))+(2)) #define GET_TFTP_MESSAGE_BLOCK(_P_)\ GLUE_GB16((GLUE_CAST_PTR(_P_))+(2)) #define SET_TFTP_MESSAGE_BLOCK(_P_, _V_)\ GLUE_SB16((GLUE_CAST_PTR(_P_))+(2), GLUE_CAST16(_V_)) #define PTR_TFTP_MESSAGE_ERROR(_P_)\ ((GLUE_CAST_PTR(_P_))+(2)) #define GET_TFTP_MESSAGE_ERROR(_P_)\ GLUE_GB16((GLUE_CAST_PTR(_P_))+(2)) #define SET_TFTP_MESSAGE_ERROR(_P_, _V_)\ GLUE_SB16((GLUE_CAST_PTR(_P_))+(2), GLUE_CAST16(_V_)) #define TFTP_MESSAGE_ERROR_is_ERR_USEMSG GLUE_CAST16(0L) #define TFTP_MESSAGE_ERROR_is_ERR_NOFILE GLUE_CAST16(1L) #define TFTP_MESSAGE_ERROR_is_ERR_ACCESS GLUE_CAST16(2L) #define TFTP_MESSAGE_ERROR_is_ERR_DISKFULL GLUE_CAST16(3L) #define TFTP_MESSAGE_ERROR_is_ERR_ILLEGALOP GLUE_CAST16(4L) #define TFTP_MESSAGE_ERROR_is_ERR_BADTID GLUE_CAST16(5L) #define TFTP_MESSAGE_ERROR_is_ERR_EXISTS GLUE_CAST16(6L) #define TFTP_MESSAGE_ERROR_is_ERR_NOUSER GLUE_CAST16(7L) #endif /* EPILOGUE_LAYOUT_TFTP_H */