xiaoxiang781216 commented on code in PR #22481:
URL: https://github.com/apache/nuttx/pull/22481#discussion_r4727367446


##########
net/ipfilter/ipfilter.c:
##########
@@ -395,78 +420,84 @@ FAR struct ipfilter_entry_s 
*ipfilter_cfg_alloc(sa_family_t family)
  * Name: ipfilter_cfg_add
  *
  * Description:
- *   Add a new filter configuration entry for the given address family to the
- *   end of specified chain.
+ *   Add a new filter configuration entry to the end of a chain that the
+ *   caller builds.  The chain becomes active with ipfilter_cfg_replace().
  *
  * Input Parameters:
- *   entry  - The filter entry to add
- *   family - The address family of the filter entry
- *   chain  - The chain to add the filter entry to
+ *   entry - The filter entry to add
+ *   queue - The chain to add the filter entry to
  *
  * Returned Value:
  *   None
  *
  ****************************************************************************/
 
 void ipfilter_cfg_add(FAR struct ipfilter_entry_s *entry,

Review Comment:
   why not remove ipfilter_cfg_add and call sq_addlast directly



-- 
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