This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2.7 | |
# This program reads lines on stdin and copies them to stdout, after | |
# appending any IPv4 addresses found on the line with geo information. | |
# | |
# Examples: | |
# | |
# $ echo "Hello there" | ./ilgeoip.py | |
# Hello there | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
import re | |
import logging | |
import ipaddress | |
import netrc | |
from netmiko import Netmiko | |
# Netmiko script to place different interfaces in different VLANs based |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# Convert an IPv4 address in standard (dotted decimal) notation to a | |
# decimal number, for educational/entertainment purposes | |
# . | |
# | |
# E.g. | |
# | |
# vnetman@vnetman-laptop:~/data/bin$ ./ipv4.py | |
# Usage: ./ipv4.py <ipv4 address> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
import sys | |
import hashlib | |
def md5sum(filename): | |
try: | |
fh = open(filename, 'rb') | |
except IOError as e: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/hosts3d.cpp b/src/hosts3d.cpp | |
index 6ac5886..b8b0bed 100644 | |
--- a/src/hosts3d.cpp | |
+++ b/src/hosts3d.cpp | |
@@ -49,6 +49,7 @@ host_type *seltd = 0, *lnkht = 0; //selected host, link line host | |
MyLL hstsLL, lnksLL, altsLL, pktsLL; //dynamic data struct for hosts, links, alerts, packets | |
GLuint objsDraw; //GL compiled objects | |
MyGLWin GLWin; //2D GUI | |
+unsigned long long pktsSeen = 0ull; | |