zephyr/subsys/net/ip
Daekeun Kang b24c5201a0 net: fix handle unaligned memory access in net_context_bind()
This commit addresses an issue in net_context_bind() where unaligned
memory access was not properly handled when checking for INADDR_ANY.
The problem primarily affected MCUs like ARMv6 that don't support
unaligned memory access.

- Use UNALIGNED_GET() to safely access the sin_addr.s_addr field
- Ensures correct behavior on architectures with alignment restrictions

This fix improves compatibility and prevents potential crashes or
unexpected behavior on affected platforms.

Signed-off-by: Daekeun Kang <dkkang@huconn.com>
2024-08-26 17:08:08 +02:00
..
6lo_private.h
6lo.c
6lo.h
canbus_socket.c
canbus_socket.h
CMakeLists.txt net: ipv4: Implement IPv4 address conflict detection 2024-06-10 00:59:28 -07:00
connection.c net: ip: fix typo 2024-06-25 21:19:00 -04:00
connection.h everywhere: replace double words 2024-06-22 05:40:22 -04:00
icmp.c
icmpv4.c net: Support partial checksum offloading 2024-06-14 17:10:43 -04:00
icmpv4.h
icmpv6.c net: Support partial checksum offloading 2024-06-14 17:10:43 -04:00
icmpv6.h
igmp.c
ipv4_acd.c net: ipv4: Implement IPv4 address conflict detection 2024-06-10 00:59:28 -07:00
ipv4_autoconf.c net: ipv4: autoconf: Integrate with the ACD module 2024-06-10 00:59:28 -07:00
ipv4_fragment.c net: ipv4: Fix tx_pkts slab leak in send_ipv4_fragment 2024-07-27 10:45:14 +03:00
ipv4.c net: ip: fix typo 2024-06-25 21:19:00 -04:00
ipv4.h net: ipv4: Implement IPv4 address conflict detection 2024-06-10 00:59:28 -07:00
ipv6_fragment.c
ipv6_mld.c net: ipv6: mld: use proper MLDv2 modes 2024-05-10 11:44:50 +02:00
ipv6_nbr.c net: ipv6: Do not print error for non-erros for incoming NS 2024-08-26 11:07:59 -04:00
ipv6_pe.c net: ipv6-pe: Verify that hmac calculation was ok 2024-07-03 15:25:58 +02:00
ipv6.c net: ipv6: Allow incoming DAD NS message 2024-08-26 11:07:59 -04:00
ipv6.h net: ip: fix typo 2024-06-25 21:19:00 -04:00
Kconfig net: if: Make sure interface name can contain terminating null 2024-06-24 14:48:03 -04:00
Kconfig.debug
Kconfig.ipv4 kconfig: replace known integer constants with variables 2024-07-27 20:49:15 +03:00
Kconfig.ipv6 kconfig: replace known integer constants with variables 2024-07-27 20:49:15 +03:00
Kconfig.mgmt
Kconfig.stack
Kconfig.stats
Kconfig.tcp kconfig: replace known integer constants with variables 2024-07-27 20:49:15 +03:00
nbr.c
nbr.h
net_context.c net: fix handle unaligned memory access in net_context_bind() 2024-08-26 17:08:08 +02:00
net_core.c net: tracing: Add net_send_data function tracing 2024-08-19 21:50:21 -04:00
net_if.c net: tracing: Add TX time tracing 2024-08-19 21:50:21 -04:00
net_mgmt.c net: mgmt: Fix build error when event direct enabled without event info 2024-07-09 11:49:47 +02:00
net_pkt.c style: subsys: comply with MISRA C:2012 Rule 15.6 2024-08-20 10:33:51 +02:00
net_private.h net: sockets: Update msg_controllen in recvmsg properly 2024-08-23 15:50:37 +01:00
net_stats.c
net_stats.h
net_tc_mapping.h
net_tc.c
net_timeout.c everywhere: replace double words 2024-06-22 05:40:22 -04:00
packet_socket.c
packet_socket.h
promiscuous.c
route.c net: ipv6: route: get nexthop's LL address only if relevant 2024-08-08 15:37:32 +02:00
route.h net: ipv6: mcast_routing: hop limit handling 2024-06-13 05:44:30 -04:00
tcp_internal.h net: context: Add helpers for figuring out local endpoint address 2024-05-06 22:50:18 +01:00
tcp_private.h net: tcp: Keep track of recv window size change since last ACK 2024-07-31 12:56:52 +02:00
tcp.c net: tcp: Keep track of recv window size change since last ACK 2024-07-31 12:56:52 +02:00
tcp.h
tp_priv.h net: change controlling expressions in while to Boolean 2024-06-11 20:03:16 +03:00
tp.c net: change controlling expressions in while to Boolean 2024-06-11 20:03:16 +03:00
tp.h
udp_internal.h
udp.c net: Support partial checksum offloading 2024-06-14 17:10:43 -04:00
utils.c net: ip: utils: revise data type declarations in z_impl_net_addr_ntop 2024-08-06 17:15:50 -04:00