mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
ICMPv6: Fix an address size calculation that was bungled in a recent commit.
This commit is contained in:
@@ -40,8 +40,9 @@
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <string.h>
|
||||
#include <debug.h>
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include "devif/ip_forward.h"
|
||||
|
||||
@@ -79,6 +80,12 @@ void ip_forward_initialize(void)
|
||||
FAR struct forward_s *fwd;
|
||||
int i;
|
||||
|
||||
/* The IOB size must be such that the maximum L2 and L3 headers fit into
|
||||
* the contiguous memory of the first IOB in the IOB chain.
|
||||
*/
|
||||
|
||||
DEBUGASSERT(sizeof(union fwd_iphdr_u) <= CONFIG_IOB_BUFSIZE);
|
||||
|
||||
/* Add all pre-allocated forwarding structures to the free list */
|
||||
|
||||
g_fwdfree = NULL;
|
||||
|
||||
Reference in New Issue
Block a user