mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-05 05:40:15 +01:00
Revert "ppp: fix plugin name for "rp-pppoe.so" with ppp 2.5"
"nm-ppp-manager.c" gets compiled as "libnm-ppp-plugin.so", which does
not link with the ppp code. It thus cannot use
nm_pppd_compat_get_pppoe_plugin_name().
A different solution will be needed. Revert for now.
This reverts commit fe2aade565.
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1312
This commit is contained in:
parent
fe2aade565
commit
07bc415283
3 changed files with 2 additions and 13 deletions
|
|
@ -38,7 +38,6 @@
|
|||
#include "nm-pppd-plugin.h"
|
||||
#include "nm-ppp-plugin-api.h"
|
||||
#include "nm-ppp-status.h"
|
||||
#include "nm-pppd-compat.h"
|
||||
|
||||
#define NM_PPPD_PLUGIN PPPD_PLUGIN_DIR "/nm-pppd-plugin.so"
|
||||
|
||||
|
|
@ -844,7 +843,7 @@ create_pppd_cmd_line(NMPPPManager *self,
|
|||
const char *pppoe_service;
|
||||
|
||||
nm_strv_ptrarray_add_string_dup(cmd, "plugin");
|
||||
nm_strv_ptrarray_add_string_dup(cmd, nm_pppd_compat_get_pppoe_plugin_name());
|
||||
nm_strv_ptrarray_add_string_dup(cmd, "rp-pppoe.so");
|
||||
|
||||
nm_strv_ptrarray_add_string_concat(cmd, "nic-", priv->parent_iface);
|
||||
|
||||
|
|
@ -873,7 +872,7 @@ create_pppd_cmd_line(NMPPPManager *self,
|
|||
|
||||
} else if (!strcmp(protocol, NM_SETTING_ADSL_PROTOCOL_PPPOE)) {
|
||||
nm_strv_ptrarray_add_string_dup(cmd, "plugin");
|
||||
nm_strv_ptrarray_add_string_dup(cmd, nm_pppd_compat_get_pppoe_plugin_name());
|
||||
nm_strv_ptrarray_add_string_dup(cmd, "rp-pppoe.so");
|
||||
nm_strv_ptrarray_add_string_dup(cmd, priv->parent_iface);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -94,14 +94,6 @@ G_STATIC_ASSERT(NM_PPPD_COMPAT_MAXSECRETLEN == MAXSECRETLEN);
|
|||
|
||||
/*****************************************************************************/
|
||||
|
||||
_nm_const const char *
|
||||
nm_pppd_compat_get_pppoe_plugin_name(void)
|
||||
{
|
||||
return PPP_VERSION_2_5_OR_NEWER ? "pppoe.so" : "rp-pppoe.so";
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
int
|
||||
nm_pppd_compat_get_ifunit(void)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,8 +11,6 @@
|
|||
|
||||
int nm_pppd_compat_get_ifunit(void);
|
||||
|
||||
const char *nm_pppd_compat_get_pppoe_plugin_name(void) _nm_const;
|
||||
|
||||
const char *nm_pppd_compat_get_ifname(void);
|
||||
void nm_pppd_compat_set_ifname(const char *ifname);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue