Module Name: src
Committed By: martin
Date: Fri Dec 18 12:27:29 UTC 2020
Modified Files:
src/external/bsd/dhcpcd/dist/src [netbsd-9]: dhcp.c
Log Message:
Apply patch, requested by roy in ticket #1154:
external/bsd/dhcpcd/dist/src/dhcp.c (apply patch)
Fix reading of UDP messages via inet socket rather than BPF.
This fixes RENEW messages not being read correctly.
To generate a diff of this commit:
cvs rdiff -u -r1.23.2.8 -r1.23.2.9 src/external/bsd/dhcpcd/dist/src/dhcp.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/dhcpcd/dist/src/dhcp.c
diff -u src/external/bsd/dhcpcd/dist/src/dhcp.c:1.23.2.8 src/external/bsd/dhcpcd/dist/src/dhcp.c:1.23.2.9
--- src/external/bsd/dhcpcd/dist/src/dhcp.c:1.23.2.8 Thu Apr 23 12:06:09 2020
+++ src/external/bsd/dhcpcd/dist/src/dhcp.c Fri Dec 18 12:27:28 2020
@@ -3521,7 +3521,7 @@ dhcp_readudp(struct dhcpcd_ctx *ctx, str
struct msghdr msg = {
.msg_name = &from, .msg_namelen = sizeof(from),
.msg_iov = &iov, .msg_iovlen = 1,
- .msg_control = buf, .msg_controllen = sizeof(cmsgbuf.buf),
+ .msg_control = cmsgbuf.buf, .msg_controllen = sizeof(cmsgbuf.buf),
};
int s;
ssize_t bytes;