Commit Graph
6 Commits
Author SHA1 Message Date
Andrei VaginandgVisor bot 8aa0582fec test/syscall/iptables: don't use designated initializers
test/syscalls/linux/iptables.cc:130:3:
error: C99 designator 'name' outside aggregate initializer
  130 |   };
      |
PiperOrigin-RevId: 336331738
2020-10-09 11:30:52 -07:00
Kevin KrakauerandgVisor bot cdf595466a iptables: refactor to make targets extendable
Like matchers, targets should use a module-like register/lookup system. This
replaces the brittle switch statements we had before.

The only behavior change is supporing IPT_GET_REVISION_TARGET. This makes it
much easier to add IPv6 redirect in the next change.

Updates #3549.

PiperOrigin-RevId: 334469418
2020-09-29 15:02:25 -07:00
Kevin KrakauerandgVisor bot 35a3137244 fix panic when calling SO_ORIGINAL_DST without initializing iptables
Reported-by: [email protected]
PiperOrigin-RevId: 328963899
2020-08-28 10:35:18 -07:00
Kevin KrakauerandgVisor bot ca8ed98819 remove iptables sockopt special cases
iptables sockopts were kludged into an unnecessary check, this properly
relegates them to the {get,set}SockOptIP functions.

PiperOrigin-RevId: 328395135
2020-08-25 13:43:26 -07:00
Kevin KrakauerandgVisor bot eb3020924c ip6tables: test initial state
Tests that we have the correct initial (empty) state for ip6tables.

#3549

PiperOrigin-RevId: 327477657
2020-08-19 12:03:34 -07:00
Kevin KrakauerandgVisor bot 9e2a042b2f Read iptables via sockopts.
PiperOrigin-RevId: 264180125
2019-08-19 10:05:59 -07:00