diff options
author | Ian Moffett <ian@osmora.org> | 2025-09-25 12:47:06 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-09-25 12:47:06 -0400 |
commit | 25872d593fc4f9d2845ef6f676ce4ec3d55e9aac (patch) | |
tree | db3324f184063ed958cf0f8654539e60fff1231d /src/include/dgram.h | |
parent | 9e9ca9c770a7677936d2b4ea0a6313543e4ee8ee (diff) |
dgram: Allow specification of dest hwaddr
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/include/dgram.h')
-rw-r--r-- | src/include/dgram.h | 7 |
1 files changed, 6 insertions, 1 deletions
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 */ |