zephyr/subsys/net/ip
Patrik Flykt 91ca8aabc8 net/ip/dhcpv4: Set source IP address in DHCP Request
The source address in unicast DHCPv4 Request packets was found out
to be all zeros address 0.0.0.0. This address is only acceptable if
the destination is a multicast one, where the host in question is
acquiring a DHCP address lease. This is true for the DHCP Discover
and the initial DHCP Request message from the client towards the
server. As subsequent DHCP Request renewal messages are sent as
unicast to the server, the server will drop such packets.

Fix this issue by explicitely specifying what source IP address is
to be used, if none is specified, the all zeros address 0.0.0.0 is
used in multicast addresses. The source address in the other
unicast cases is identical to the 'ciaddr' in the DHCP message.

Signed-off-by: Patrik Flykt <patrik.flykt@intel.com>
2019-04-17 10:35:38 -05:00
..
6lo_private.h
6lo.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
6lo.h net/6lo: Add a way to get the difference of hdr size after uncompression 2019-02-23 07:44:59 -05:00
canbus_socket.c net: can: Add CAN handling to net_context 2019-02-07 18:08:27 +02:00
canbus_socket.h net: can: Add CAN handling to net_context 2019-02-07 18:08:27 +02:00
CMakeLists.txt license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
connection.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
connection.h net: can: Add CAN handling to net_context 2019-02-07 18:08:27 +02:00
dhcpv4.c net/ip/dhcpv4: Set source IP address in DHCP Request 2019-04-17 10:35:38 -05:00
dhcpv4.h net/dhcpv4: Avoid ifdefs when using net_dhcpv4_init() 2019-04-03 09:32:39 -04:00
icmpv4.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
icmpv4.h net/icmpv4: Remove unused net_icmpv4_set_checksum function 2019-03-20 10:27:14 -05:00
icmpv6.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
icmpv6.h net/icmpv6: Remove useless net_icmpv6_set_chksum 2019-02-12 20:24:02 -05:00
ipv4_autoconf_internal.h
ipv4_autoconf.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
ipv4.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
ipv4.h net/ipv4: Replace legacy net_ipv4_create by the new one 2019-03-20 10:27:14 -05:00
ipv6_fragment.c net/ipv6: Fix IPv6 fragment nexthdr field in case of no option headers 2019-04-02 13:18:46 -04:00
ipv6_mld.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
ipv6_nbr.c all: Update unsigend 'U' suffix due to multiplication 2019-03-28 17:15:58 -05:00
ipv6.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
ipv6.h net: ipv6: Fix IPv6 neighbor table 2019-03-25 22:49:52 -04:00
Kconfig net/context: Add an option so set/unset packet timestamping 2019-03-09 10:09:33 -05:00
Kconfig.debug doc: fix docs, include, and Kconfig misspellings 2019-02-28 09:32:12 +01:00
Kconfig.ipv4 kconfig: subsys: net: Remove redundant dependencies 2019-03-09 09:49:59 -05:00
Kconfig.ipv6 net: Convert core IP stack to use log levels 2018-10-04 14:13:57 +03:00
Kconfig.mgmt net: increase mgmt event stack size 2019-04-09 15:35:41 -04:00
Kconfig.stack net: rpl: Remove the deprecated code 2019-01-13 09:40:36 -05:00
Kconfig.stats net: rpl: Remove the deprecated code 2019-01-13 09:40:36 -05:00
nbr.c net: Clarify logging in networking code 2018-12-07 12:00:04 +02:00
nbr.h net: Convert core IP stack to use log levels 2018-10-04 14:13:57 +03:00
net_context.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
net_core.c net/core: Initialize network services only after the stack 2019-04-03 09:32:39 -04:00
net_if.c net: tcp: Do not mark TCP segment not sent in net_if 2019-04-01 12:39:32 -04:00
net_mgmt.c kernel: demote K_THREAD_STACK_BUFFER() to private 2019-04-05 16:10:02 -04:00
net_pkt.c subsystems: Rename reserved function names 2019-04-03 17:31:00 -04:00
net_private.h net/pkt: Remove useless net_pkt_set_appdata_values() function 2019-02-12 20:24:02 -05:00
net_shell.c kernel: demote K_THREAD_STACK_BUFFER() to private 2019-04-05 16:10:02 -04:00
net_shell.h net: shell: Migrate to new shell API 2018-10-15 11:14:02 +03:00
net_stats.c net: rpl: Remove the deprecated code 2019-01-13 09:40:36 -05:00
net_stats.h net: rpl: Remove the deprecated code 2019-01-13 09:40:36 -05:00
net_tc_mapping.h
net_tc.c net: rpl: Remove the deprecated code 2019-01-13 09:40:36 -05:00
packet_socket.c net: sockets: Add socket api to support AF_PACKET 2019-02-07 14:43:30 +02:00
packet_socket.h net: core: Handle packets when packet sockets are enabled 2019-02-07 14:43:30 +02:00
promiscuous.c net: Clarify logging in networking code 2018-12-07 12:00:04 +02:00
route.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
route.h net: Fix the function API documentation generation 2019-02-15 16:39:06 -05:00
tcp_internal.h net/context: Remove token parameter from net_context_send/sendto 2019-03-20 10:27:14 -05:00
tcp.c Revert "net: tcp: Fix ref counting for the net_pkt" 2019-04-01 12:39:32 -04:00
trickle.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
udp_internal.h net/udp: Remove net_udp_insert legacy function 2019-03-20 10:27:14 -05:00
udp.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
utils.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00