Prusa MINI Firmware overview
|
#include "lwip/opt.h"
#include <string.h>
#include "lwip/def.h"
#include "lwip/ip_addr.h"
#include "lwip/ip6_addr.h"
#include "lwip/netif.h"
#include "lwip/priv/tcp_priv.h"
#include "lwip/udp.h"
#include "lwip/raw.h"
#include "lwip/snmp.h"
#include "lwip/igmp.h"
#include "lwip/etharp.h"
#include "lwip/stats.h"
#include "lwip/sys.h"
#include "lwip/ip.h"
#include "netif/ethernet.h"
Macros | |
#define | NETIF_STATUS_CALLBACK(n) |
#define | NETIF_LINK_CALLBACK(n) |
#define | NETIF_REPORT_TYPE_IPV4 0x01 |
#define | NETIF_REPORT_TYPE_IPV6 0x02 |
Functions | |
static void | netif_issue_reports (struct netif *netif, u8_t report_type) |
void | netif_init (void) |
err_t | netif_input (struct pbuf *p, struct netif *inp) |
struct netif * | netif_add (struct netif *netif, void *state, netif_init_fn init, netif_input_fn input) |
void | netif_remove (struct netif *netif) |
struct netif * | netif_find (const char *name) |
void | netif_set_default (struct netif *netif) |
void | netif_set_up (struct netif *netif) |
void | netif_set_down (struct netif *netif) |
void | netif_set_link_up (struct netif *netif) |
void | netif_set_link_down (struct netif *netif) |
Variables | |
struct netif * | netif_list |
struct netif * | netif_default |
static u8_t | netif_num |
lwIP network interface abstraction
#define NETIF_STATUS_CALLBACK | ( | n | ) |
#define NETIF_LINK_CALLBACK | ( | n | ) |
#define NETIF_REPORT_TYPE_IPV4 0x01 |
#define NETIF_REPORT_TYPE_IPV6 0x02 |
Send ARP/IGMP/MLD/RS events, e.g. on link-up/netif-up or addr-change
Forwards a received packet for input processing with ethernet_input() or ip_input() depending on netif flags. Don't call directly, pass to netif_add() and call netif->input(). Only works if the netif driver correctly sets NETIF_FLAG_ETHARP and/or NETIF_FLAG_ETHERNET flag!
struct netif* netif_list |
The list of network interfaces.
struct netif* netif_default |
The default network interface.
|
static |