anchao commented on code in PR #12156:
URL: https://github.com/apache/nuttx/pull/12156#discussion_r1567340621
##########
net/nat/ipv4_nat_entry.c:
##########
@@ -195,39 +204,47 @@ static void ipv4_nat_entry_delete(FAR ipv4_nat_entry_t
*entry)
****************************************************************************/
#if CONFIG_NET_NAT_ENTRY_RECLAIM_SEC > 0
+static void ipv4_nat_reclaim_entry_cb(FAR ipv4_nat_entry_t *entry,
+ FAR void *arg)
+{
+ int32_t current_time = *(int32_t *)arg;
Review Comment:
I just confuse why `int32_t` is used for time value, it would be more
reasonable to use clock_t for time value If there is no guarantee that the var
is within the range of int32_t.
--
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]