Lines Matching refs:frag
464 struct net_buf *frag; in create_pkt() local
483 frag = net_pkt_get_frag(pkt, NET_IPV6UDPH_LEN, K_FOREVER); in create_pkt()
484 if (!frag) { in create_pkt()
490 memcpy(frag->data, (uint8_t *) data, NET_IPV6UDPH_LEN); in create_pkt()
491 net_buf_add(frag, NET_IPV6UDPH_LEN); in create_pkt()
493 memcpy(frag->data, (uint8_t *) data, NET_IPV6ICMPH_LEN); in create_pkt()
494 net_buf_add(frag, NET_IPV6ICMPH_LEN); in create_pkt()
497 memcpy(frag->data, (uint8_t *) data, NET_IPV6H_LEN); in create_pkt()
498 net_buf_add(frag, NET_IPV6H_LEN); in create_pkt()
515 frag->data[4] = len >> 8; in create_pkt()
516 frag->data[5] = (uint8_t) len; in create_pkt()
521 frag->data[44] = len >> 8; in create_pkt()
522 frag->data[45] = (uint8_t) len; in create_pkt()
530 bytes = net_buf_tailroom(frag); in create_pkt()
532 memcpy(net_buf_add(frag, copy), &user_data[pos], copy); in create_pkt()
537 if (net_buf_tailroom(frag) - (bytes - copy)) { in create_pkt()
542 net_pkt_frag_add(pkt, frag); in create_pkt()
545 frag = net_pkt_get_frag(pkt, TEST_FRAG_LEN, K_FOREVER); in create_pkt()