scapy.layers.pptp

PPTP (Point to Point Tunneling Protocol)

[RFC 2637]

class scapy.layers.pptp.PPTP

Bases: scapy.packet.Packet

aliastypes
classmethod dispatch_hook(_pkt=None, *args, **kargs)
fields_desc
PPTP fields

len

FieldLenField

None

type

ShortEnumField

1

magic_cookie

XIntField

439041101

ctrl_msg_type

ShortEnumField

1

reserved_0

XShortField

0

data

StrLenField

b''

classmethod register_variant()
registered_options = {1: <class 'scapy.layers.pptp.PPTPStartControlConnectionRequest'>, 2: <class 'scapy.layers.pptp.PPTPStartControlConnectionReply'>, 3: <class 'scapy.layers.pptp.PPTPStopControlConnectionRequest'>, 4: <class 'scapy.layers.pptp.PPTPStopControlConnectionReply'>, 5: <class 'scapy.layers.pptp.PPTPEchoRequest'>, 6: <class 'scapy.layers.pptp.PPTPEchoReply'>, 7: <class 'scapy.layers.pptp.PPTPOutgoingCallRequest'>, 8: <class 'scapy.layers.pptp.PPTPOutgoingCallReply'>, 9: <class 'scapy.layers.pptp.PPTPIncomingCallRequest'>, 10: <class 'scapy.layers.pptp.PPTPIncomingCallReply'>, 11: <class 'scapy.layers.pptp.PPTPIncomingCallConnected'>, 12: <class 'scapy.layers.pptp.PPTPCallClearRequest'>, 13: <class 'scapy.layers.pptp.PPTPCallDisconnectNotify'>, 14: <class 'scapy.layers.pptp.PPTPWANErrorNotify'>, 15: <class 'scapy.layers.pptp.PPTPSetLinkInfo'>}
class scapy.layers.pptp.PPTPCallClearRequest

Bases: scapy.layers.pptp.PPTP

aliastypes
fields_desc
PPTPCallClearRequest fields

len

LenField

16

type

ShortEnumField

1

magic_cookie

XIntField

439041101

ctrl_msg_type

ShortEnumField

12

reserved_0

XShortField

0

call_id

ShortField

1

reserved_1

XShortField

0

class scapy.layers.pptp.PPTPCallDisconnectNotify

Bases: scapy.layers.pptp.PPTP

aliastypes
fields_desc
PPTPCallDisconnectNotify fields

len

LenField

148

type

ShortEnumField

1

magic_cookie

XIntField

439041101

ctrl_msg_type

ShortEnumField

13

reserved_0

XShortField

0

call_id

ShortField

1

result_code

ByteEnumField

1

error_code

ByteEnumField

0

cause_code

ShortField

0

reserved_1

XShortField

0

call_statistic

StrFixedLenField

b''

class scapy.layers.pptp.PPTPEchoReply

Bases: scapy.layers.pptp.PPTP

aliastypes
answers(other)
fields_desc
PPTPEchoReply fields

len

LenField

20

type

ShortEnumField

1

magic_cookie

XIntField

439041101

ctrl_msg_type

ShortEnumField

6

reserved_0

XShortField

0

identifier

IntField

None

result_code

ByteEnumField

1

error_code

ByteEnumField

0

reserved_1

XShortField

0

class scapy.layers.pptp.PPTPEchoRequest

Bases: scapy.layers.pptp.PPTP

aliastypes
fields_desc
PPTPEchoRequest fields

len

LenField

16

type

ShortEnumField

1

magic_cookie

XIntField

439041101

ctrl_msg_type

ShortEnumField

5

reserved_0

XShortField

0

identifier

IntField

None

class scapy.layers.pptp.PPTPIncomingCallConnected

Bases: scapy.layers.pptp.PPTP

aliastypes
answers(other)
fields_desc
PPTPIncomingCallConnected fields

len

LenField

28

type

ShortEnumField

1

magic_cookie

XIntField

439041101

ctrl_msg_type

ShortEnumField

11

reserved_0

XShortField

0

peer_call_id

ShortField

1

reserved_1

XShortField

0

connect_speed

IntField

100000000

pkt_window_size

ShortField

64

pkt_transmit_delay

ShortField

0

framing_type

IntEnumField

1

class scapy.layers.pptp.PPTPIncomingCallReply

Bases: scapy.layers.pptp.PPTP

aliastypes
answers(other)
fields_desc
PPTPIncomingCallReply fields

len

LenField

148

type

ShortEnumField

1

magic_cookie

XIntField

439041101

ctrl_msg_type

ShortEnumField

10

reserved_0

XShortField

0

call_id

ShortField

1

peer_call_id

ShortField

1

result_code

ByteEnumField

1

error_code

ByteEnumField

0

pkt_window_size

ShortField

64

pkt_transmit_delay

ShortField

0

reserved_1

XShortField

0

class scapy.layers.pptp.PPTPIncomingCallRequest

Bases: scapy.layers.pptp.PPTP

aliastypes
fields_desc
PPTPIncomingCallRequest fields

len

LenField

220

type

ShortEnumField

1

magic_cookie

XIntField

439041101

ctrl_msg_type

ShortEnumField

9

reserved_0

XShortField

0

call_id

ShortField

1

call_serial_number

ShortField

1

bearer_type

IntEnumField

3

channel_id

