X-Git-Url: http://git.tdb.fi/?p=netvis.git;a=blobdiff_plain;f=source%2Fnetvis.h;h=cd451339880c4fc5d40ceaf0666df937f34461f2;hp=a59b65061f37141f30bacb88cf0145cf61b21d19;hb=e4b57e21ec2bc7f99c182eea23ecec297e111799;hpb=c1ea3cf06729622e2287e1604b1847d14fd2089c diff --git a/source/netvis.h b/source/netvis.h index a59b650..cd45133 100644 --- a/source/netvis.h +++ b/source/netvis.h @@ -13,6 +13,7 @@ Distributed unter the GPL #include #include #include +#include #include #include #include @@ -49,7 +50,7 @@ private: std::string iface; pcap_t *pcap; Resolver *resolver; - Address localnet; + std::list
localnets; Msp::Graphics::SimpleGLWindow *wnd; Msp::GL::Font *font; @@ -85,6 +86,7 @@ private: static void capture_handler(unsigned char *, const pcap_pkthdr *, const unsigned char *); void handle_ethernet(CaptureContext &, const ethhdr *, unsigned); void handle_ipv4(CaptureContext &, const iphdr *, unsigned); + void handle_ipv6(CaptureContext &, const ip6_hdr *, unsigned); void handle_tcp(CaptureContext &, const tcphdr *, unsigned); void handle_udp(CaptureContext &, const udphdr *, unsigned); void handle_packet(CaptureContext &);