Go to the source code of this file.
|
| const static struct schc_ipv6_rule_t | ipv6_rule1 |
| |
| const static struct schc_ipv6_rule_t | ipv6_rule2 |
| |
| const static struct schc_ipv6_rule_t | ipv6_rule3 |
| |
| const static struct schc_udp_rule_t | udp_rule1 |
| |
| const static struct schc_udp_rule_t | udp_rule2 |
| |
| const static struct schc_udp_rule_t | udp_rule3 |
| |
| const static struct schc_coap_rule_t | coap_rule1 |
| |
| const static struct schc_coap_rule_t | coap_rule2 |
| |
| const static struct schc_coap_rule_t | coap_rule3 |
| |
| const static struct schc_coap_rule_t | coap_rule4 |
| |
| const struct schc_compression_rule_t | compression_rule_1 |
| |
| const struct schc_compression_rule_t | compression_rule_2 |
| |
| const struct schc_compression_rule_t | compression_rule_3 |
| |
| const struct schc_compression_rule_t | compression_rule_4 |
| |
| const struct schc_rule_t | schc_rule_1 = { 0x01, &compression_rule_1, NOT_FRAGMENTED, 0, 0, 0, 0 } |
| |
| const struct schc_rule_t | schc_rule_2 = { 0x02, &compression_rule_1, NO_ACK, 1, 0, 0, 0 } |
| |
| const struct schc_rule_t | schc_rule_3 = { 0x03, &compression_rule_1, ACK_ON_ERROR, 3, 6, 1, 0 } |
| |
| const struct schc_rule_t | schc_rule_4 = { 0x04, &compression_rule_1, ACK_ALWAYS, 3, 6, 1, 0 } |
| |
| const struct schc_rule_t | schc_rule_5 = { 0x05, &compression_rule_2, NOT_FRAGMENTED, 0, 0, 0, 0 } |
| |
| const struct schc_rule_t | schc_rule_6 = { 0x06, &compression_rule_2, NO_ACK, 1, 0, 0, 0 } |
| |
| const struct schc_rule_t | schc_rule_7 = { 0x07, &compression_rule_2, ACK_ON_ERROR, 3, 6, 1, 0 } |
| |
| const struct schc_rule_t | schc_rule_8 = { 0x08, &compression_rule_2, ACK_ALWAYS, 3, 6, 1, 0 } |
| |
| const struct schc_rule_t * | node1_schc_rules [] |
| |
| const struct schc_device | node1 = { 1, 8, &node1_schc_rules } |
| |
| const struct schc_device | node2 = { 2, 8, &node1_schc_rules} |
| |
| const struct schc_device * | devices [DEVICE_COUNT] = { &node1, &node2 } |
| |
◆ COAP_RULES
◆ DEVICE_COUNT
◆ IPV6_RULES
◆ UDP_RULES
◆ coap_rule1
Initial value:= {
1, 9, 7, 9,
{
{
"token", 24, 4, 1,
BI, {0x21, 0xFA, 0x01, 0x00},
}
}
◆ coap_rule2
Initial value:= {
2, 8, 8, 10,
{
{
"message ID", 12, 2, 1,
UP, {0x23, 0xBB}, &
MSB,
LSB },
{
"message ID", 12, 2, 1,
DOWN, {0x7A, 0x10}, &
MSB,
LSB },
{
"token", 0, 4, 1,
BI, {0, 0, 0, 0}, &
ignore,
VALUESENT },
{
"uri-path", 0, 4, 2,
BI,
"[\"temp\",\"humi\",\"batt\",\"r\"]\0",
}
}
◆ coap_rule3
Initial value:= {
3, 8, 6, 8,
{
{
"token", 24, 4, 1,
BI, {0x21, 0xFA, 0x01, 0x00},
}
}
◆ coap_rule4
Initial value:= {
4, 12, 12, 12,
{
{
"token", 24, 8, 1,
BI, {0x21, 0xFA, 0x01, 0x00},
{
"uri-query", 0, 9, 1,
BI, {0x6C, 0x77, 0x6D, 0x32, 0x6D, 0x3D, 0x31, 0x2E, 0x30},
{
"uri-query", 0, 11, 1,
BI, {0x65, 0x70, 0x3D, 0x6D, 0x61, 0x67, 0x69, 0x63, 0x69, 0x61, 0x6E},
{
"uri-query", 0, 6, 1,
BI, {0x6C, 0x74, 0x3D, 0x31, 0x32, 0x31},
}
}
◆ compression_rule_1
◆ compression_rule_2
◆ compression_rule_3
◆ compression_rule_4
◆ devices
◆ ipv6_rule1
Initial value:= {
1, 10, 10, 10,
{
{
"flow label", 0, 3, 1,
BI, {0, 0, 0}, &
ignore,
NOTSENT },
{
"src prefix", 0, 8, 1,
BI, {0xAA, 0xAA, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
{
"src iid", 0, 8, 1,
BI, {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01},
{
"dest prefix", 0, 8, 1,
BI, {0xAA, 0xAA, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
{
"dest iid", 56, 8, 1,
BI, {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
}
}
◆ ipv6_rule2
Initial value:= {
2, 10, 10, 10,
{
{
"flow label", 0, 3, 1,
BI, {0, 0, 0x20}, &
equal,
NOTSENT },
{
"src prefix", 0, 8, 1,
BI, {0x20, 0x01, 0x06, 0xA8, 0x1D, 0x80, 0x20, 0x21},
{
"src iid", 48, 8, 1,
BI, {0x02, 0x30, 0x48, 0xFF, 0xFE, 0x5A, 0x00, 0x00},
{
"dest prefix", 0, 8, 1,
BI, {0x20, 0x01, 0x06, 0xA8, 0x1D, 0x80, 0x20, 0x21},
{
"dest iid", 48, 8, 1,
BI, {0x50, 0x74, 0xF2, 0xFF, 0xFE, 0xB1, 0x00, 0x00},
}
}
◆ ipv6_rule3
Initial value:= {
3, 10, 10, 10,
{
{
"flow label", 0, 3, 1,
BI, {0, 0, 0}, &
ignore,
NOTSENT },
{
"src prefix", 0, 8, 1,
BI, {0xAA, 0xAA, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
{
"src iid", 0, 8, 1,
BI, {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02},
{
"dest prefix", 0, 8, 1,
BI, {0xAA, 0xAA, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
{
"dest iid", 56, 8, 1,
BI, {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
}
}
◆ node1
◆ node1_schc_rules
◆ node2
◆ schc_rule_1
◆ schc_rule_2
◆ schc_rule_3
◆ schc_rule_4
◆ schc_rule_5
◆ schc_rule_6
◆ schc_rule_7
◆ schc_rule_8
◆ udp_rule1
◆ udp_rule2
Initial value:= {
2, 4, 4, 4,
{
{
"src port", 12, 2, 1,
BI, {0x33, 0x16}, &
MSB,
LSB },
{
"dest port", 12, 2, 1,
BI, {0x33, 0x16}, &
MSB,
LSB },
}
}
◆ udp_rule3
const struct schc_rule_t schc_rule_5
Definition: rules.h:239
const struct schc_rule_t schc_rule_7
Definition: rules.h:241
const struct schc_rule_t schc_rule_2
Definition: rules.h:235
const static struct schc_udp_rule_t udp_rule1
Definition: rules.h:73
const static struct schc_coap_rule_t coap_rule3
Definition: rules.h:146
Definition: picocoap.h:119
static uint8_t MSB(struct schc_field *target_field, unsigned char *field_value)
The MSB matching operator.
Definition: compressor.c:1088
static uint8_t equal(struct schc_field *target_field, unsigned char *field_value)
The equal matching operator.
Definition: compressor.c:1047
Definition: picocoap.h:105
Definition: picocoap.h:107
const struct schc_rule_t schc_rule_6
Definition: rules.h:240
const struct schc_rule_t schc_rule_3
Definition: rules.h:236
Definition: picocoap.h:121
const struct schc_rule_t schc_rule_4
Definition: rules.h:237
Definition: picocoap.h:96
const static struct schc_coap_rule_t coap_rule1
Definition: rules.h:109
const struct schc_rule_t schc_rule_8
Definition: rules.h:242
const struct schc_rule_t schc_rule_1
Definition: rules.h:234
const static struct schc_coap_rule_t coap_rule4
Definition: rules.h:162
Definition: picocoap.h:120
const static struct schc_coap_rule_t coap_rule2
Definition: rules.h:127
Definition: picocoap.h:128
static uint8_t matchmap(struct schc_field *target_field, unsigned char *field_value)
The match-map matching operator.
Definition: compressor.c:1145
static uint8_t ignore(struct schc_field *target_field, unsigned char *field_value)
The ignore matching operator.
Definition: compressor.c:1073
const static struct schc_ipv6_rule_t ipv6_rule1
Definition: rules.h:7
Definition: picocoap.h:106