diff options
author | pdw <> | 2011-10-03 20:21:55 +0000 |
---|---|---|
committer | pdw <> | 2011-10-03 20:21:55 +0000 |
commit | fc511cfea99e21c5359259728b360670abcd8068 (patch) | |
tree | fb277e1270b5a4b7b3f67d55b258d1e1db1beed0 /iftop.c | |
parent | cd57e7672730bfb08bf087d090601e168e7d69d7 (diff) | |
download | iftop-fc511cfea99e21c5359259728b360670abcd8068.zip |
Patch from Scott Bertilson <ssb@umn.edu> to remove dependence on s6_addr32.
Diffstat (limited to 'iftop.c')
-rw-r--r-- | iftop.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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. */ |