Skip to content

Commit 3f2a412

Browse files
jukkarAnas Nashif
authored andcommitted
net: ipv6: Make max number of fragmented pkt configurable
If the user really wants, it is possible to increase the maximum size of the fragmented packet. According to RFC 2460 chapter 5, we do not need to accept larger than 1500 byte IPv6 packets, so the max pkt limit is set to 2. But if really needed the limit can be raised by defining NET_IPV6_FRAGMENTS_MAX_PKT to some new value. Currently there is no Kconfig option for doing this as it is unlikely that this is needed. Signed-off-by: Jukka Rissanen <[email protected]>
1 parent 46f26e1 commit 3f2a412

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

subsys/net/ip/ipv6.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,9 @@ static inline void net_ipv6_nbr_set_reachable_timer(struct net_if *iface,
374374
* This means that we should receive everything within first two fragments.
375375
* The first one being 1280 bytes and the second one 220 bytes.
376376
*/
377+
#if !defined(NET_IPV6_FRAGMENTS_MAX_PKT)
377378
#define NET_IPV6_FRAGMENTS_MAX_PKT 2
379+
#endif
378380

379381
/** Store pending IPv6 fragment information that is needed for reassembly. */
380382
struct net_ipv6_reassembly {

0 commit comments

Comments
 (0)