lwip: no need to retrieve own endpoint
Change-Id: I86bd20be9b1aec4116edbe112eb562737860568f
This commit is contained in:
parent
efa7e3e6d2
commit
ec725af4c5
3 changed files with 0 additions and 12 deletions
|
@ -37,7 +37,6 @@
|
||||||
static struct nic devices[MAX_DEVS];
|
static struct nic devices[MAX_DEVS];
|
||||||
|
|
||||||
static ip_addr_t ip_addr_none = { IPADDR_NONE };
|
static ip_addr_t ip_addr_none = { IPADDR_NONE };
|
||||||
extern endpoint_t lwip_ep;
|
|
||||||
|
|
||||||
void nic_assign_driver(const char * dev_type,
|
void nic_assign_driver(const char * dev_type,
|
||||||
unsigned int dev_num,
|
unsigned int dev_num,
|
||||||
|
|
|
@ -62,8 +62,6 @@
|
||||||
#include "proto.h"
|
#include "proto.h"
|
||||||
#include "driver.h"
|
#include "driver.h"
|
||||||
|
|
||||||
extern endpoint_t lwip_ep;
|
|
||||||
|
|
||||||
static err_t low_level_output(__unused struct netif *netif, struct pbuf *pbuf)
|
static err_t low_level_output(__unused struct netif *netif, struct pbuf *pbuf)
|
||||||
{
|
{
|
||||||
struct nic * nic;
|
struct nic * nic;
|
||||||
|
|
|
@ -22,8 +22,6 @@
|
||||||
#include <netif/etharp.h>
|
#include <netif/etharp.h>
|
||||||
#include <lwip/tcp_impl.h>
|
#include <lwip/tcp_impl.h>
|
||||||
|
|
||||||
endpoint_t lwip_ep;
|
|
||||||
|
|
||||||
static minix_timer_t tcp_ftmr, tcp_stmr, arp_tmr;
|
static minix_timer_t tcp_ftmr, tcp_stmr, arp_tmr;
|
||||||
static int arp_ticks, tcp_fticks, tcp_sticks;
|
static int arp_ticks, tcp_fticks, tcp_sticks;
|
||||||
|
|
||||||
|
@ -60,13 +58,6 @@ static int sef_cb_init_fresh(__unused int type, __unused sef_init_info_t *info)
|
||||||
int err;
|
int err;
|
||||||
unsigned int hz;
|
unsigned int hz;
|
||||||
|
|
||||||
char my_name[16];
|
|
||||||
int my_priv;
|
|
||||||
|
|
||||||
err = sys_whoami(&lwip_ep, my_name, sizeof(my_name), &my_priv);
|
|
||||||
if (err != OK)
|
|
||||||
panic("Cannot get own endpoint");
|
|
||||||
|
|
||||||
nic_init_all();
|
nic_init_all();
|
||||||
inet_read_conf();
|
inet_read_conf();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue