summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_pppoe.c
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2005-07-05 17:51:02 +0000
committerglebius <glebius@FreeBSD.org>2005-07-05 17:51:02 +0000
commitaf3bb4068666462204d00eb0010371dbef669774 (patch)
tree840934d8de48684daeddc5acf85f1baa53b3e5a7 /sys/netgraph/ng_pppoe.c
parentb480c038d1ef06c6d68e7804fb9927977d11dae5 (diff)
downloadFreeBSD-src-af3bb4068666462204d00eb0010371dbef669774.zip
FreeBSD-src-af3bb4068666462204d00eb0010371dbef669774.tar.gz
Remove obsoleted sysctl interface for switching between standard and 3Com
PPPoE modes. The interface was declared obsoleted before 5.3-RELEASE. When running as access concentrator ng_pppoe(4) supports both modes simultanously. When running as client mode can be swicthed in ppp(8) configuration. Approved by: re (scottl)
Diffstat (limited to 'sys/netgraph/ng_pppoe.c')
-rw-r--r--sys/netgraph/ng_pppoe.c40
1 files changed, 1 insertions, 39 deletions
diff --git a/sys/netgraph/ng_pppoe.c b/sys/netgraph/ng_pppoe.c
index 82f995a..4e3dda7 100644
--- a/sys/netgraph/ng_pppoe.c
+++ b/sys/netgraph/ng_pppoe.c
@@ -52,7 +52,6 @@
#include <sys/mbuf.h>
#include <sys/malloc.h>
#include <sys/errno.h>
-#include <sys/sysctl.h>
#include <sys/syslog.h>
#include <net/ethernet.h>
@@ -277,43 +276,6 @@ struct PPPOE {
};
typedef struct PPPOE *priv_p;
-/* Deprecated sysctl, leaved here to keep compatibility for some time */
-#define PPPOE_SYSCTL_KEEPSTANDARD -1
-#define PPPOE_SYSCTL_STANDARD 0
-#define PPPOE_SYSCTL_NONSTANDARD 1
-static int pppoe_mode = PPPOE_SYSCTL_KEEPSTANDARD;
-static const struct ng_pppoe_mode_t *sysctl_mode = ng_pppoe_modes;
-
-static int
-ngpppoe_set_ethertype(SYSCTL_HANDLER_ARGS)
-{
- int error;
- int val;
-
- val = pppoe_mode;
- error = sysctl_handle_int(oidp, &val, sizeof(int), req);
- if (error != 0 || req->newptr == NULL)
- return (error);
- switch (val) {
- case PPPOE_SYSCTL_NONSTANDARD:
- sysctl_mode = ng_pppoe_modes + 1;
- break;
- case PPPOE_SYSCTL_STANDARD:
- case PPPOE_SYSCTL_KEEPSTANDARD:
- sysctl_mode = ng_pppoe_modes;
- break;
- default:
- return (EINVAL);
- }
-
- pppoe_mode = val;
- printf("net.graph.nonstandard_pppoe is deprecated. See ng_pppoe(4), ppp(8).\n");
- return (0);
-}
-
-SYSCTL_PROC(_net_graph, OID_AUTO, nonstandard_pppoe, CTLTYPE_INT | CTLFLAG_RW,
- 0, sizeof(int), ngpppoe_set_ethertype, "I", "select normal or stupid ISP");
-
union uniq {
char bytes[sizeof(void *)];
void * pointer;
@@ -632,7 +594,7 @@ ng_pppoe_constructor(node_p node)
privdata->node = node;
/* Initialize to standard mode (the first one in ng_pppoe_modes[]). */
- privdata->mode = sysctl_mode;
+ privdata->mode = &ng_pppoe_modes[0];
return (0);
}
OpenPOWER on IntegriCloud