pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/dnsmasq dnsmasq: Add compat IPDEFTTL define.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d6b255990608
branches:  trunk
changeset: 386815:d6b255990608
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Tue Oct 30 11:16:06 2018 +0000

description:
dnsmasq: Add compat IPDEFTTL define.

diffstat:

 net/dnsmasq/distinfo                 |   3 ++-
 net/dnsmasq/patches/patch-src_dump.c |  16 ++++++++++++++++
 2 files changed, 18 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r 796985c38f76 -r d6b255990608 net/dnsmasq/distinfo
--- a/net/dnsmasq/distinfo      Tue Oct 30 10:33:36 2018 +0000
+++ b/net/dnsmasq/distinfo      Tue Oct 30 11:16:06 2018 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.36 2018/10/27 07:57:10 maya Exp $
+$NetBSD: distinfo,v 1.37 2018/10/30 11:16:06 jperkin Exp $
 
 SHA1 (dnsmasq-2.80.tar.xz) = 45317f3ce129c670c812428f97b92273b5286df0
 RMD160 (dnsmasq-2.80.tar.xz) = 5a26def1ae9a47a2debe08845dfc41d14f3bfa2e
 SHA512 (dnsmasq-2.80.tar.xz) = 58e56beb553fc41311e5dc16d8b0eb3b6801e2bdfbcd0e7a6659703f08960b6ad10d48b0b14a4d727636faf35483e01597cff2ae49e7fe9fa9e214f437b1c068
 Size (dnsmasq-2.80.tar.xz) = 501072 bytes
 SHA1 (patch-src_bpf.c) = 05dc64c016c608e6b963ce9ee80c28e872a88f9e
+SHA1 (patch-src_dump.c) = 3e7553e8ed2444536ba94187f7a100a9abdbb353
diff -r 796985c38f76 -r d6b255990608 net/dnsmasq/patches/patch-src_dump.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/dnsmasq/patches/patch-src_dump.c      Tue Oct 30 11:16:06 2018 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_dump.c,v 1.1 2018/10/30 11:16:06 jperkin Exp $
+
+Add IPDEFTTL compat.
+
+--- src/dump.c.orig    2018-10-18 18:21:55.000000000 +0000
++++ src/dump.c
+@@ -148,6 +148,9 @@ void dump_packet(int mask, void *packet,
+       ip.ip_v = IPVERSION;
+       ip.ip_hl = sizeof(struct ip) / 4;
+       ip.ip_len = htons(sizeof(struct ip) + sizeof(struct udphdr) + len); 
++#ifndef IPDEFTTL
++#define IPDEFTTL      64
++#endif
+       ip.ip_ttl = IPDEFTTL;
+       ip.ip_p = IPPROTO_UDP;
+       



Home | Main Index | Thread Index | Old Index