summaryrefslogtreecommitdiff
path: root/gdhcp/common.c
AgeCommit message (Collapse)AuthorFilesLines
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