Module Name:    src
Committed By:   alnsn
Date:           Fri Dec 30 14:12:15 UTC 2011

Modified Files:
        src/share/man/man4: bpf.4

Log Message:
Document that overflow in P[X+k:n] terminates a filter program.
Based on a discussion with Christos on source-changes-d.


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/share/man/man4/bpf.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man4/bpf.4
diff -u src/share/man/man4/bpf.4:1.48 src/share/man/man4/bpf.4:1.49
--- src/share/man/man4/bpf.4:1.48	Tue Dec 27 21:47:04 2011
+++ src/share/man/man4/bpf.4	Fri Dec 30 14:12:15 2011
@@ -1,6 +1,6 @@
 .\" -*- nroff -*-
 .\"
-.\"	$NetBSD: bpf.4,v 1.48 2011/12/27 21:47:04 wiz Exp $
+.\"	$NetBSD: bpf.4,v 1.49 2011/12/30 14:12:15 alnsn Exp $
 .\"
 .\" Copyright (c) 1990, 1991, 1992, 1993, 1994
 .\"	The Regents of the University of California.  All rights reserved.
@@ -515,6 +515,8 @@ halfword
 .Sy ( BPF_H ) ,
 or byte
 .Sy ( BPF_B ) .
+Arithmetic overflow when calculating a variable offset terminates
+the filter program and the packet is ignored.
 The semantics of all the recognized BPF_LD instructions follow.
 .Bl -column "BPF_LD_BPF_W_BPF_ABS" "A \*[Lt]- P[k:4]" -offset indent
 .It Sy BPF_LD+BPF_W+BPF_ABS Ta A \*[Lt]- P[k:4]

Reply via email to