mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-17 17:10:03 +00:00
Removed unused netif flag for point to point connections
This commit is contained in:
parent
02cf50063e
commit
e312ebcb57
@ -6,6 +6,9 @@ HISTORY
|
||||
|
||||
++ New features:
|
||||
|
||||
2015-02-19: Ivan Delamer
|
||||
* netif.h, slipif.c, ppp.c: Removed unused netif flag for point to point connections
|
||||
|
||||
2015-02-18: Simon Goldschmidt
|
||||
* api_lib.c: fixed bug #37958 "netconn API doesn't handle correctly
|
||||
connections half-closed by peer"
|
||||
|
@ -77,9 +77,6 @@ extern "C" {
|
||||
/** If set, the netif has broadcast capability.
|
||||
* Set by the netif driver in its init function. */
|
||||
#define NETIF_FLAG_BROADCAST 0x02U
|
||||
/** If set, the netif is one end of a point-to-point connection.
|
||||
* Set by the netif driver in its init function. */
|
||||
#define NETIF_FLAG_POINTTOPOINT 0x04U
|
||||
/** If set, the interface is configured using DHCP.
|
||||
* Set by the DHCP code when starting or stopping DHCP. */
|
||||
#define NETIF_FLAG_DHCP 0x08U
|
||||
|
@ -438,7 +438,7 @@ static err_t ppp_netif_init_cb(struct netif *netif) {
|
||||
#if PPP_IPV6_SUPPORT
|
||||
netif->output_ip6 = ppp_netif_output_ip6;
|
||||
#endif /* PPP_IPV6_SUPPORT */
|
||||
netif->flags = NETIF_FLAG_POINTTOPOINT | NETIF_FLAG_LINK_UP;
|
||||
netif->flags = NETIF_FLAG_LINK_UP;
|
||||
#if LWIP_NETIF_HOSTNAME
|
||||
/* @todo: Initialize interface hostname */
|
||||
/* netif_set_hostname(netif, "lwip"); */
|
||||
|
@ -368,7 +368,6 @@ slipif_init(struct netif *netif)
|
||||
netif->output_ip6 = slipif_output_v6;
|
||||
#endif /* LWIP_IPV6 */
|
||||
netif->mtu = SLIP_MAX_SIZE;
|
||||
netif->flags |= NETIF_FLAG_POINTTOPOINT;
|
||||
|
||||
/* netif->state or netif->num contain the port number */
|
||||
if (netif->state != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user