diff options
author | Michal Bialozor <bialyy@o2.pl> | 2010-08-14 15:45:24 -0400 |
---|---|---|
committer | dsomero <xgizzmo@slackbuilds.org> | 2010-08-14 15:45:24 -0400 |
commit | 77dd75eaef6afecafdca97688e2df734c293610e (patch) | |
tree | 273bb7e5c628b7c81e4c01739f6f037054d55dcc /network/arpwatch/patches/arpwatch-2.1a15-bogon.patch | |
parent | a80381f7a58afcf40ec7c67f9cdd53b16e72bfc8 (diff) | |
download | slackbuilds-77dd75eaef6afecafdca97688e2df734c293610e.tar.gz |
network/arpwatch: Added (for tracking IP addresses on a network)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'network/arpwatch/patches/arpwatch-2.1a15-bogon.patch')
-rw-r--r-- | network/arpwatch/patches/arpwatch-2.1a15-bogon.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/network/arpwatch/patches/arpwatch-2.1a15-bogon.patch b/network/arpwatch/patches/arpwatch-2.1a15-bogon.patch new file mode 100644 index 0000000000..784deb015b --- /dev/null +++ b/network/arpwatch/patches/arpwatch-2.1a15-bogon.patch @@ -0,0 +1,20 @@ +--- arpwatch-2.1a15/arpwatch.c.bogon 2007-08-09 13:53:47.000000000 +0200 ++++ arpwatch-2.1a15/arpwatch.c 2007-08-09 13:58:17.000000000 +0200 +@@ -730,11 +730,12 @@ addnet(register const char *str) + + /* XXX hack */ + n = ntohl(inet_addr(tstr)); +- while ((n & 0xff000000) == 0) { +- n <<= 8; +- if (n == 0) +- return (0); +- } ++ if (n || width != 32) ++ while ((n & 0xff000000) == 0) { ++ n <<= 8; ++ if (n == 0) ++ return (0); ++ } + n = htonl(n); + + if (width != 0) { |