mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-08 08:33:39 +08:00
PPP, remove VJ callback from link_callbacks if VJ support is not enabled
This commit is contained in:
@@ -156,7 +156,9 @@ static const struct link_callbacks pppoe_callbacks = {
|
||||
pppoe_netif_output,
|
||||
NULL,
|
||||
NULL,
|
||||
#if VJ_SUPPORT
|
||||
NULL,
|
||||
#endif /* VJ_SUPPORT */
|
||||
NULL,
|
||||
NULL
|
||||
};
|
||||
|
||||
@@ -105,7 +105,9 @@ static const struct link_callbacks pppol2tp_callbacks = {
|
||||
pppol2tp_netif_output,
|
||||
NULL,
|
||||
NULL,
|
||||
#if VJ_SUPPORT
|
||||
NULL,
|
||||
#endif /* VJ_SUPPORT */
|
||||
NULL,
|
||||
NULL
|
||||
};
|
||||
|
||||
@@ -84,8 +84,6 @@ static const struct link_callbacks pppos_callbacks = {
|
||||
pppos_recv_config,
|
||||
#if VJ_SUPPORT
|
||||
pppos_vjc_config,
|
||||
#else /* VJ_SUPPORT */
|
||||
NULL,
|
||||
#endif /* VJ_SUPPORT */
|
||||
pppos_ioctl,
|
||||
#if VJ_SUPPORT
|
||||
|
||||
Reference in New Issue
Block a user