blob: ff9d03b23e80c7990414bbc9b8c3657838770f3c [file] [log] [blame]
Jerome Forissier64abd782024-10-16 12:04:00 +02001/* SPDX-License-Identifier: GPL-2.0+ */
2
3#ifndef __NET_LWIP_H__
4#define __NET_LWIP_H__
5
6#include <lwip/ip4.h>
7#include <lwip/netif.h>
8
Jerome Forissier6a78e962024-10-16 12:04:05 +02009enum proto_t {
10 TFTPGET
11};
12
Jerome Forissier64abd782024-10-16 12:04:00 +020013struct netif *net_lwip_new_netif(struct udevice *udev);
14struct netif *net_lwip_new_netif_noip(struct udevice *udev);
15void net_lwip_remove_netif(struct netif *netif);
16struct netif *net_lwip_get_netif(void);
Jerome Forissier1ff00362024-10-16 12:04:03 +020017int net_lwip_rx(struct udevice *udev, struct netif *netif);
18
19int do_dhcp(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
Jerome Forissierbc4d8822024-10-16 12:04:07 +020020int do_dns(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
Jerome Forissier8f29e002024-10-16 12:04:06 +020021int do_ping(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
Jerome Forissier64abd782024-10-16 12:04:00 +020022
23#endif /* __NET_LWIP_H__ */