IntField

0

dialed_number_len

ShortField

0

dialing_number_len

ShortField

0

dialed_number

StrFixedLenField

b''

dialing_number

StrFixedLenField

b''

subaddress

StrFixedLenField

b''

class scapy.layers.pptp.PPTPOutgoingCallReply

Bases: scapy.layers.pptp.PPTP

aliastypes
answers(other)
fields_desc
PPTPOutgoingCallReply fields

len

LenField

32

type

ShortEnumField

1

magic_cookie

XIntField

439041101

ctrl_msg_type

ShortEnumField

8

reserved_0

XShortField

0

call_id

ShortField

1

peer_call_id

ShortField

1

result_code

ByteEnumField

1

error_code

ByteEnumField

0

cause_code

ShortField

0

connect_speed

IntField

100000000

pkt_window_size

ShortField

16

pkt_proc_delay

ShortField

0

channel_id

IntField

0

class scapy.layers.pptp.PPTPOutgoingCallRequest

Bases: scapy.layers.pptp.PPTP

aliastypes
fields_desc
PPTPOutgoingCallRequest fields

len

LenField

168

type

ShortEnumField

1

magic_cookie

XIntField

439041101

ctrl_msg_type

ShortEnumField

7

reserved_0

XShortField

0

call_id

ShortField

1

call_serial_number

ShortField

0

minimum_bps

IntField

32768

maximum_bps

IntField

2147483648

bearer_type

IntEnumField

3

framing_type

IntEnumField

3

pkt_window_size

ShortField

16

pkt_proc_delay

ShortField

0

phone_number_len

ShortField

0

reserved_1

XShortField

0

phone_number

StrFixedLenField

b''

subaddress

StrFixedLenField

b''

class scapy.layers.pptp.PPTPSetLinkInfo

Bases: scapy.layers.pptp.PPTP

aliastypes
fields_desc
PPTPSetLinkInfo fields

len

LenField

24

type

ShortEnumField

1

magic_cookie

XIntField

439041101

ctrl_msg_type

ShortEnumField

15

reserved_0

XShortField

0

peer_call_id

ShortField

1

reserved_1

XShortField

0

send_accm

XIntField

0

receive_accm

XIntField

0

class scapy.layers.pptp.PPTPStartControlConnectionReply

Bases: scapy.layers.pptp.PPTP

aliastypes
answers(other)
fields_desc
PPTPStartControlConnectionReply fields

len

LenField

156

type

ShortEnumField

1

magic_cookie

XIntField

439041101

ctrl_msg_type

ShortEnumField

2

reserved_0

XShortField

0

protocol_version

ShortField

1

result_code

ByteEnumField

1

error_code

ByteEnumField

0

framing_capabilities

FlagsField (32 bits)

<Flag 0 ()>

bearer_capabilities

FlagsField (32 bits)

<Flag 0 ()>

maximum_channels

ShortField

65535

firmware_revision

ShortField

256

host_name

StrFixedLenField

b'linux'

vendor_string

StrFixedLenField

b''

class scapy.layers.pptp.PPTPStartControlConnectionRequest

Bases: scapy.layers.pptp.PPTP

aliastypes
fields_desc
PPTPStartControlConnectionRequest fields

len

LenField

156

type

ShortEnumField

1

magic_cookie

XIntField

439041101

ctrl_msg_type

ShortEnumField

1

reserved_0

XShortField

0

protocol_version

ShortField

1

reserved_1

XShortField

0

framing_capabilities

FlagsField (32 bits)

<Flag 0 ()>

bearer_capabilities

FlagsField (32 bits)

<Flag 0 ()>

maximum_channels

ShortField

65535

firmware_revision

ShortField

256

host_name

StrFixedLenField

b'linux'

vendor_string

StrFixedLenField

b''

class scapy.layers.pptp.PPTPStopControlConnectionReply

Bases: scapy.layers.pptp.PPTP

aliastypes
answers(other)
fields_desc
PPTPStopControlConnectionReply fields

len

LenField

16

type

ShortEnumField

1

magic_cookie

XIntField

439041101

ctrl_msg_type

ShortEnumField

4

reserved_0

XShortField

0

result_code

ByteEnumField

1

error_code

ByteEnumField

0

reserved_2

XShortField

0

class scapy.layers.pptp.PPTPStopControlConnectionRequest

Bases: scapy.layers.pptp.PPTP

aliastypes
fields_desc
PPTPStopControlConnectionRequest fields

len

LenField

16

type

ShortEnumField

1

magic_cookie

XIntField

439041101

ctrl_msg_type

ShortEnumField

3

reserved_0

XShortField

0

reason

ByteEnumField

1

reserved_1

XByteField

0

reserved_2

XShortField

0

class scapy.layers.pptp.PPTPWANErrorNotify

Bases: scapy.layers.pptp.PPTP

aliastypes
fields_desc
PPTPWANErrorNotify fields

len

LenField

40

type

ShortEnumField

1

magic_cookie

XIntField

439041101

ctrl_msg_type

ShortEnumField

14

reserved_0

XShortField

0

peer_call_id

ShortField

1

reserved_1

XShortField

0

crc_errors

IntField

0

framing_errors

IntField

0

hardware_overruns

IntField

0

buffer_overruns

IntField

0

time_out_errors

IntField

0

alignment_errors

IntField

0