NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/45750: Type of k in bpf_insn is bpf(9) is different from sys/net/bpf.h



>Number:         45750
>Category:       kern
>Synopsis:       Type of k in bpf_insn is bpf(9) is different from sys/net/bpf.h
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 27 21:10:00 +0000 2011
>Originator:     Alexander Nasonov
>Release:        amd64 current
>Organization:
home sweet home
>Environment:
doesn't matter
>Description:
k is int32_t in bpf(4) and uint32_t in sys/net/bpf.h
>How-To-Repeat:
man bpf and vim sys/net/bpf.h
>Fix:
Index: share/man/man4/bpf.4
===================================================================
RCS file: /cvsroot/src/share/man/man4/bpf.4,v
retrieving revision 1.46
diff -p -u -u -r1.46 bpf.4
--- share/man/man4/bpf.4        8 Jun 2010 04:11:06 -0000       1.46
+++ share/man/man4/bpf.4        27 Dec 2011 21:06:04 -0000
@@ -451,7 +451,7 @@ struct bpf_insn {
        uint16_t code;
        u_char  jt;
        u_char  jf;
-       int32_t k;
+       uint32_t k;
 };
 .Ed
 .Pp



Home | Main Index | Thread Index | Old Index