Code

patches: Added recvtos -- patch for #618729 (missing IP_RECVTOS on FreeBSD).
authorSebastian Harl <sh@tokkee.org>
Thu, 13 Oct 2011 13:39:18 +0000 (15:39 +0200)
committerSebastian Harl <sh@tokkee.org>
Thu, 13 Oct 2011 13:39:18 +0000 (15:39 +0200)
debian/changelog
debian/patches/recvtos [new file with mode: 0644]
debian/patches/series [new file with mode: 0644]

index 91f207991c59e331088e7f1f3d1f9526fcf2b7ca..2d62a9106ca7df0cea69d2847eaa50ae77489e53 100644 (file)
@@ -10,8 +10,11 @@ liboping (1.6.1+2.g207d51d-2) unstable; urgency=low
     - Switched to '3.0 (quilt)' format.
   * debian/control:
     - Added Barak to uploaders.
+  * debian/patches:
+    - Added recvtos -- patch for #618729 (missing IP_RECVTOS on FreeBSD) as
+      separate patch.
 
- -- Sebastian Harl <tokkee@debian.org>  Thu, 13 Oct 2011 15:36:35 +0200
+ -- Sebastian Harl <tokkee@debian.org>  Thu, 13 Oct 2011 15:38:23 +0200
 
 liboping (1.6.1+2.g207d51d-1.1) unstable; urgency=low
 
diff --git a/debian/patches/recvtos b/debian/patches/recvtos
new file mode 100644 (file)
index 0000000..ccd54a0
--- /dev/null
@@ -0,0 +1,15 @@
+--- a/src/liboping.c
++++ b/src/liboping.c
+@@ -1540,10 +1540,12 @@
+               {
+                       int opt;
++#ifdef IP_RECVTOS
+                       /* Enable receiving the TOS field */
+                       opt = 1;
+                       setsockopt (ph->fd, IPPROTO_IP, IP_RECVTOS,
+                                       &opt, sizeof (opt));
++#endif        /* IP_RECVTOS */
+                       /* Enable receiving the TTL field */
+                       opt = 1;
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644 (file)
index 0000000..2f78422
--- /dev/null
@@ -0,0 +1 @@
+recvtos