Searched refs:fit_len (Results 1 – 2 of 2) sorted by relevance
/Zephyr-latest/subsys/net/ip/ |
D | ipv6_fragment.c | 590 uint16_t fit_len, in send_ipv6_fragment() argument 602 frag_pkt = net_pkt_alloc_with_buffer(net_pkt_iface(pkt), fit_len + in send_ipv6_fragment() 654 net_pkt_copy(frag_pkt, pkt, fit_len)) { in send_ipv6_fragment() 696 int fit_len; in net_ipv6_send_fragmented_pkt() local 716 fit_len = (int)mtu - NET_IPV6_FRAGH_LEN - in net_ipv6_send_fragmented_pkt() 720 fit_len = ROUND_DOWN(fit_len, 8); in net_ipv6_send_fragmented_pkt() 722 if (fit_len <= 0) { in net_ipv6_send_fragmented_pkt() 762 if (fit_len >= length) { in net_ipv6_send_fragmented_pkt() 764 fit_len = length; in net_ipv6_send_fragmented_pkt() 767 ret = send_ipv6_fragment(pkt, fit_len, frag_offset, in net_ipv6_send_fragmented_pkt() [all …]
|
D | ipv4_fragment.c | 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() [all …]
|