anchao commented on code in PR #8451:
URL: https://github.com/apache/nuttx/pull/8451#discussion_r1098342220


##########
net/nat/ipv4_nat.c:
##########
@@ -88,6 +84,44 @@ ipv4_nat_outbound_internal(FAR struct net_driver_s *dev,
                            FAR struct ipv4_hdr_s *ipv4,
                            enum nat_manip_type_e manip_type);
 
+/****************************************************************************
+ * Inline Functions
+ ****************************************************************************/
+
+/****************************************************************************
+ * Name: ipv4_nat_l4_hdrlen
+ *
+ * Description:
+ *   Get L4 header length
+ *
+ ****************************************************************************/
+
+static inline uint16_t ipv4_nat_l4_hdrlen(uint8_t proto)
+{
+#ifdef CONFIG_NET_TCP

Review Comment:
   Done!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to