Lines Matching refs:nhc
62 static int get_udp_nhc_inlined_size(uint8_t nhc) in get_udp_nhc_inlined_size() argument
66 if ((nhc & 0xF8) != NET_6LO_NHC_UDP_BARE) { in get_udp_nhc_inlined_size()
71 if (!(nhc & NET_6LO_NHC_UDP_CHECKSUM)) { in get_udp_nhc_inlined_size()
75 size += udp_nhc_inline_size_table[(nhc & NET_6LO_NHC_UDP_PORT_MASK)]; in get_udp_nhc_inlined_size()
596 uint8_t nhc = NET_6LO_NHC_UDP_BARE; in compress_nh_udp() local
618 nhc |= NET_6LO_NHC_UDP_CHECKSUM; in compress_nh_udp()
633 nhc |= NET_6LO_NHC_UDP_PORT_11; in compress_nh_udp()
649 nhc |= NET_6LO_NHC_UDP_PORT_01; in compress_nh_udp()
664 nhc |= NET_6LO_NHC_UDP_PORT_10; in compress_nh_udp()
681 inline_ptr_udp -= sizeof(nhc); in compress_nh_udp()
682 *inline_ptr_udp = nhc; in compress_nh_udp()
1259 static uint8_t *uncompress_nh_udp(uint8_t nhc, uint8_t *cursor, in uncompress_nh_udp() argument
1271 switch (nhc & NET_6LO_NHC_UDP_PORT_11) { in uncompress_nh_udp()
1314 if (!(nhc & NET_6LO_NHC_UDP_CHECKSUM)) { in uncompress_nh_udp()
1351 uint8_t nhc = 0; in uncompress_IPHC_header() local
1375 nhc = *(pkt->buffer->data + sizeof(iphc) + inline_size); in uncompress_IPHC_header()
1376 if ((nhc & 0xF8) != NET_6LO_NHC_UDP_BARE) { in uncompress_IPHC_header()
1381 nhc_inline_size = get_udp_nhc_inlined_size(nhc); in uncompress_IPHC_header()
1399 size_t frag_len = nhc ? NET_IPV6UDPH_LEN : NET_IPV6H_LEN; in uncompress_IPHC_header()
1500 cursor = uncompress_nh_udp(nhc, cursor, udp); in uncompress_IPHC_header()
1515 if (nhc & NET_6LO_NHC_UDP_CHECKSUM) { in uncompress_IPHC_header()
1602 uint8_t nhc; in net_6lo_uncompress_hdr_diff() local
1624 nhc = *(pkt->buffer->data + sizeof(iphc) + inline_size); in net_6lo_uncompress_hdr_diff()
1625 if ((nhc & 0xF8) != NET_6LO_NHC_UDP_BARE) { in net_6lo_uncompress_hdr_diff()
1630 nhc_inline_size = get_udp_nhc_inlined_size(nhc); in net_6lo_uncompress_hdr_diff()