Move mip/ -> src/tcpip/, rename mip_ -> mg_tcpip_

This commit is contained in:
cpq committed 2023-02-07 21:35:37 +00:00
1 parent efc54375dd
commit 2c62e58dbd
64 files changed
+515 -516

No files matched your search

+5 -5
View File
@@ -1,21 +1,21 @@
static bool mock_init(struct mip_if *ifp) {
static bool mock_init(struct mg_tcpip_if *ifp) {
(void) ifp;
return true;
}
static size_t mock_tx(const void *buf, size_t len, struct mip_if *ifp) {
static size_t mock_tx(const void *buf, size_t len, struct mg_tcpip_if *ifp) {
(void) buf, (void) len, (void) ifp;
return len;
}
static size_t mock_rx(void *buf, size_t len, struct mip_if *ifp) {
static size_t mock_rx(void *buf, size_t len, struct mg_tcpip_if *ifp) {
(void) buf, (void) len, (void) ifp;
return 0;
}
static bool mock_up(struct mip_if *ifp) {
static bool mock_up(struct mg_tcpip_if *ifp) {
(void) ifp;
return true;
}
struct mip_driver mip_driver_mock = {mock_init, mock_tx, mock_rx, mock_up};
struct mg_tcpip_driver mg_tcpip_driver_mock = {mock_init, mock_tx, mock_rx, mock_up};