summaryrefslogtreecommitdiff
path: root/iftop.c
diff options
context:
space:
mode:
authorpdw <>2011-10-03 20:21:55 +0000
committerpdw <>2011-10-03 20:21:55 +0000
commitfc511cfea99e21c5359259728b360670abcd8068 (patch)
treefb277e1270b5a4b7b3f67d55b258d1e1db1beed0 /iftop.c
parentcd57e7672730bfb08bf087d090601e168e7d69d7 (diff)
downloadiftop-fc511cfea99e21c5359259728b360670abcd8068.zip
Patch from Scott Bertilson <ssb@umn.edu> to remove dependence on s6_addr32.
Diffstat (limited to 'iftop.c')
-rw-r--r--iftop.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/iftop.c b/iftop.c
index d372180..e1c2953 100644
--- a/iftop.c
+++ b/iftop.c
@@ -328,11 +328,11 @@ static void handle_ip_packet(struct ip* iptr, int hw_dir)
/* First reduce the participating addresses using the netfilter prefix.
* We need scratch pads to do this.
*/
- for (j=0; j < 4; ++j) {
- scribdst.s6_addr32[j] = ip6tr->ip6_dst.s6_addr32[j]
- & options.netfilter6mask.s6_addr32[j];
- scribsrc.s6_addr32[j] = ip6tr->ip6_src.s6_addr32[j]
- & options.netfilter6mask.s6_addr32[j];
+ for (j=0; j < 16; ++j) {
+ scribdst.s6_addr[j] = ip6tr->ip6_dst.s6_addr[j]
+ & options.netfilter6mask.s6_addr[j];
+ scribsrc.s6_addr[j] = ip6tr->ip6_src.s6_addr[j]
+ & options.netfilter6mask.s6_addr[j];
}
/* Now look for any hits. */