OVH Cloud OVH Cloud

pppoatm.so

10 réponses
Avatar
Nicolas
Bonjour,

où trouver pppoatm.so.
J'ai les source de pppd 2.4.1 et pas de trace du plugin !!

Merci. Nicolas.

10 réponses

Avatar
Rakotomandimby
Nicolas wrote:

Bonjour,
Bonjour

J'ai les source de pppd 2.4.1 et pas de trace du plugin !!
Ben installe le !



--
http://mrakotom.free.fr

Avatar
Nicolas
Nicolas wrote:


Bonjour,


Bonjour

J'ai les source de pppd 2.4.1 et pas de trace du plugin !!


Ben installe le !



Si tu effaces la question et que tu réponds aux informations, c'est
normal que ta réponse tombe à côte.

La question est : où est le plugin pppoatm.so ?

A savoir, je ne l'ai pas trouvé dans les sources de pppd 2.4.1.

Merci pour ton attention.

Nicolas.


Avatar
Rakotomandimby
Nicolas wrote:
A savoir, je ne l'ai pas trouvé dans les sources de pppd 2.4.1.
Il va le "fabriquer" a la compilation ton plugin.

fais et tu verra bien .
une installation ne se resume pas a une copie de fichier .
Il va encore fabriquer les fichiers en fonction de ton architecture et de
ton environnement.
Tu lui demande ensuite de l'installer , puis tu le trouvera la ou il doit
etre , puis eventuellement tu desisntalle ,
ou bien au lieu d'installer , tu fais juste la compilation puis tu prends le
fichier dont tu as besoin et puis tu vire le reste .
Et a l'avenir , quand tu pose des questions sache que tu n'es pa en position
d'etre exigeant . Si je reponds a ta question c'est que je sais de quoi je
parle et si tu pose une question c'est tu ne sais PAS . Donc tu la mets en
veilleuse.
--
http://mrakotom.free.fr

Avatar
Nicolas

Et a l'avenir , quand tu pose des questions sache que tu n'es pa en position
d'etre exigeant . Si je reponds a ta question c'est que je sais de quoi je
parle et si tu pose une question c'est tu ne sais PAS . Donc tu la mets en
veilleuse.


A l'avenir, je préfère que tu t'abstienne de répondre à mes questions,
je m'en suis bien passé jusque là. Non la compilations des sources ne
fournit pas le plugin. J'ai lu la doc sur les plugin de pppd dans les
sources il n'est question que d'un exemple pour une autre pluggin.
D'autre part je suis capable de miantenir mon système linux à jour avec
ce qu'il faut pour en faire un serveur opérationnel, et tu remarqueras
que je ne passe pas mon temps à poser des quetions sur le foorum.
Pour finir j'ai trouvé mon pluggin tout seul, et confirmation il n'est
pas fabriqué automatiquement.
Moralité je t'aurai appris quelque chose aujourd'hui, même si ce n'est
pas la politesse.

Nicolas.

PS sur ton site il n'y a pas que la première page qui est en malgache.
Publicité mensongère ;-))

Avatar
TiChou
Dans l'article news:<3f76e1c6$0$20944$,
Nicolas écrivait :

Bonjour,


Bonsoir,

où trouver pppoatm.so.
J'ai les source de pppd 2.4.1 et pas de trace du plugin !!


pppd ne contient aucun plugin de ce genre.
D'ailleurs, qu'appelez vous plugin ? Car il n'y a pas ce type de
fonctionnalité avec pppd.
Ne s'agirait-il pas plutôt du module kernel pppoatm.o ?
Car de manière générale les fichiers ayant pour extension .so sont des
librairies et je ne vois pas trop le rapport avec pppd.

Peut être avez vous besoin de charger ce module, modprobe pppoatm, faut-il
encore qu'il ait été compilé. Dans le cas contraire il faudra activer cette
option dans la configruation du kernel et recompiler celui-ci avec ses
modules.

La prochaine fois soyez plus précis dans ce que vous recherchez et dans ce
que vous souhaitez faire.

--
TiChou

Avatar
Nicolas

La prochaine fois soyez plus précis dans ce que vous recherchez et dans ce
que vous souhaitez faire.


J'ai dit explicitement que je cherchais le plugin pppoatm.so, il n'y pas
de confusion avec un driver ou un module. Ce pluggin est nécessaire à la
l'utilisation d'une carte bewan PCI sy, modem adsl.
Il n'est pas fourni avec les sources de pppd mais ce trouve dans un rpm
mandrake et certainement ailleurs.

pppd ne contient aucun plugin de ce genre.
D'ailleurs, qu'appelez vous plugin ? Car il n'y a pas ce type de
fonctionnalité avec pppd.


Je vous informe du contraire:

Starting with version 2.3.10, pppd includes support for `plugins' -
pieces of code which can be loaded into pppd at runtime and which can
affect its behaviour in various ways. The idea of plugins is to
provide a way for people to customize the behaviour of pppd without
having to either apply local patches to each version or get their
patches accepted into the standard distribution. My aim is that
plugins will be able to be used with successive versions of pppd
without needing to recompile the plugins.

A plugin is a standard shared library object, typically with a name
ending in .so. They are loaded using the standard dlopen() library
call, so plugins are only supported on systems which support shared
libraries and the dlopen call. At present pppd is compiled with
plugin support only under Linux and Solaris.

Plugins are loaded into pppd using the `plugin' option, which takes
one argument, the name of a shared object file. The plugin option is
a privileged option. I suggest that you give the full path name of
the shared object file; if you don't, it may be possible for
unscrupulous users to substitute another shared object file for the
one you mean to load, e.g. by setting the LD_LIBRARY_PATH variable.

Plugins are usually written in C and compiled and linked to a shared
object file in the appropriate manner for your platform. Using gcc
under Linux, a plugin called `xyz' could be compiled and linked with
the following commands:

gcc -c -O xyz.c
gcc -shared -o xyz.so xyz.o

There are some example plugins in the pppd/plugins directory in the
ppp distribution. Currently there is one example, minconn.c, which
implements a `minconnect' option, which specifies a minimum connect
time before the idle timeout applies.

Plugins can access global variables within pppd, so it is useful for
them to #include "pppd.h" from the pppd source directory.

Every plugin must contain a global procedure called `plugin_init'.
This procedure will get called (with no arguments) immediately after
the plugin is loaded.

Plugins can affect the behaviour of pppd in at least three ways:

1. They can add extra options which pppd will then recognize. This is
done by calling the add_options() procedure with a pointer to an
array of option_t structures. The last entry in the array must
have its name field set to NULL.

2. Pppd contains `hook' variables which are procedure pointers. If a
given hook is not NULL, pppd will call the procedure it points to
at the appropriate point in its processing. The plugin can set any
of these hooks to point to its own procedures. See below for a
description of the hooks which are currently implemented.

3. Plugin code can call any global procedures and access any global
variables in pppd.

Here is a list of the currently implemented hooks in pppd.


int (*idle_time_hook)(struct ppp_idle *idlep);

The idle_time_hook is called when the link first comes up (i.e. when
the first network protocol comes up) and at intervals thereafter. On
the first call, the idlep parameter is NULL, and the return value is
the number of seconds before pppd should check the link activity, or 0
if there is to be no idle timeout.

On subsequent calls, idlep points to a structure giving the number of
seconds since the last packets were sent and received. If the return
value is > 0, pppd will wait that many seconds before checking again.
If it is <= 0, that indicates that the link should be terminated due
to lack of activity.


int (*holdoff_hook)(void);

The holdoff_hook is called when an attempt to bring up the link fails,
or the link is terminated, and the persist or demand option was used.
It returns the number of seconds that pppd should wait before trying
to reestablish the link (0 means immediately).


int (*pap_check_hook)(void);
int (*pap_passwd_hook)(char *user, char *passwd);
int (*pap_auth_hook)(char *user, int userlen,
char *passwd, int passlen,
char **msgp, int *msglenp,
struct wordlist **paddrs,
struct wordlist **popts);

These hooks are designed to allow a plugin to replace the normal PAP
password processing in pppd with something different (e.g. contacting
an external server).

The pap_check_hook is called to check whether there is any possibility
that the peer could authenticate itself to us. If it returns 1, pppd
will ask the peer to authenticate itself. If it returns 0, pppd will
not ask the peer to authenticate itself (but if authentication is
required, pppd may exit, or terminate the link before network protocol
negotiation). If it returns -1, pppd will look in the pap-secrets
file as it would normally.

The pap_passwd_hook is called to determine what username and password
pppd should use in authenticating itself to the peer with PAP. The
user string will already be initialized, by the `user' option, the
`name' option, or from the hostname, but can be changed if necessary.
MAXNAMELEN bytes of space are available at *user, and MAXSECRETLEN
bytes of space at *passwd. If this hook returns 0, pppd will use the
values at *user and *passwd; if it returns -1, pppd will look in the
pap-secrets file, or use the value from the +ua or password option, as
it would normally.

The pap_auth_hook is called to determine whether the username and
password supplied by the peer are valid. user and passwd point to
null-terminated strings containing the username and password supplied
by the peer, with non-printable characters converted to a printable
form. The pap_auth_hook function should set msg to a string to be
returned to the peer and return 1 if the username/password was valid
and 0 if not. If the hook returns -1, pppd will look in the
pap-secrets file as usual.

If the username/password was valid, the hook can set *paddrs to point
to a wordlist containing the IP address(es) which the peer is
permitted to use, formatted as in the pap-secrets file. It can also
set *popts to a wordlist containing any extra options for this user
which pppd should apply at this point.


## $Id: PLUGINS,v 1.2 1999/09/17 06:02:45 paulus Exp $ ##


Merci pour votre aide. Nicolas.

Avatar
TiChou
Dans l'article news:<3f774c67$0$20948$,
Nicolas écrivait :

pppd ne contient aucun plugin de ce genre.
D'ailleurs, qu'appelez vous plugin ? Car il n'y a pas ce type de
fonctionnalité avec pppd.


Je vous informe du contraire:


[snip la doc que je n'avais pas tout lu]

Au temps pour moi. Je suis confus.

Je pense alors que Google devrait vous aider. ;)

--
TiChou


Avatar
Jerome
Bonjour,
où trouver pppoatm.so.
J'ai les source de pppd 2.4.1 et pas de trace du plugin !!

Merci. Nicolas.



Directment dans ppp :-) depuis je sais pas trop quand mais sur ma debian
sid, ppp est en version 2.4.2b3 avec pppoatm.so.
:~$ /usr/sbin/pppd --version
Plugin /usr/lib/pppd/2.4.2b3/pppoatm.so loaded.
PPPoATM plugin_init
PPPoATM setdevname - remove unwanted options
PPPoATM setdevname_pppoatm - SUCCESS:8.35
pppd version 2.4.2b3

:~$ dpkg -L ppp | grep pppoatm
/usr/lib/pppd/2.4.2b3/pppoatm.so

Avatar
Nicolas

Au temps pour moi. Je suis confus.
Pas de pb, spontannément plugin pour moi c'était un truc pour navigateur

type flash...
Ici c'est plutôt un library partagée, d'ailleurs ça se range dans
/usr/lib...

Je pense alors que Google devrait vous aider. ;)


Je l'ai trouvée, merci.

Nicolas.

Avatar
Nicolas

Bonjour,
où trouver pppoatm.so.
J'ai les source de pppd 2.4.1 et pas de trace du plugin !!

Merci. Nicolas.



Directment dans ppp :-) depuis je sais pas trop quand mais sur ma debian
sid, ppp est en version 2.4.2b3 avec pppoatm.so.


T'as installé un package pppd de debian ?
Si c'est le cas c'est, sans doute, que celui qui a fait le package l'a
mis dedans.
C'est ce qu'ont fait les gas de mandrake, j'ai piqué le plugin dans le
rpm pppd de mandrake.
J'ai pppd 2.4.1, j'ai trouvé la version qui va avec.

Merci.

Nicolas.