nuttx/net/devif
chao an e3a6c16944 net/ip: fix compile break if disable NET_TCP
1.
ipfrag/ipv4_frag.c: In function ‘ipv4_fragin’:
ipfrag/ipv4_frag.c:184:22: warning: ‘head’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  184 |   ipv4->len[1] = head->io_pktlen & 0xff;
      |                  ~~~~^~~~~~~~~~~
ipfrag/ipv4_frag.c:123:21: note: ‘head’ was declared here
  123 |   FAR struct iob_s *head;
      |                     ^~~~

2.
devif/ipv6_input.c: In function ‘ipv6_in’:
devif/ipv6_input.c:60:33: error: ‘TCPIPv6BUF’ undeclared (first use in this function); did you mean ‘UDPIPv6BUF’?
   60 | #define PAYLOAD ((FAR uint8_t *)TCPIPv6BUF)
      |                                 ^~~~~~~~~~

3.
nat/ipv4_nat.c: In function ‘ipv4_nat_inbound_icmp’:
nat/ipv4_nat.c:67:30: error: ‘TCP_HDRLEN’ undeclared (first use in this function); did you mean ‘UDP_HDRLEN’?
   67 |   ((proto) == IP_PROTO_TCP ? TCP_HDRLEN : \
      |                              ^~~~~~~~~~
nat/ipv4_nat.c:323:47: note: in expansion of macro ‘L4_HDRLEN’
  323 |             inner_l4hdrlen = MIN(inner_l4len, L4_HDRLEN(inner->proto));
      |                                               ^~~~~~~~~

Signed-off-by: chao an <anchao@xiaomi.com>
2023-02-07 12:46:40 +02:00
..
devif_callback.c net: cleanup pvconn reference to avoid confuse 2022-08-26 20:58:11 +08:00
devif_forward.c net/ipfwd: fix devif_forward after IOB offload. 2022-12-06 17:03:47 +08:00
devif_initialize.c
devif_iobsend.c net/devif: check the net device before use 2023-01-31 18:41:50 +08:00
devif_loopback.c Support fragmentation and reassembly 2023-01-17 14:01:37 +08:00
devif_poll.c mm/iob: Support negative offset when copyin/out. 2023-01-31 00:39:15 +08:00
devif_send.c net/devif: correct the judgment condition in devif_send() 2023-01-31 22:42:58 +08:00
devif.h net/netdev: Avoid hardcoded guardsize when using d_iob 2023-01-18 14:41:07 +08:00
ipv4_input.c net/netdev: Avoid hardcoded guardsize when using d_iob 2023-01-18 14:41:07 +08:00
ipv6_input.c net/ip: fix compile break if disable NET_TCP 2023-02-07 12:46:40 +02:00
Make.defs net/devif: reuse devif_send() for can/pkt/icmp stack 2023-01-13 16:41:10 +08:00