FreeBSD Bugzilla – Attachment 255635 Details for
Bug 283138
[patch] dns/dnsmasq: Fix --dhcp-relay not working on FreeBSD
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Provide files/patch-relay_upstream4_dhcp.c
dns_dnsmasq-add-dhcp-relay-patch.diff (text/plain), 1.05 KB, created by
Harald Schmalzbauer
on 2024-12-05 09:24:06 UTC
(
hide
)
Description:
Provide files/patch-relay_upstream4_dhcp.c
Filename:
MIME Type:
Creator:
Harald Schmalzbauer
Created:
2024-12-05 09:24:06 UTC
Size:
1.05 KB
patch
obsolete
>diff --git a/dns/dnsmasq/Makefile b/dns/dnsmasq/Makefile >index 522c420f55a5..ac298eebee0c 100644 >--- a/dns/dnsmasq/Makefile >+++ b/dns/dnsmasq/Makefile >@@ -2,7 +2,7 @@ PORTNAME= dnsmasq > DISTVERSION= 2.90 > # Leave the PORTREVISION in even if 0 to avoid accidental PORTEPOCH bumps: > PORTREVISION= 2 >-PORTEPOCH= 1 >+PORTEPOCH= 2 > CATEGORIES= dns > MASTER_SITES= https://www.thekelleys.org.uk/dnsmasq/ \ > LOCAL/mandree/ >diff --git a/dns/dnsmasq/files/patch-relay_upstream4_dhcp.c b/dns/dnsmasq/files/patch-relay_upstream4_dhcp.c >new file mode 100644 >index 000000000000..93c1ad1cc04f >--- /dev/null >+++ b/dns/dnsmasq/files/patch-relay_upstream4_dhcp.c >@@ -0,0 +1,12 @@ >+--- ./src/dhcp.c.orig 2024-02-13 14:49:15.000000000 +0100 >++++ ./src/dhcp.c 2024-12-05 09:31:23.012958000 +0100 >+@@ -1121,6 +1121,9 @@ >+ to.sa.sa_family = AF_INET; >+ to.in.sin_addr = relay->server.addr4; >+ to.in.sin_port = htons(relay->port); >++#ifdef HAVE_SOCKADDR_SA_LEN >++ to.in.sin_len = sizeof(struct sockaddr_in); >++#endif >+ >+ /* Broadcasting to server. */ >+ if (relay->server.addr4.s_addr == 0)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
mandree
:
maintainer-approval-
Actions:
View
|
Diff
Attachments on
bug 283138
: 255635