projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
411a603
)
Set correct default destination port for replies to relay
author
Alan T. DeKok
<aland@freeradius.org>
Wed, 25 Feb 2015 19:21:17 +0000
(14:21 -0500)
committer
Alan T. DeKok
<aland@freeradius.org>
Wed, 25 Feb 2015 19:21:45 +0000
(14:21 -0500)
src/main/dhcpd.c
patch
|
blob
|
history
diff --git
a/src/main/dhcpd.c
b/src/main/dhcpd.c
index
b4e907f
..
55114ab
100644
(file)
--- a/
src/main/dhcpd.c
+++ b/
src/main/dhcpd.c
@@
-443,6
+443,7
@@
static int dhcp_process(REQUEST *request)
if (vp) {
RDEBUG("DHCP: Reply will be unicast to giaddr from original packet");
request->reply->dst_ipaddr.ipaddr.ip4addr.s_addr = vp->vp_ipaddr;
+ request->reply->dst_port = request->packet->dst_port;
vp = pairfind(request->reply->vps, PW_PACKET_DST_PORT);
if (vp) request->reply->dst_port = vp->vp_integer;