diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-03-26 12:16:50 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-03-26 12:16:50 -0600 |
commit | 9f2e2e96321f14da97adda618a7e4721cbb9791c (patch) | |
tree | 479a8f642ae6054772dd2da4b3a5eeac14dfabc0 | |
parent | 50fb8395526066d20e143b49a12c0f6aeddee1ac (diff) | |
parent | 58c3d2a7ff9c188be8a09917326b6e87400cf3dd (diff) |
Merge branch 'lukeshu/fix'
-rw-r--r-- | libhw/host_net.c | 1 | ||||
-rw-r--r-- | libhw/w5500_ll.h | 4 | ||||
-rw-r--r-- | libhw_generic/include/libhw/generic/net.h | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/libhw/host_net.c b/libhw/host_net.c index 9d3e97b..e89cd66 100644 --- a/libhw/host_net.c +++ b/libhw/host_net.c @@ -40,7 +40,6 @@ LO_IMPLEMENTATION_C(io_closer, struct _hostnet_tcp_conn, hostnet_tcp, static) LO_IMPLEMENTATION_C(io_bidi_closer, struct _hostnet_tcp_conn, hostnet_tcp, static) LO_IMPLEMENTATION_C(net_stream_conn, struct _hostnet_tcp_conn, hostnet_tcp, static) - LO_IMPLEMENTATION_C(io_closer, struct hostnet_udp_conn, hostnet_udp, static) LO_IMPLEMENTATION_C(net_packet_conn, struct hostnet_udp_conn, hostnet_udp, static) diff --git a/libhw/w5500_ll.h b/libhw/w5500_ll.h index cad20a4..3822ad4 100644 --- a/libhw/w5500_ll.h +++ b/libhw/w5500_ll.h @@ -109,8 +109,8 @@ w5500ll_writev( } inner[j] = (struct duplex_iovec){ .iov_read_dst = NULL, - .iov_write_src = iov[i].iov_base+(skipped-skip), - .iov_len = iov[i].iov_len-(skipped-skip), + .iov_write_src = iov[i].iov_base+(skip-skipped), + .iov_len = iov[i].iov_len-(skip-skipped), }; skipped = skip; } else { diff --git a/libhw_generic/include/libhw/generic/net.h b/libhw_generic/include/libhw/generic/net.h index 2703b26..e88d705 100644 --- a/libhw_generic/include/libhw/generic/net.h +++ b/libhw_generic/include/libhw/generic/net.h @@ -135,7 +135,7 @@ struct net_iface_config { LO_FUNC(struct net_eth_addr , hwaddr ) \ LO_FUNC(void , ifup , struct net_iface_config) \ LO_FUNC(void , ifdown ) \ - \ + \ LO_FUNC(lo_interface net_stream_listener, tcp_listen, uint16_t local_port) \ LO_FUNC(lo_interface net_stream_conn , tcp_dial , struct net_ip4_addr remote_node, uint16_t remote_port) \ LO_FUNC(lo_interface net_packet_conn , udp_conn , uint16_t local_port) |