- Timestamping management added - Errors due to reading uninitialized data in ARP fixed - EthInterface reworked, incoming packet notification and payload readout separated (through which fixing concurrent access problems) - RX and TX offloads added - Capability to add a packet sieve layer without prior registration of specific packet class added (this makes it possible to register arbitrary EtherType connection blocks, for example)
20 lines
455 B
C
20 lines
455 B
C
//
|
|
// Created by epagris on 2023.04.22..
|
|
//
|
|
|
|
#include "timestamping.h"
|
|
|
|
#include "global_state.h"
|
|
#include "utils.h"
|
|
|
|
void ts_set_tx_callback(cbd d, void (*cb)(uint32_t, uint32_t, uint32_t)) {
|
|
ConnBlock connb;
|
|
if (!cbdt_get_connection_block(E.cbdt, d, &connb)) { // try to fetch connection block
|
|
ERROR("Unknown CBD: %u\n", d); // if not found, then do nothing
|
|
return;
|
|
}
|
|
|
|
// if found...
|
|
connb.sieveLayer->txTsCb = cb;
|
|
}
|