From 226512574f738c9f9e903f8485a23861378f9f2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20B=C3=B6hm?= Date: Mon, 5 Sep 2022 14:42:39 +0200 Subject: [PATCH] xdp-filter: Update examples in documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The examples use the outdated flag `-w`. This commit replaces them with the policy option to achieve the same funcitonality. Signed-off-by: Tobias Böhm --- xdp-filter/README.org | 4 ++-- xdp-filter/xdp-filter.8 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/xdp-filter/README.org b/xdp-filter/README.org index 401ec5e2..3a4df60c 100644 --- a/xdp-filter/README.org +++ b/xdp-filter/README.org @@ -271,7 +271,7 @@ To filter all packets *except* those from IP address fc00:dead:cafe::1 issue the following commands (careful, this can lock you out of remote access!): #+begin_src sh -# xdp-filter load eth0 -f ipv6 -w +# xdp-filter load eth0 -f ipv6 -p deny # xdp-filter ip fc00:dead:cafe::1 -m src #+end_src @@ -279,7 +279,7 @@ To allow packets from *either* IP fc00:dead:cafe::1 *or* arriving on port 22, issue the following (careful, this can lock you out of remote access!): #+begin_src sh -# xdp-filter load eth0 -f ipv6,tcp -w +# xdp-filter load eth0 -f ipv6,tcp -p deny # xdp-filter port 22 # xdp-filter ip fc00:dead:cafe::1 -m src #+end_src diff --git a/xdp-filter/xdp-filter.8 b/xdp-filter/xdp-filter.8 index 4bac1e07..bb067740 100644 --- a/xdp-filter/xdp-filter.8 +++ b/xdp-filter/xdp-filter.8 @@ -342,7 +342,7 @@ following commands (careful, this can lock you out of remote access!): .RS .nf -\fC# xdp-filter load eth0 -f ipv6 -w +\fC# xdp-filter load eth0 -f ipv6 -p deny # xdp-filter ip fc00:dead:cafe::1 -m src \fP .fi @@ -354,7 +354,7 @@ issue the following (careful, this can lock you out of remote access!): .RS .nf -\fC# xdp-filter load eth0 -f ipv6,tcp -w +\fC# xdp-filter load eth0 -f ipv6,tcp -p deny # xdp-filter port 22 # xdp-filter ip fc00:dead:cafe::1 -m src \fP