Tobias Brunner
e433d512f4
dhcp: Fix warning regarding unaligned pointer value due to packed struct
...
We don't need to access this as uint32_t so just cast it to a char*.
2017-09-18 12:16:54 +02:00
Tobias Brunner
787cc3a4e5
dhcp: Don't use signed char for DHCP options
...
The value of DHCP_OPTEND is 255. When it is assigned this result in a
sign change as the positive int constant is cast to a signed char and -1
results. Clang 4.0 complains about this.
2017-09-18 12:16:54 +02:00
Tobias Brunner
2e4d110d1e
linked-list: Change return value of find_first() and signature of its callback
...
This avoids the unportable five pointer hack.
2017-05-26 13:56:44 +02:00
Andreas Steffen
b12c53ce77
Use standard unsigned integer types
2016-03-24 18:52:48 +01:00
Tobias Brunner
8394ea2a42
libhydra: Move kernel interface to libcharon
...
This moves hydra->kernel_interface to charon->kernel.
2016-03-03 17:36:11 +01:00
Tobias Brunner
d223fe807a
libcharon: Use lib->ns instead of charon->name
2014-02-12 14:34:32 +01:00
Thomas Egerer
3711f66e54
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>
2014-01-20 16:40:34 +01:00
Martin Willi
c0db5d3845
dhcp: use watcher instead of dedicated receiver thread
2013-07-18 16:00:30 +02:00
Tobias Brunner
50daffb784
dhcp: Use chunk_hash_static() to calculate ID-based MAC addresses
2013-06-28 17:00:29 +02:00
Tobias Brunner
12642a6831
Moved data structures to new collections subfolder
2012-10-24 16:00:49 +02:00
Tobias Brunner
9d5b688a11
Properly initialize sockaddr_in struct in fast and dhcp plugins
2012-09-28 16:28:46 +02:00
Tobias Brunner
bc6ec4de73
Option added to enforce a configured destination address for DHCP packets
2012-09-13 10:59:24 +02:00
Tobias Brunner
7ae2671036
Check rng return value when generating Transaction IDs in DHCP plugin
2012-07-16 14:53:36 +02:00
Tobias Brunner
26d77eb3e6
Centralized thread cancellation in processor_t
...
This ensures that no threads are active when plugins and the rest of the
daemon are unloaded.
callback_job_t was simplified a lot in the process as its main
functionality is now contained in processor_t. The parent-child
relationships were abandoned as these were only needed to simplify job
cancellation.
2012-06-25 17:38:59 +02:00
Tobias Brunner
42500c274a
Use name from initialization to access settings in libcharon.
...
Also fixes several whitespace errors.
2012-05-03 13:57:04 +02:00
Martin Willi
14bf2f689d
Use CRITICAL job priority class for long running dispatcher jobs
2011-05-16 15:24:15 +02:00
Martin Willi
2b3c87b49a
Set broadcast flag in DHCP requests when sending broadcasts
2011-04-15 13:00:23 +02:00
Martin Willi
9bac426bf3
Fixed memory cleanup if no DHCP transaction found for an OFFER
2011-01-13 10:36:16 +01:00
Martin Willi
e3bde0ef82
Prefer the 'server identifier' attribute address to send DHCP requests to
2010-10-18 12:32:16 +02:00
Tobias Brunner
bb381e26c6
Refer to scheduler and processor via lib and not hydra.
2010-09-02 19:04:18 +02:00
Tobias Brunner
f6659688ab
Refer to kernel interface via hydra and not charon.
2010-09-02 19:01:25 +02:00
Tobias Brunner
c5f7146b17
Refer to processor via hydra and not charon.
2010-09-02 19:01:22 +02:00
Andreas Steffen
12821bd674
include dhcp-client-identifier in the DHCP request
2010-04-23 12:57:43 +02:00
Andreas Steffen
19d49af539
make DHCP debug messages consistent
2010-04-23 07:37:16 +02:00
Andreas Steffen
500a6d38ee
fixed typo
2010-04-23 00:02:13 +02:00
Martin Willi
f0212e8837
Accept DHCP replies on bootps port, as we act as a relay agent if server address configured
2010-04-19 11:18:58 +02:00
Martin Willi
b262429e0b
Include configuration payloads for DNS/WINS server received via DHCP
2010-03-25 14:29:10 +01:00
Martin Willi
913eb69692
Send DHCP RELEASE on virtual IP release
2010-03-25 14:29:10 +01:00
Martin Willi
e06a6154e2
Added identity_lease option to create random or identity based DHCP leases
2010-03-25 14:28:29 +01:00
Martin Willi
4f0932ecfe
Added DHCP request construction, ACK processing
2010-03-25 14:28:29 +01:00
Martin Willi
20ee54d06f
Added reception of DHCP responses via PACKET socket
2010-03-25 14:28:29 +01:00
Martin Willi
ddc93db612
DHCP plugin framework, send DHCP Discover upon IP request
2010-03-25 14:28:28 +01:00