summaryrefslogtreecommitdiff
path: root/gdhcp/common.c
AgeCommit message (Collapse)AuthorFilesLines
2021-01-04Imported Upstream connman version 1.38Niraj Kumar Goit1-1/+9
Change-Id: I9e650762f3b2b2a31945b66e044e67a77e3b4b12 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2019-09-18Imported Upstream version 1.37submit/tizen/20190920.082459Nishant Chaprana1-108/+2
Change-Id: Idb47c1ddbedc9f97181b8e9a5eeac04ddd832a2c Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
2019-07-04Imported Upstream version 1.37upstream/1.37Nishant Chaprana1-43/+2
Change-Id: Ib5957e7ee3a9315ee86a331189bc3e9e71751ee8 Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
2018-01-23Updated connman to version 1.35Seonah Moon1-15/+38
Change-Id: I13526fbf80296a79be15548fc226a308941ac9ec Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
2018-01-08Imported Upstream version 1.35upstream/1.35Seonah Moon1-15/+38
Change-Id: I174854914d9fd06a813270b57d1f7bc2bac63c6a Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
2016-04-26Imported Upstream version 1.29upstream/1.29taesubkim1-8/+53
Change-Id: I2958446c35966d9ed72df0120b80561be7d89f54 Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
2015-08-07Base Code merged to SPIN 2.4submit/tizen/20150810.034432hyunuktak1-8/+53
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com> Change-Id: I84a42375b5c59739e4caca1f726699ea7647ef17
2014-10-31Tethering: Add interface that save lease in DHCP informationChengyi Zhao1-0/+65
Change-Id: Ia09c875954d8a20a3e6c39f87076780d8a6582e4
2014-10-29Imported Upstream version 1.26upstream/1.26Zhang zhengguang1-3/+5
2014-07-17Imported Upstream version 1.24upstream/1.24Zhang zhengguang1-46/+24
2013-04-26gdhcp: The last option in a message was not parsed correctlyJukka Rissanen1-2/+2
If the desired option was last one in the message, then it was lost because the remaining data calculation was wrong.
2013-02-11gdhcp: DHCP server IP address is stored in host orderPatrik Flykt1-1/+1
This change affects unicasted DHCP renew and release messages. A DHCP server receiving packets via a raw socket will get all packets destined to port 67. If the DHCP server checks the intended server IP address, the request will fail. If the server does not care about the IP address being used, it will send a reply. The reply is not recognized by ConnMan since it is coming from another IP address than what it was sent to. ConnMan will retry quite a few times, but eventually settle down and use the address even without a proper response from the server.
2012-10-11gdhcp: Use data size specific option setting functionJukka Rissanen1-20/+55
Instead of using dhcp_add_simple_option() the gdhcp now uses three functions for setting uint8, uint16 and uint32 values.
2012-10-11gdhcp: Use host byte order internallyJukka Rissanen1-5/+15
Convert to network byte order just before sending the packet.
2012-05-04gdhcp: Fix packet length checkingPatrik Flykt1-3/+15
Fix packet length checking where payload length could have been zero. Also check that we don't set the option pointer beyond the end of the packet payload.
2012-04-29gdhcp: Update copyright informationMarcel Holtmann1-1/+1
2012-04-20gdhcp: fix strict-aliasing warningLucas De Marchi1-1/+1
The previous way was giving the following warning with gcc 4.7: CC gdhcp/common.o gdhcp/common.c: In function 'dhcp_add_simple_option': gdhcp/common.c:275:38: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing Change it slightly so not to give this warning.
2012-01-13gdhcp: Fix build failureSamuel Ortiz1-2/+0
<inet.h> doesn't exist.
2012-01-05dhcpv6: Initial stateful DHCPv6 support.Jukka Rissanen1-0/+25
This patch contains solicitation message support.
2012-01-05gdhcp: Generic stateless DHCPv6 support.Jukka Rissanen1-8/+194
The patch adds support for information-request DHCPv6 message.
2011-10-28gdhcp: Possible file descriptor leakJukka Rissanen1-2/+2
2011-10-25gdhcp: Add SOCK_CLOEXEC to socket()Daniel Wagner1-5/+5
Make sure all file descriptor are closed.
2010-12-09dhcp: Handle proxy PAC option correctlyDavid Woodhouse1-0/+1
We're requesting the unofficial proxy option (252) but then throwing away the response because we don't recognise the type for it. This fixes proxy detection via DHCP.
2010-11-13gdhcp: Move get_interface_name and interface_is_up to common.cMartin Xu1-0/+69
This is needed for the dhcp server implementation.
2010-08-03Add server ID option support to dhcp-libSamuel Ortiz1-0/+1
2010-07-22gdhcp hostname option supportSamuel Ortiz1-0/+1
2010-07-21Add initial support for DHCP client libraryMartin Xu1-0/+417