zephyr/subsys/net/ip
Pisit Sawangvonganan 444e135679 net: if: streamline interface name checking logic
This commit reduces `#if / #endif` pairs by leveraging the
`IS_ENABLED` macro:
- Removed `#ifdef / #endif` around `NET_L2_DECLARE_PUBLIC` in `net_l2.h`,
  enabling compilation without affecting link time if the configuration
  is unavailable.

`set_default_name` function:
- Replaced multiple `if` statements with `else if` to use the last `else`
  without indirectly checking `name[0] == '\0'`.
- Since `snprintk` guarantees null-termination if `sizeof(name) > 0`,
  the `-1` subtraction is unnecessary, eliminating the need for
  zero initialization in `char name[CONFIG_NET_INTERFACE_NAME_LEN + 1];`.

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
2024-07-28 07:29:01 +03: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 net: use appropriate sys_randX_get() 2024-04-05 12:28:46 +02:00
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 net: igmp: Fix double unref of igmp packet 2024-03-15 13:35:16 +01:00
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: routing: do not use an original source address for NS 2024-07-27 10:44:48 +03: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: routing: move checking for an own source address 2024-07-27 10:44:48 +03: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 hostap: Increase the stack size for net_mgmt 2024-05-06 14:55:09 +01:00
Kconfig.stack
Kconfig.stats
Kconfig.tcp kconfig: replace known integer constants with variables 2024-07-27 20:49:15 +03:00
nbr.c net/ip: Removing useless extra data capability in neighbors 2024-03-01 15:33:53 +01:00
nbr.h net/ip: Removing useless extra data capability in neighbors 2024-03-01 15:33:53 +01:00
net_context.c net: context: Check null pointer in V6ONLY getsockopt 2024-07-27 10:39:40 +03:00
net_core.c net: ipv6: routing: do not loop back already routed packets 2024-07-27 10:44:48 +03:00
net_if.c net: if: streamline interface name checking logic 2024-07-28 07:29:01 +03: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 everywhere: replace #if IS_ENABLED() as per docs 2024-06-28 07:20:32 -04:00
net_private.h net: Start socket service thread by net core init 2024-06-03 09:49:01 +02:00
net_stats.c
net_stats.h
net_tc_mapping.h
net_tc.c net: ip: Allow traffic class thread priority customization 2024-02-26 12:11:19 +01:00
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: mcast_routing: hop limit handling 2024-06-13 05:44:30 -04: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: Add ref counting to net_if_addr struct 2024-05-06 22:50:18 +01:00
tcp.c net: tcp: Delay ACK if no PSH flag is present 2024-06-28 11:34:50 +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: utils: improve hex digit character checking in net_bytes_from_str 2024-07-27 15:16:42 +03:00