summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libhw/host_net.c1
-rw-r--r--libhw/w5500_ll.h4
-rw-r--r--libhw_generic/include/libhw/generic/net.h2
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)