Changeset 15450 in vbox for trunk/src/VBox/Devices/Network/slirp/ip.h
- Timestamp:
- Dec 13, 2008 10:06:40 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/ip.h
r15056 r15450 122 122 #define IPTOS_RELIABILITY 0x04 123 123 124 /*125 * Definitions for options.126 */127 #define IPOPT_COPIED(o) ((o)&0x80)128 #define IPOPT_CLASS(o) ((o)&0x60)129 #define IPOPT_NUMBER(o) ((o)&0x1f)130 131 #define IPOPT_CONTROL 0x00132 #define IPOPT_RESERVED1 0x20133 #define IPOPT_DEBMEAS 0x40134 #define IPOPT_RESERVED2 0x60135 136 #define IPOPT_EOL 0 /* end of option list */137 #define IPOPT_NOP 1 /* no operation */138 139 #define IPOPT_RR 7 /* record packet route */140 #define IPOPT_TS 68 /* timestamp */141 #define IPOPT_SECURITY 130 /* provide s,c,h,tcc */142 #define IPOPT_LSRR 131 /* loose source route */143 #define IPOPT_SATID 136 /* satnet id */144 #define IPOPT_SSRR 137 /* strict source route */145 146 /*147 * Offsets to fields in options other than EOL and NOP.148 */149 #define IPOPT_OPTVAL 0 /* option ID */150 #define IPOPT_OLEN 1 /* option length */151 #define IPOPT_OFFSET 2 /* offset within option */152 #define IPOPT_MINOFF 4 /* min value of above */153 124 154 125 /* … … 188 159 }; 189 160 AssertCompileSize(struct ip_timestamp, 12); 190 191 /* flag bits for ipt_flg */192 #define IPOPT_TS_TSONLY 0 /* timestamps only */193 #define IPOPT_TS_TSANDADDR 1 /* timestamps and addresses */194 #define IPOPT_TS_PRESPEC 3 /* specified modules only */195 196 /* bits for security (not byte swapped) */197 #define IPOPT_SECUR_UNCLASS 0x0000198 #define IPOPT_SECUR_CONFID 0xf135199 #define IPOPT_SECUR_EFTO 0x789a200 #define IPOPT_SECUR_MMMM 0xbc4d201 #define IPOPT_SECUR_RESTR 0xaf13202 #define IPOPT_SECUR_SECRET 0xd788203 #define IPOPT_SECUR_TOPSECRET 0x6bc5204 161 205 162 /* … … 335 292 336 293 #endif /* !VBOX_WITH_BSD_REASS */ 337 338 /*339 * Structure stored in mbuf in inpcb.ip_options340 * and passed to ip_output when ip options are in use.341 * The actual length of the options (including ipopt_dst)342 * is in m_len.343 */344 #define MAX_IPOPTLEN 40345 346 struct ipoption347 {348 struct in_addr ipopt_dst; /* first-hop dst if source routed */349 int8_t ipopt_list[MAX_IPOPTLEN]; /* options proper */350 };351 294 352 295 /*
Note:
See TracChangeset
for help on using the changeset viewer.