Lines Matching refs:max_len
1077 size_t max_len; local
1080 max_len = net_if_get_mtu(net_pkt_iface(pkt));
1082 max_len = 0;
1087 if (IS_ENABLED(CONFIG_NET_IPV6_FRAGMENT) && (size > max_len)) {
1091 max_len = size;
1094 max_len = MAX(max_len, NET_IPV6_MTU);
1096 if (IS_ENABLED(CONFIG_NET_IPV4_FRAGMENT) && (size > max_len)) {
1098 max_len = size;
1101 max_len = MAX(max_len, NET_IPV4_MTU);
1106 max_len += NET_ETH_MAX_HDR_SIZE;
1113 max_len = size;
1117 max_len -= existing;
1119 return MIN(size, max_len);