From: Sebastian Harl Date: Thu, 13 Oct 2011 13:39:18 +0000 (+0200) Subject: patches: Added recvtos -- patch for #618729 (missing IP_RECVTOS on FreeBSD). X-Git-Tag: liboping-1.6.1+2.g207d51d-2~4 X-Git-Url: https://git.tokkee.org/?p=pkg-liboping.git;a=commitdiff_plain;h=4670892b94804ae0716d0346a3dcc2204c3236a4 patches: Added recvtos -- patch for #618729 (missing IP_RECVTOS on FreeBSD). --- diff --git a/debian/changelog b/debian/changelog index 91f2079..2d62a91 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Thu, 13 Oct 2011 15:36:35 +0200 + -- Sebastian Harl 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 index 0000000..ccd54a0 --- /dev/null +++ b/debian/patches/recvtos @@ -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 index 0000000..2f78422 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +recvtos