From 25872d593fc4f9d2845ef6f676ce4ec3d55e9aac Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 25 Sep 2025 12:47:06 -0400 Subject: dgram: Allow specification of dest hwaddr Signed-off-by: Ian Moffett --- src/include/dgram.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/dgram.h b/src/include/dgram.h index e67eee6..9c87b81 100644 --- a/src/include/dgram.h +++ b/src/include/dgram.h @@ -91,12 +91,17 @@ int dgram_load(uint16_t length, uint8_t port, struct onet_dgram *res); * Send a datagram through ONET * * @link: The ONET link to send data over + * @dst: Destination address to send to * @buf: The buffer containing data to send * @len: Length of buffer to send * * Returns the number of bytes transmitted on success, otherwise * a less than zero value on failure. */ -tx_len_t dgram_send(struct onet_link *link, void *buf, uint16_t len); +tx_len_t dgram_send( + struct onet_link *link, mac_addr_t dst, + void *buf, uint16_t len +); + #endif /* DGRAM_H */ -- cgit v1.2.3