History

netfilter: ebtables: add ebt_get_target and ebt_get_target_c

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.

Taehee Yoo committed 8 years ago

Commit a1d768f1 parent 4351bef2 files · +19 −9Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/netfilter_bridge/ebtables.h+6−0
@@ -191,6 +191,12 @@ struct ebt_entry { · 190 unmodified lines
191 unsigned char elems[0] __attribute__ ((aligned (__alignof__(struct ebt_replace))));191 unsigned char elems[0] __attribute__ ((aligned (__alignof__(struct ebt_replace))));
192};192};
193 193
194static __inline__ struct ebt_entry_target *
195ebt_get_target(struct ebt_entry *e)
196{
197 return (void *)e + e->target_offset;
198}
199
194/* {g,s}etsockopt numbers */200/* {g,s}etsockopt numbers */
195#define EBT_BASE_CTL 128201#define EBT_BASE_CTL 128
196 202

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t