Removed unused netif flag for point to point connections

This commit is contained in:
Ivan Delamer 2015-02-19 16:19:29 -07:00
parent 02cf50063e
commit e312ebcb57
4 changed files with 4 additions and 5 deletions

View File

@ -6,6 +6,9 @@ HISTORY
++ New features: ++ 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 2015-02-18: Simon Goldschmidt
* api_lib.c: fixed bug #37958 "netconn API doesn't handle correctly * api_lib.c: fixed bug #37958 "netconn API doesn't handle correctly
connections half-closed by peer" connections half-closed by peer"

View File

@ -77,9 +77,6 @@ extern "C" {
/** If set, the netif has broadcast capability. /** If set, the netif has broadcast capability.
* Set by the netif driver in its init function. */ * Set by the netif driver in its init function. */
#define NETIF_FLAG_BROADCAST 0x02U #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. /** If set, the interface is configured using DHCP.
* Set by the DHCP code when starting or stopping DHCP. */ * Set by the DHCP code when starting or stopping DHCP. */
#define NETIF_FLAG_DHCP 0x08U #define NETIF_FLAG_DHCP 0x08U

View File

@ -438,7 +438,7 @@ static err_t ppp_netif_init_cb(struct netif *netif) {
#if PPP_IPV6_SUPPORT #if PPP_IPV6_SUPPORT
netif->output_ip6 = ppp_netif_output_ip6; netif->output_ip6 = ppp_netif_output_ip6;
#endif /* PPP_IPV6_SUPPORT */ #endif /* PPP_IPV6_SUPPORT */
netif->flags = NETIF_FLAG_POINTTOPOINT | NETIF_FLAG_LINK_UP; netif->flags = NETIF_FLAG_LINK_UP;
#if LWIP_NETIF_HOSTNAME #if LWIP_NETIF_HOSTNAME
/* @todo: Initialize interface hostname */ /* @todo: Initialize interface hostname */
/* netif_set_hostname(netif, "lwip"); */ /* netif_set_hostname(netif, "lwip"); */

View File

@ -368,7 +368,6 @@ slipif_init(struct netif *netif)
netif->output_ip6 = slipif_output_v6; netif->output_ip6 = slipif_output_v6;
#endif /* LWIP_IPV6 */ #endif /* LWIP_IPV6 */
netif->mtu = SLIP_MAX_SIZE; netif->mtu = SLIP_MAX_SIZE;
netif->flags |= NETIF_FLAG_POINTTOPOINT;
/* netif->state or netif->num contain the port number */ /* netif->state or netif->num contain the port number */
if (netif->state != NULL) { if (netif->state != NULL) {