dhcp: Allow binding of socket to particular interface
authorThomas Egerer <thomas.egerer@secunet.com>
Mon, 18 Nov 2013 12:15:02 +0000 (13:15 +0100)
committerMartin Willi <martin@revosec.ch>
Mon, 20 Jan 2014 15:40:34 +0000 (16:40 +0100)
commit3711f66e543d55d36eedddc5542ec2257f5d188d
treeeb3657df07ef2f7e72f616b79c1693475568103c
parent568e3022607a98394c53bc5a4922d368d19cbe60
dhcp: Allow binding of socket to particular interface

In certain situations it is desirable to bind the send/receive sockets
for the DHCP address allocation to a particular interface. With this
patch the strongswan.conf option charon.plugins.dhcp.interface can be
used to restrict the DHCP communication to a configurable interface.

Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
src/libcharon/plugins/dhcp/dhcp_socket.c