upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tests/unit/stubs/lwip/etharp.h
blob: adc6b7b93a385e6f2b2f0e0bb1214ae3e141eb05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef STUBS_LWIP_ETHARP_H
#define STUBS_LWIP_ETHARP_H

#include <stdint.h>
#include <stddef.h>
#include "lwip/ip4_addr.h"

struct eth_addr {
    uint8_t addr[6];
};

struct netif;

typedef int err_t;
#define ERR_OK 0

static inline err_t etharp_get_entry(ssize_t i, ip4_addr_t **ip, struct netif **netif, struct eth_addr **eth) {
    (void)i; (void)ip; (void)netif; (void)eth;
    return -1;
}

#endif