Networking: Remove bogus references to PPP as a link layer protocol

This commit is contained in:
Gregory Nutt 2015-08-24 08:29:07 -06:00
parent 3743d3d84a
commit 569ff602ea
3 changed files with 5 additions and 14 deletions

View File

@ -10871,3 +10871,6 @@
* libc/libc.csv and syscalls/syscalls.csv: Define some symbol
export conditions, correct errno and add sleep and usleep. From
Pavel Pisa (2015-08-23).
* net/ ande include/nuttx/net: Remove references to PPP as a
link layer protocol (2015-08-24).

View File

@ -77,7 +77,6 @@ enum net_lltype_e
{
NET_LL_ETHERNET = 0, /* Ethernet */
NET_LL_SLIP, /* Serial Line Internet Protocol (SLIP) */
NET_LL_PPP, /* Point-to-Point Protocol (PPP) */
NET_LL_TUN, /* TUN Virtual Network Device */
};
@ -1078,7 +1077,7 @@ int net_vfcntl(int sockfd, int cmd, va_list ap);
*
* Parameters:
* dev - The device driver structure to be registered.
* lltype - Link level protocol used by the driver (Ethernet, SLIP, PPP, ...
* lltype - Link level protocol used by the driver (Ethernet, SLIP, TUN, ...
*
* Returned Value:
* 0:Success; negated errno on failure

View File

@ -159,7 +159,7 @@ static int find_devnum(FAR const char *devfmt)
*
* Parameters:
* dev - The device driver structure to be registered.
* lltype - Link level protocol used by the driver (Ethernet, SLIP, PPP, ...
* lltype - Link level protocol used by the driver (Ethernet, SLIP, TUN, ...
* ...
*
* Returned Value:
@ -223,17 +223,6 @@ int netdev_register(FAR struct net_driver_s *dev, enum net_lltype_e lltype)
break;
#endif
#if 0 /* REVISIT: Not yet supported */
case NET_LL_PPP: /* Point-to-Point Protocol (PPP) */
dev->d_llhdrlen = 0;
dev->d_mtu = CONFIG_NET_PPP_MTU;
#ifdef CONFIG_NET_TCP
dev->d_recvwndo = CONFIG_NET_PPP_TCP_RECVWNDO;
#endif
devfmt = NETDEV_PPP_FORMAT;
break;
#endif
default:
nlldbg("ERROR: Unrecognized link type: %d\n", lltype);
return -EINVAL;