25 #ifndef ROHC_PROTOCOLS_RFC5225_H 26 #define ROHC_PROTOCOLS_RFC5225_H 37 #define ROHC_PACKET_TYPE_IR 0xFD 38 #define ROHC_PACKET_TYPE_CO_REPAIR 0xFB 53 #if WORDS_BIGENDIAN == 1 54 uint8_t version_flag:1;
55 uint8_t innermost_ip:1;
76 #if WORDS_BIGENDIAN == 1 78 uint8_t reorder_ratio:2;
80 uint8_t ip_id_behavior_innermost:2;
101 #if WORDS_BIGENDIAN == 1 103 uint8_t reorder_ratio:2;
105 uint8_t ip_id_behavior_innermost:2;
130 #if WORDS_BIGENDIAN == 1 133 uint8_t ip_id_behavior:2;
155 #if WORDS_BIGENDIAN == 1 158 uint8_t ip_id_behavior:2;
197 #if WORDS_BIGENDIAN == 1 198 uint8_t version_flag:1;
199 uint8_t innermost_ip:1;
201 uint8_t flow_label_enc_discriminator:1;
211 uint32_t src_addr[4];
212 uint32_t dst_addr[4];
223 #if WORDS_BIGENDIAN == 1 224 uint8_t version_flag:1;
225 uint8_t innermost_ip:1;
227 uint8_t flow_label_enc_discriminator:1;
228 uint8_t flow_label_msb:4;
238 uint32_t src_addr[4];
239 uint32_t dst_addr[4];
252 #if WORDS_BIGENDIAN == 1 254 uint8_t reorder_ratio:2;
302 #if WORDS_BIGENDIAN == 1 304 uint8_t reorder_ratio:2;
346 #if WORDS_BIGENDIAN == 1 348 uint8_t reorder_ratio:2;
367 #if WORDS_BIGENDIAN == 1 369 uint8_t header_crc:7;
388 #if WORDS_BIGENDIAN == 1 389 uint8_t discriminator:1;
391 uint8_t header_crc:3;
407 #if WORDS_BIGENDIAN == 1 408 uint8_t discriminator:3;
411 uint8_t header_crc:7;
428 #if WORDS_BIGENDIAN == 1 429 uint8_t discriminator:3;
430 uint8_t header_crc:3;
451 #if WORDS_BIGENDIAN == 1 452 uint32_t discriminator:3;
455 uint32_t header_crc:7;
474 #if WORDS_BIGENDIAN == 1 475 uint8_t discriminator:8;
477 uint8_t header_crc:7;
479 uint8_t ttl_hopl_ind:1;
480 uint8_t tos_tc_ind:1;
481 uint8_t reorder_ratio:2;
482 uint8_t control_crc3:3;
503 #if WORDS_BIGENDIAN == 1 504 uint8_t ip_outer_indicator:1;
506 uint8_t ip_id_behavior:2;
uint8_t reserved
Definition: rfc5225.h:110
uint8_t flow_label_enc_discriminator
Definition: rfc5225.h:231
uint8_t ip_id_1
Definition: rfc5225.h:458
The IPv4 dynamic part for the innermost IP header of the IP-only profile, IP-ID not present...
Definition: rfc5225.h:74
uint8_t msn_2
Definition: rfc5225.h:416
uint8_t df
Definition: rfc5225.h:161
uint32_t spi
Definition: rfc5225.h:334
uint8_t ttl_hopl
Definition: rfc5225.h:165
uint16_t src_port
Definition: rfc5225.h:287
uint8_t header_crc
Definition: rfc5225.h:373
uint8_t ip_id_behavior
Definition: rfc5225.h:510
uint8_t tos_tc
Definition: rfc5225.h:112
uint8_t version_flag
Definition: rfc5225.h:60
uint8_t header_crc
Definition: rfc5225.h:393
uint16_t msn
Definition: rfc5225.h:115
uint8_t tos_tc
Definition: rfc5225.h:164
uint8_t flags_ind
Definition: rfc5225.h:491
uint8_t header_crc
Definition: rfc5225.h:415
uint8_t innermost_ip
Definition: rfc5225.h:59
uint8_t protocol
Definition: rfc5225.h:62
uint8_t ip_id_behavior
Definition: rfc5225.h:135
uint8_t reorder_ratio
Definition: rfc5225.h:488
uint8_t tos_tc_ind
Definition: rfc5225.h:489
uint8_t version_flag
Definition: rfc5225.h:208
uint16_t flow_label_lsb
Definition: rfc5225.h:236
uint8_t ctrl_crc
Definition: rfc5225.h:375
uint8_t next_header
Definition: rfc5225.h:210
uint8_t df
Definition: rfc5225.h:511
uint8_t df
Definition: rfc5225.h:108
uint8_t reserved
Definition: rfc5225.h:58
uint8_t reserved
Definition: rfc5225.h:232
The IPv6 static part, null flow_label encoded with 1 bit.
Definition: rfc5225.h:195
uint8_t control_crc3
Definition: rfc5225.h:487
uint8_t discriminator
Definition: rfc5225.h:414
uint8_t reserved
Definition: rfc5225.h:351
uint16_t ip_id
Definition: rfc5225.h:166
The IPv6 dynamic part for any outer IP header of the IP-only profile and all IP headers of the other ...
Definition: rfc5225.h:269
The ESP static part.
Definition: rfc5225.h:332
uint8_t ttl_hopl
Definition: rfc5225.h:140
uint16_t msn
Definition: rfc5225.h:259
uint8_t discriminator
Definition: rfc5225.h:459
The pt_1_seq_id packet format.
Definition: rfc5225.h:426
uint8_t discriminator
Definition: rfc5225.h:395
uint8_t reorder_ratio
Definition: rfc5225.h:84
uint8_t msn_2
Definition: rfc5225.h:439
uint8_t tos_tc
Definition: rfc5225.h:87
uint8_t flow_label_enc_discriminator
Definition: rfc5225.h:205
uint8_t innermost_ip
Definition: rfc5225.h:233
The CRC part of the co_repair packet format.
Definition: rfc5225.h:365
uint8_t msn
Definition: rfc5225.h:462
uint8_t flow_label_msb
Definition: rfc5225.h:230
uint16_t checksum
Definition: rfc5225.h:319
uint8_t reorder_ratio
Definition: rfc5225.h:306
uint8_t discriminator
Definition: rfc5225.h:437
The ESP dynamic part.
Definition: rfc5225.h:343
uint8_t reserved
Definition: rfc5225.h:307
uint8_t header_crc
Definition: rfc5225.h:485
uint8_t innermost_ip
Definition: rfc5225.h:207
The fixed part of the co_common packet format.
Definition: rfc5225.h:472
uint8_t version_flag
Definition: rfc5225.h:234
uint8_t reserved1
Definition: rfc5225.h:206
uint16_t checksum
Definition: rfc5225.h:299
The IPv4 dynamic part for the innermost IP header of the IP-only profile, IP-ID present.
Definition: rfc5225.h:99
The pt_0_crc3 packet format.
Definition: rfc5225.h:386
ipv4_regular_dynamic_noipid_t ipv4_outer_dynamic_noipid_t
The IPv4 dynamic part for any outer IP header, IP-ID not present.
Definition: rfc5225.h:175
uint8_t ttl_hopl_ind
Definition: rfc5225.h:490
The IPv6 static part, flow_label encoded with 1+20 bit.
Definition: rfc5225.h:221
The pt_2_seq_id packet format.
Definition: rfc5225.h:449
uint8_t discriminator
Definition: rfc5225.h:484
uint8_t reserved
Definition: rfc5225.h:257
uint8_t reserved2
Definition: rfc5225.h:204
uint8_t msn_1
Definition: rfc5225.h:413
uint8_t ip_id_2
Definition: rfc5225.h:461
uint8_t reserved
Definition: rfc5225.h:137
uint8_t ip_id_ind
Definition: rfc5225.h:486
uint8_t reorder_ratio
Definition: rfc5225.h:350
The pt_0_crc7 packet format.
Definition: rfc5225.h:405
uint16_t msn
Definition: rfc5225.h:89
The regular IPv4 dynamic part, IP-ID not present.
Definition: rfc5225.h:128
uint8_t next_header
Definition: rfc5225.h:237
The IPv6 dynamic part for the innermost IP header of the IP-only profile.
Definition: rfc5225.h:248
uint8_t ip_id
Definition: rfc5225.h:438
uint8_t reserved
Definition: rfc5225.h:509
The IPv4 static part.
Definition: rfc5225.h:51
uint8_t df
Definition: rfc5225.h:83
uint16_t msn
Definition: rfc5225.h:300
uint8_t ip_outer_indicator
Definition: rfc5225.h:512
uint8_t ttl_hopl
Definition: rfc5225.h:88
uint8_t msn
Definition: rfc5225.h:394
The UDP static part.
Definition: rfc5225.h:285
The profile_2_3_4_flags_enc packet part.
Definition: rfc5225.h:501
uint8_t tos_tc
Definition: rfc5225.h:271
uint8_t ip_id_behavior_innermost
Definition: rfc5225.h:82
uint8_t ttl_hopl
Definition: rfc5225.h:113
uint8_t r1
Definition: rfc5225.h:374
The regular IPv4 dynamic part, IP-ID present.
Definition: rfc5225.h:153
uint8_t df
Definition: rfc5225.h:136
The UDP irregular chain with checksum.
Definition: rfc5225.h:317
uint8_t ip_id_behavior
Definition: rfc5225.h:160
ipv4_regular_dynamic_ipid_t ipv4_outer_dynamic_ipid_t
The IPv4 dynamic part for any outer IP header, IP-ID present.
Definition: rfc5225.h:183
uint8_t r2
Definition: rfc5225.h:376
uint8_t reorder_ratio
Definition: rfc5225.h:109
uint32_t dst_addr
Definition: rfc5225.h:64
uint16_t ip_id_innermost
Definition: rfc5225.h:114
uint32_t src_addr
Definition: rfc5225.h:63
uint8_t header_crc
Definition: rfc5225.h:460
uint8_t ttl_hopl
Definition: rfc5225.h:272
uint8_t tos_tc
Definition: rfc5225.h:139
uint8_t reserved
Definition: rfc5225.h:85
uint32_t sequence_number
Definition: rfc5225.h:345
uint8_t header_crc
Definition: rfc5225.h:436
uint8_t tos_tc
Definition: rfc5225.h:250
uint8_t ttl_hopl
Definition: rfc5225.h:251
uint8_t reorder_ratio
Definition: rfc5225.h:256
uint8_t msn_1
Definition: rfc5225.h:435
uint8_t ip_id_behavior_innermost
Definition: rfc5225.h:107
The UDP endpoint dynamic part.
Definition: rfc5225.h:297
uint16_t dst_port
Definition: rfc5225.h:288
uint8_t reserved
Definition: rfc5225.h:162