diff options
author | Eugeni Dodonov <eugeni@mandriva.com> | 2010-05-25 15:33:56 -0300 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.com> | 2010-05-25 15:33:56 -0300 |
commit | 33730bf28c2c0722b74a2102ed089666d6898eda (patch) | |
tree | ec0b4ce4e784673aa9d7a64f0de020ee1fb08432 /src | |
parent | 739d41b8c767d7d3620121bcd4c01d604e607475 (diff) | |
download | net_monitor-33730bf28c2c0722b74a2102ed089666d6898eda.tar net_monitor-33730bf28c2c0722b74a2102ed089666d6898eda.tar.gz net_monitor-33730bf28c2c0722b74a2102ed089666d6898eda.tar.bz2 net_monitor-33730bf28c2c0722b74a2102ed089666d6898eda.tar.xz net_monitor-33730bf28c2c0722b74a2102ed089666d6898eda.zip |
properly detect routes on x86_64 systems
Diffstat (limited to 'src')
-rw-r--r-- | src/monitor.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/monitor.py b/src/monitor.py index e77847e..f52d2cd 100644 --- a/src/monitor.py +++ b/src/monitor.py @@ -225,7 +225,7 @@ class Monitor: iface = params[0] dst = int(params[1], 16) gw = int(params[2], 16) - gw_str = socket.inet_ntoa(struct.pack("L", gw)) + gw_str = socket.inet_ntoa(struct.pack("i", gw)) metric = int(params[6], 16) mask = int(params[7], 16) routes.append((iface, dst, mask, gw, metric)) |