[lib][minip] add an arg to the ethernet transmit callback
Already had the registration hook for it, but was never used.
This commit is contained in:
@@ -20,5 +20,5 @@ int virtio_net_found(void);
|
||||
status_t virtio_net_get_mac_addr(uint8_t mac_addr[6]);
|
||||
|
||||
struct pktbuf;
|
||||
extern status_t virtio_net_send_minip_pkt(struct pktbuf *p);
|
||||
extern status_t virtio_net_send_minip_pkt(void *arg, struct pktbuf *p);
|
||||
|
||||
|
||||
@@ -426,7 +426,7 @@ status_t virtio_net_get_mac_addr(uint8_t mac_addr[6]) {
|
||||
return NO_ERROR;
|
||||
}
|
||||
|
||||
status_t virtio_net_send_minip_pkt(pktbuf_t *p) {
|
||||
status_t virtio_net_send_minip_pkt(void *arg, pktbuf_t *p) {
|
||||
LTRACEF("p %p, dlen %u, flags 0x%x\n", p, p->dlen, p->flags);
|
||||
|
||||
DEBUG_ASSERT(p && p->dlen);
|
||||
|
||||
Reference in New Issue
Block a user