Commit c3b6a9f
ldx
Accept parameter values with whitespace.
E.g. the tcp match extension uses --tcp-flags in this way:
# iptables -I INPUT -p 23 -m tcp --tcp-flags ACK SYN -j REJECT
Parameters like this need to be passed quoted in python-iptables:
>>> rule.create_match("tcp")
>>> match.tcp_flags = "\"ACK SYN\""1 parent ecb8d47 commit c3b6a9f
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
258 | 259 | | |
259 | 260 | | |
260 | 261 | | |
261 | | - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
262 | 267 | | |
263 | | - | |
| 268 | + | |
| 269 | + | |
264 | 270 | | |
265 | 271 | | |
266 | 272 | | |
| |||
0 commit comments