projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfeb348
)
Set destination port for client replies from relay. Fixes #591
author
Alan T. DeKok
<aland@freeradius.org>
Thu, 17 Apr 2014 13:58:41 +0000
(09:58 -0400)
committer
Alan T. DeKok
<aland@freeradius.org>
Thu, 17 Apr 2014 13:58:56 +0000
(09:58 -0400)
src/main/dhcpd.c
patch
|
blob
|
history
diff --git
a/src/main/dhcpd.c
b/src/main/dhcpd.c
index
9acdf11
..
1627574
100644
(file)
--- a/
src/main/dhcpd.c
+++ b/
src/main/dhcpd.c
@@
-125,6
+125,7
@@
static int dhcprelay_process_client_request(REQUEST *request)
/* set DEST ipaddr/port to the next server ipaddr/port */
request->packet->dst_ipaddr.af = AF_INET;
request->packet->dst_ipaddr.ipaddr.ip4addr.s_addr = vp->vp_ipaddr;
+ request->packet->dst_port = sock->lsock.my_port;
if (fr_dhcp_encode(request->packet) < 0) {
DEBUG("dhcprelay_process_client_request: ERROR in fr_dhcp_encode\n");