Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/man/man4 bpf(4): use nicer glyphs for some operations ...
details: https://anonhg.NetBSD.org/src/rev/358283fcf19f
branches: trunk
changeset: 373456:358283fcf19f
user: uwe <uwe%NetBSD.org@localhost>
date: Sat Feb 11 11:49:02 2023 +0000
description:
bpf(4): use nicer glyphs for some operations in PS output
diffstat:
share/man/man4/bpf.4 | 19 ++++++++++---------
1 files changed, 10 insertions(+), 9 deletions(-)
diffs (51 lines):
diff -r 07673798ae88 -r 358283fcf19f share/man/man4/bpf.4
--- a/share/man/man4/bpf.4 Sat Feb 11 11:34:49 2023 +0000
+++ b/share/man/man4/bpf.4 Sat Feb 11 11:49:02 2023 +0000
@@ -1,6 +1,6 @@
.\" -*- nroff -*-
.\"
-.\" $NetBSD: bpf.4,v 1.69 2023/02/11 11:34:49 uwe Exp $
+.\" $NetBSD: bpf.4,v 1.70 2023/02/11 11:49:02 uwe Exp $
.\"
.\" Copyright (c) 1990, 1991, 1992, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
@@ -648,22 +648,22 @@
.Sy BPF_X ) .
.Bl -column "\*[max-insn]" -offset indent
.It Sy BPF_ALU+BPF_ADD+BPF_K Ta A \[<-] A + k
-.It Sy BPF_ALU+BPF_SUB+BPF_K Ta A \[<-] A - k
+.It Sy BPF_ALU+BPF_SUB+BPF_K Ta A \[<-] A \- k
.It Sy BPF_ALU+BPF_MUL+BPF_K Ta A \[<-] A * k
.It Sy BPF_ALU+BPF_DIV+BPF_K Ta A \[<-] A / k
.It Sy BPF_ALU+BPF_AND+BPF_K Ta A \[<-] A & k
.It Sy BPF_ALU+BPF_OR+BPF_K Ta A \[<-] A | k
-.It Sy BPF_ALU+BPF_LSH+BPF_K Ta A \[<-] A << k
-.It Sy BPF_ALU+BPF_RSH+BPF_K Ta A \[<-] A >> k
+.It Sy BPF_ALU+BPF_LSH+BPF_K Ta A \[<-] A \[<<] k
+.It Sy BPF_ALU+BPF_RSH+BPF_K Ta A \[<-] A \[>>] k
.It Sy BPF_ALU+BPF_ADD+BPF_X Ta A \[<-] A + X
-.It Sy BPF_ALU+BPF_SUB+BPF_X Ta A \[<-] A - X
+.It Sy BPF_ALU+BPF_SUB+BPF_X Ta A \[<-] A \- X
.It Sy BPF_ALU+BPF_MUL+BPF_X Ta A \[<-] A * X
.It Sy BPF_ALU+BPF_DIV+BPF_X Ta A \[<-] A / X
.It Sy BPF_ALU+BPF_AND+BPF_X Ta A \[<-] A & X
.It Sy BPF_ALU+BPF_OR+BPF_X Ta A \[<-] A | X
-.It Sy BPF_ALU+BPF_LSH+BPF_X Ta A \[<-] A << X
-.It Sy BPF_ALU+BPF_RSH+BPF_X Ta A \[<-] A >> X
-.It Sy BPF_ALU+BPF_NEG Ta A \[<-] -A
+.It Sy BPF_ALU+BPF_LSH+BPF_X Ta A \[<-] A \[<<] X
+.It Sy BPF_ALU+BPF_RSH+BPF_X Ta A \[<-] A \[>>] X
+.It Sy BPF_ALU+BPF_NEG Ta A \[<-] \-A
.El
.It Sy BPF_JMP
The jump instructions alter flow of control.
@@ -693,7 +693,8 @@
.El
.It Sy BPF_RET
The return instructions terminate the filter program and specify the amount
-of packet to accept (i.e., they return the truncation amount).
+of packet to accept
+.Pq i.e., they return the truncation amount .
A return value of zero indicates that the packet should be ignored.
The return value is either a constant
.Sy ( BPF_K )
Home |
Main Index |
Thread Index |
Old Index