Lines Matching refs:fit_len
424 static int send_ipv4_fragment(struct net_pkt *pkt, uint16_t rand_id, uint16_t fit_len, in send_ipv4_fragment() argument
433 frag_pkt = net_pkt_alloc_with_buffer(net_pkt_iface(pkt), fit_len + in send_ipv4_fragment()
453 net_pkt_copy(frag_pkt, pkt, fit_len)) { in send_ipv4_fragment()
482 ipv4_hdr->len = htons((fit_len + net_pkt_ip_hdr_len(pkt))); in send_ipv4_fragment()
523 int fit_len; in net_ipv4_send_fragmented_pkt() local
551 fit_len = (mtu - net_pkt_ip_hdr_len(pkt)) / 8; in net_ipv4_send_fragmented_pkt()
553 if (fit_len <= 0) { in net_ipv4_send_fragmented_pkt()
559 fit_len *= 8; in net_ipv4_send_fragmented_pkt()
595 if ((frag_offset + fit_len) >= pkt_len) { in net_ipv4_send_fragmented_pkt()
597 fit_len = (pkt_len - frag_offset); in net_ipv4_send_fragmented_pkt()
600 ret = send_ipv4_fragment(pkt, rand_id, fit_len, frag_offset, final); in net_ipv4_send_fragmented_pkt()
605 frag_offset += fit_len; in net_ipv4_send_fragmented_pkt()