fullcone-nat-nftables / libnftnl-1.2.4-with-fullcone

GNU General Public License v2.0
2 stars 1 forks source link

please update to 1.2.7 #1

Closed debiansid closed 3 months ago

debiansid commented 3 months ago

cherry-pick old patch

CC       expr/fullcone.lo                            
expr/fullcone.c:161:10: error: 'struct expr_ops' has no member named 'max_attr'                               
  161 |         .max_attr       = NFTA_FULLCONE_MAX,   
      |          ^~~~~~~~                              
make[2]: *** [Makefile:714: expr/fullcone.lo] Error 1  
make[2]: Leaving directory '/home/aports/main/libnftnl/src/libnftnl-1.2.7/src'                         
make[1]: *** [Makefile:496: all-recursive] Error 1     
make[1]: Leaving directory '/home/aports/main/libnftnl/src/libnftnl-1.2.7'                             
make: *** [Makefile:402: all] Error 2                  
>>> ERROR: libnftnl: build failed
debiansid commented 3 months ago

i add

diff --git a/include/expr_ops.h b/include/expr_ops.h
index 6cfb3b5..a6dbe42 100644
--- a/include/expr_ops.h
+++ b/include/expr_ops.h
@@ -15,6 +15,7 @@ struct attr_policy {
 struct expr_ops {
    const char *name;
    uint32_t alloc_len;
+   int max_attr;
    int nftnl_max_attr;
    struct attr_policy *attr_policy;
    void    (*init)(const struct nftnl_expr *e);

now i can compile it , not sure it is right