Package: release.debian.org
Severity: normal
Tags: jessie
User: release.debian@packages.debian.org
Usertags: pu
changelog |8
patches/series |1 +
patches/ugram-socket.patch | 16
3 files changed, 25 insertions(+)
diff -Nru nethogs-0.8.0/debian/changelog nethogs-0.8.0/debian/changelog
--- nethogs-0.8.0/debian/changelog 2011-08-27 20:48:58.0 +0300
+++ nethogs-0.8.0/debian/changelog 2017-05-25 23:17:54.0 +0300
@@ -1,3 +1,11 @@
+nethogs (0.8.0-1+deb8u1) jessie; urgency=medium
+
+ * Non-maintainer upload.
+ * Add upstream patch for "creating socket failed while
+establishing local IP" bug. (Closes: #808433)
+
+ -- Adrian Bunk Thu, 25 May 2017 23:12:56 +0300
+
nethogs (0.8.0-1) unstable; urgency=low
* Switch to dpkg-source 3.0 (quilt) format.
diff -Nru nethogs-0.8.0/debian/patches/series
nethogs-0.8.0/debian/patches/series
--- nethogs-0.8.0/debian/patches/series 2011-08-27 20:44:48.0 +0300
+++ nethogs-0.8.0/debian/patches/series 2017-05-25 23:15:26.0 +0300
@@ -1,2 +1,3 @@
02_geteuid.diff
04_makefile.diff
+ugram-socket.patch
diff -Nru nethogs-0.8.0/debian/patches/ugram-socket.patch
nethogs-0.8.0/debian/patches/ugram-socket.patch
--- nethogs-0.8.0/debian/patches/ugram-socket.patch 1970-01-01
02:00:00.0 +0200
+++ nethogs-0.8.0/debian/patches/ugram-socket.patch 2017-05-25
23:16:49.0 +0300
@@ -0,0 +1,16 @@
+Description: Use a normal DGRAM (UDP) socket to determine local IPv4 IP
+Author: Arnout Engelen
+Bug-Debian: https://bugs.debian.org/808433
+Origin: upstream,
https://github.com/raboof/nethogs/commit/ee8b7ea8a4c6f109f8080894734bbf4d6281c809
+
+--- nethogs-0.8.0.orig/packet.cpp
nethogs-0.8.0/packet.cpp
+@@ -38,7 +38,7 @@ void getLocal (const char *device, bool
+ struct ifreq iFreq;
+ struct sockaddr_in *saddr;
+
+- if((sock=socket(AF_INET, SOCK_RAW, htons(0x0806)))<0){
++ if((sock=socket(AF_INET, SOCK_DGRAM, 0))<0){
+ forceExit("creating socket failed while establishing local IP -
are you root?");
+ }
+ strcpy(iFreq.ifr_name, device);