@@ -390,8 +390,11 @@ int netlib_obtain_ipv6addr(FAR const char *ifname);
390
390
391
391
struct ipt_replace ; /* Forward reference */
392
392
struct ipt_entry ; /* Forward reference */
393
+ struct ip6t_replace ; /* Forward reference */
394
+ struct ip6t_entry ; /* Forward reference */
393
395
enum nf_inet_hooks ; /* Forward reference */
394
396
397
+ # ifdef CONFIG_NET_IPv4
395
398
FAR struct ipt_replace * netlib_ipt_prepare (FAR const char * table );
396
399
int netlib_ipt_commit (FAR const struct ipt_replace * repl );
397
400
int netlib_ipt_flush (FAR const char * table , enum nf_inet_hooks hook );
@@ -409,15 +412,40 @@ int netlib_ipt_delete(FAR struct ipt_replace *repl,
409
412
int netlib_ipt_fillifname (FAR struct ipt_entry * entry ,
410
413
FAR const char * inifname ,
411
414
FAR const char * outifname );
412
- # ifdef CONFIG_NET_NAT
415
+ # ifdef CONFIG_NET_NAT
413
416
FAR struct ipt_entry * netlib_ipt_masquerade_entry (FAR const char * ifname );
414
- # endif
415
- # ifdef CONFIG_NET_IPFILTER
417
+ # endif
418
+ # ifdef CONFIG_NET_IPFILTER
416
419
FAR struct ipt_entry * netlib_ipt_filter_entry (FAR const char * target ,
417
420
int verdict ,
418
421
uint8_t match_proto );
419
- # endif
420
- #endif
422
+ # endif
423
+ # endif /* CONFIG_NET_IPv4 */
424
+ # ifdef CONFIG_NET_IPv6
425
+ FAR struct ip6t_replace * netlib_ip6t_prepare (FAR const char * table );
426
+ int netlib_ip6t_commit (FAR const struct ip6t_replace * repl );
427
+ int netlib_ip6t_flush (FAR const char * table , enum nf_inet_hooks hook );
428
+ int netlib_ip6t_policy (FAR const char * table , enum nf_inet_hooks hook ,
429
+ int verdict );
430
+ int netlib_ip6t_append (FAR struct ip6t_replace * * repl ,
431
+ FAR const struct ip6t_entry * entry ,
432
+ enum nf_inet_hooks hook );
433
+ int netlib_ip6t_insert (FAR struct ip6t_replace * * repl ,
434
+ FAR const struct ip6t_entry * entry ,
435
+ enum nf_inet_hooks hook , int rulenum );
436
+ int netlib_ip6t_delete (FAR struct ip6t_replace * repl ,
437
+ FAR const struct ip6t_entry * entry ,
438
+ enum nf_inet_hooks hook , int rulenum );
439
+ int netlib_ip6t_fillifname (FAR struct ip6t_entry * entry ,
440
+ FAR const char * inifname ,
441
+ FAR const char * outifname );
442
+ # ifdef CONFIG_NET_IPFILTER
443
+ FAR struct ip6t_entry * netlib_ip6t_filter_entry (FAR const char * target ,
444
+ int verdict ,
445
+ uint8_t match_proto );
446
+ # endif
447
+ # endif /* CONFIG_NET_IPv6 */
448
+ #endif /* CONFIG_NET_IPTABLES */
421
449
422
450
#ifdef CONFIG_NETLINK_NETFILTER
423
451
/* Netfilter connection tracking support */
0 commit comments