linux-ppp.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: arthurpaulino <arthurpaulino@great.ufc.br>
To: linux-ppp@vger.kernel.org
Subject: PPP compression
Date: Thu, 18 Dec 2014 20:49:25 +0000	[thread overview]
Message-ID: <3b4526880d737ed5094d632636e6fef8@great.ufc.br> (raw)

Hello,

I saw this e-mall address at http://ppp.samba.org/resources.html.
We do have some questions about ppp. About ppp compression, to be more
specific.

We need to decompress the payload of some packets to verify if they are
encrypted on Android devices.

We configured a PPTP VPN server with no encryption. The compression
algorithm negotiated during the connection phase is Deflate.

For instance, in these packets

19:59:09.883213 IP 191.10.97.74 > 200.129.43.196: GREv1, call 1152, seq
106, length 51: compressed PPP data
	0x0000:  4500 0047 cc42 4000 402f 59ab bf0a 614a
	0x0010:  c881 2bc4 3001 880b 0027 0480 0000 006a
	0x0020:  ff03 00fd 005c 02f7 1e3f 8327 ce85 cfc1
	0x0030:  13e8 4b86 80ff 8d1c 6eb0 dee3 7f23 e4de
	0x0040:  e3ef 4258 ef11 00
19:59:09.884437 IP 191.10.97.74 > 200.129.43.196: GREv1, call 1152, seq
107, length 43: compressed PPP data
	0x0000:  4500 003f cc43 4000 402f 59b2 bf0a 614a
	0x0010:  c881 2bc4 3001 880b 001f 0480 0000 006b
	0x0020:  ff03 00fd 005d 026b 5e04 4edd 294b e09a
	0x0030:  5f31 04e8 0547 0ac0 34d7 4fc3 ae19 00
19:59:09.885609 IP 191.10.97.74 > 200.129.43.196: GREv1, call 1152, seq
108, length 44: compressed PPP data
	0x0000:  4500 0040 cc44 4000 402f 59b0 bf0a 614a
	0x0010:  c881 2bc4 3001 880b 0020 0480 0000 006c
	0x0020:  ff03 00fd 005e 026b 3e06 ae27 1c56 c035
	0x0030:  bf66 0858 c168 ab03 d3ac 781a bb66 0000

We figured out that hex FD means that the payload is compressed. Then
comes a coherency counter (fd 005c, fd 005d, fd 005e). And then, the
compressed payload itself.

Is there a way to call the deflate algorithm implemented on the linux
kernel? Are we following the right path? We're trying to avoid
implementing
Deflate from zero.

Thank you

             reply	other threads:[~2014-12-18 20:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-18 20:49 arthurpaulino [this message]
2014-12-18 21:24 ` PPP compression James Carlson
2014-12-19 17:28 ` Arthur Paulino
2014-12-20 21:24 ` James Carlson
2014-12-21 18:37 ` Michael Richardson
2014-12-22 12:34 ` James Carlson
2014-12-22 18:06 ` arthurpaulino
2014-12-22 19:09 ` James Carlson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3b4526880d737ed5094d632636e6fef8@great.ufc.br \
    --to=arthurpaulino@great.ufc.br \
    --cc=linux-ppp@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).