]> The Tcpdump Group git mirrors - libpcap/commit
In userland, sign extend the offset for JA instructions.
authorGuy Harris <[email protected]>
Thu, 5 May 2011 05:28:53 +0000 (22:28 -0700)
committerGuy Harris <[email protected]>
Thu, 5 May 2011 05:28:53 +0000 (22:28 -0700)
commitecdc5c0a7f7591a7cd4aff696e42757c677fbbf7
treeb0a5b63923aad6190e221083bbcfcc562a61eac1
parentf3e011b18c55aefbc6294e32fb00c46f92625579
In userland, sign extend the offset for JA instructions.

We currently use that to implement "ip6 protochain", and "pc" might be
wider than "pc->k", in which case we need to arrange that "pc->k" be
sign-extended, by casting it to bpf_int32.
bpf/net/bpf_filter.c