diff options
author | Luca Deri <deri@ntop.org> | 2015-10-12 09:15:02 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2015-10-12 09:15:02 +0200 |
commit | 247acce949e6647892f745248fa46d1264eb3d90 (patch) | |
tree | a14a2237b74cfed4fb0cce439a8d0ef1fb0b3e8b /example/ndpiReader.c | |
parent | 91b2e0bff2e233c006c347ea3186725f2f597879 (diff) |
Simplified IPv6 typedefs
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r-- | example/ndpiReader.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 71bb1f352..91e98b2f4 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -917,8 +917,8 @@ static struct ndpi_flow *get_ndpi_flow6(u_int16_t thread_id, memset(&iph, 0, sizeof(iph)); iph.version = 4; - iph.saddr = iph6->ip6_src.__u6_addr.__u6_addr32[2] + iph6->ip6_src.__u6_addr.__u6_addr32[3]; - iph.daddr = iph6->ip6_dst.__u6_addr.__u6_addr32[2] + iph6->ip6_dst.__u6_addr.__u6_addr32[3]; + iph.saddr = iph6->ip6_src.u6_addr.u6_addr32[2] + iph6->ip6_src.u6_addr.u6_addr32[3]; + iph.daddr = iph6->ip6_dst.u6_addr.u6_addr32[2] + iph6->ip6_dst.u6_addr.u6_addr32[3]; iph.protocol = iph6->ip6_ctlun.ip6_un1.ip6_un1_nxt; if(iph.protocol == 0x3C /* IPv6 destination option */) { |