zephyr/subsys/net
Pisit Sawangvonganan b34349eed9 net: utils: improve hex digit character checking in net_bytes_from_str
Several refactors and improvements for `net_bytes_from_str` as follows:
- Replaced manual hex digit checks with `isxdigit()`.
- Changed variable `i` from unsigned int to size_t for consistency with
  the `strlen()` return type.
- Added `src_len` to store the result of `strlen(src)` to avoid
  multiple calls to `strlen` in the `for-loop`.
- Ensured casting to `unsigned char` before passing to `isxdigit()` to
  prevent undefined behavior.
- Explicitly cast the result of `strtol()` to `uint8_t` to match
  the buffer type.

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
2024-07-27 15:16:42 +03:00
..
conn_mgr net: lib: fix typo 2024-07-12 09:33:20 -04:00
ip net: utils: improve hex digit character checking in net_bytes_from_str 2024-07-27 15:16:42 +03:00
l2 net: wifi: Fix the nm type check error 2024-07-27 15:09:20 +03:00
lib net: sockets: tls: Fix poll update event check 2024-07-27 15:13:17 +03:00
pkt_filter
buf_simple.c net: buf: Add const to net_buf API 2024-07-08 16:02:39 +02:00
buf.c net: buf: Add const to net_buf API 2024-07-08 16:02:39 +02:00
CMakeLists.txt
hostname.c logging: net: update hostname 2024-01-17 14:42:58 +01:00
Kconfig net: Add Kconfig for net buf alignment 2023-12-14 09:29:47 +01:00
Kconfig.hostname net: add set hostname function 2024-01-17 14:42:58 +01:00
Kconfig.template.log_config.default.net
Kconfig.template.log_config.net