struct mip_ipcfg -> struct mip_cfg

This commit is contained in:
cpq committed 2022-08-31 08:41:16 +01:00
1 parent 8a61969c8f
commit c131b8daf1
6 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -711,7 +711,7 @@ static void on_rx(void *buf, size_t len, void *userdata) {
if (!q_write(&ifp->queue, buf, len)) MG_ERROR(("dropped %d", (int) len));
}
void mip_init(struct mg_mgr *mgr, struct mip_ipcfg *ipcfg,
void mip_init(struct mg_mgr *mgr, struct mip_cfg *ipcfg,
struct mip_driver *driver, void *driver_data) {
size_t maxpktsize = 1500, qlen = driver->setrx ? 1024 * 16 : 0;
struct mip_if *ifp =
+2 -2
View File
@@ -12,12 +12,12 @@ struct mip_driver {
void (*setrx)(void (*fn)(void *buf, size_t len, void *rxdata), void *rxdata);
};
struct mip_ipcfg {
struct mip_cfg {
uint8_t mac[6]; // MAC address. Must not be 0
uint32_t ip, mask, gw; // IP, netmask, GW. If IP is 0, DHCP is used
};
void mip_init(struct mg_mgr *, struct mip_ipcfg *, struct mip_driver *, void *);
void mip_init(struct mg_mgr *, struct mip_cfg *, struct mip_driver *, void *);
extern struct mip_driver mip_driver_stm32;
extern struct mip_driver mip_driver_enc28j60;