ebt_get_target similar to {ip/ip6/arp}t_get_target. and ebt_get_target_c similar to {ip/ip6/arp}t_get_target_c.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -191,6 +191,12 @@ struct ebt_entry { · 190 unmodified lines | ||
| 191 | 191 | unsigned char elems[0] __attribute__ ((aligned (__alignof__(struct ebt_replace)))); |
| 192 | 192 | }; |
| 193 | 193 | |
| 194 | +static __inline__ struct ebt_entry_target * | |
| 195 | +ebt_get_target(struct ebt_entry *e) | |
| 196 | +{ | |
| 197 | + return (void *)e + e->target_offset; | |
| 198 | +} | |
| 199 | + | |
| 194 | 200 | /* {g,s}etsockopt numbers */ |
| 195 | 201 | #define EBT_BASE_CTL 128 |
| 196 | 202 | |