act_ipt.c (b409074e6693bcdaa7abbee2a035f22a9eabda53) | act_ipt.c (4e8ddd7f1758ca4ddd0c1f7cf3e66fce736241d2) |
---|---|
1/* 2 * net/sched/act_ipt.c iptables target interface 3 * 4 *TODO: Add other tables. For now we only support the ipv4 table targets 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation; either version --- 131 unchanged lines hidden (view full) --- 140 ret = tcf_idr_create(tn, index, est, a, ops, bind, 141 false); 142 if (ret) 143 return ret; 144 ret = ACT_P_CREATED; 145 } else { 146 if (bind)/* dont override defaults */ 147 return 0; | 1/* 2 * net/sched/act_ipt.c iptables target interface 3 * 4 *TODO: Add other tables. For now we only support the ipv4 table targets 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation; either version --- 131 unchanged lines hidden (view full) --- 140 ret = tcf_idr_create(tn, index, est, a, ops, bind, 141 false); 142 if (ret) 143 return ret; 144 ret = ACT_P_CREATED; 145 } else { 146 if (bind)/* dont override defaults */ 147 return 0; |
148 tcf_idr_release(*a, bind); | |
149 | 148 |
150 if (!ovr) | 149 if (!ovr) { 150 tcf_idr_release(*a, bind); |
151 return -EEXIST; | 151 return -EEXIST; |
152 } |
|
152 } 153 hook = nla_get_u32(tb[TCA_IPT_HOOK]); 154 155 err = -ENOMEM; 156 tname = kmalloc(IFNAMSIZ, GFP_KERNEL); 157 if (unlikely(!tname)) 158 goto err1; 159 if (tb[TCA_IPT_TABLE] == NULL || --- 296 unchanged lines hidden --- | 153 } 154 hook = nla_get_u32(tb[TCA_IPT_HOOK]); 155 156 err = -ENOMEM; 157 tname = kmalloc(IFNAMSIZ, GFP_KERNEL); 158 if (unlikely(!tname)) 159 goto err1; 160 if (tb[TCA_IPT_TABLE] == NULL || --- 296 unchanged lines hidden --- |