ICMPv6: Fix an address size calculation that was bungled in a recent commit.

This commit is contained in:
Gregory Nutt
2017-07-06 19:37:01 -06:00
parent db69e4b09c
commit 70c6b52132
9 changed files with 223 additions and 95 deletions
+8 -1
View File
@@ -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;