Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef HEADERS_H
- #define HEADERS_H 1
- /*********************************/
- /* IP options */
- /*********************************/
- #define OPT_IP_EOP 0 /* end of options */
- #define OPT_IP_NOP 1 /* padding */
- #define OPT_IP_RR 7 /* record route */
- #define OPT_IP_LSR 3 /* loose source route */
- /* The same format used for RR, LSR & SSR */
- struct opt_ip_route {
- #if __BYTE_ORDER == __LITTLE_ENDIAN
- u_int8_t option:5;
- u_int8_t class_opt:2; /* Cleared to 0 */
- u_int8_t cpy_flag:1;
- #elif __BYTE_ORDER == __BIG_ENDIAN
- u_int8_t cpy_flag:1;
- u_int8_t class_opt:2; /* Cleared to 0 */
- u_int8_t option:5;
- #else
- # error "Please fix <bits/endian.h>"
- #endif
- u_int8_t length;
- u_int8_t ptr;
- /* char data[var] */
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement