Decoder une entete SAP (RFC 2974)
Benoit BESSE
benoit.besse at club-internet.fr
Tue May 13 20:04:37 EDT 2003
Sorry for this french version, here are the english version :
> Bonjour, je voudrais décoder des entête SAP d'un message que je reçois sur
> le port 9875. Les informations sont de cette forme :
Hello, I would like to decode heading SAP of a message which I receive on
port 9875. Information are
> 0 1 2 3
> 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> | V=1 |A|R|T|E|C| auth len | msg id hash |
> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> | |
> : originating source (32 or 128 bits) :
> : :
> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> | optional authentication data |
> : .... :
> *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
> | optional payload type |
> + +-+- - - - - - - - - -+
> | |0| |
> + - - - - - - - - - - - - - - - - - - - - +-+ |
> | |
> : payload :
> | |
> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>
> Mon problème et de décoder le version et les informations qui suivent.
> Quelqu'un pourrait il me proposer une solution car je ne maitrise pas bien
> le unpack (qui d'ailleurs semble insuffisant pour ce cas) et les exemples
ne
> sont pas trop répandu.
My problem is to decode the version and information which follows. Is there
someone to propose a solution because I maitrise not well the unpack and I
not enough example.
>
> Merci pour votre aide.
>
Many thanks for your help.
> Benoît.
>
>
More information about the Python-list
mailing list