scapy.layers.pptp

PPTP (Point to Point Tunneling Protocol)

[RFC 2637]

class scapy.layers.pptp.PPTP(_pkt, /, *, len=None, type=1, magic_cookie=439041101, ctrl_msg_type=1, reserved_0=0, data=b'')[源代码]

基类:Packet

aliastypes
classmethod dispatch_hook(_pkt=None, *args, **kargs)[源代码]
fields_desc
Display RFC-like schema
 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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              LEN              |              TYPE             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          MAGIC COOKIE                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|         CTRL MSG TYPE         |           RESERVED 0          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              DATA             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                            Fig. PPTP                             
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(_pkt, /, *, len=16, type=1, magic_cookie=439041101, ctrl_msg_type=12, reserved_0=0, call_id=1, reserved_1=0)[源代码]

基类:PPTP

aliastypes
fields_desc
Display RFC-like schema
 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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              LEN              |              TYPE             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          MAGIC COOKIE                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|         CTRL MSG TYPE         |           RESERVED 0          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            CALL ID            |           RESERVED 1          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                    Fig. PPTPCallClearRequest                     
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(_pkt, /, *, len=148, type=1, magic_cookie=439041101, ctrl_msg_type=13, reserved_0=0, call_id=1, result_code=1, error_code=0, cause_code=0, reserved_1=0, call_statistic=b'')[源代码]

基类:PPTP

aliastypes
fields_desc
Display RFC-like schema
 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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              LEN              |              TYPE             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          MAGIC COOKIE                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|         CTRL MSG TYPE         |           RESERVED 0          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            CALL ID            |  RESULT CODE  |   ERROR CODE  |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           CAUSE CODE          |           RESERVED 1          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         CALL STATISTIC                        |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                  Fig. PPTPCallDisconnectNotify                   
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(_pkt, /, *, len=20, type=1, magic_cookie=439041101, ctrl_msg_type=6, reserved_0=0, identifier=None, result_code=1, error_code=0, reserved_1=0)[源代码]

基类:PPTP

aliastypes
answers(other)[源代码]
fields_desc
Display RFC-like schema
 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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              LEN              |              TYPE             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          MAGIC COOKIE                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|         CTRL MSG TYPE         |           RESERVED 0          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           IDENTIFIER                          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|  RESULT CODE  |   ERROR CODE  |           RESERVED 1          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. PPTPEchoReply                        
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(_pkt, /, *, len=16, type=1, magic_cookie=439041101, ctrl_msg_type=5, reserved_0=0, identifier=None)[源代码]

基类:PPTP

aliastypes
fields_desc
Display RFC-like schema
 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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              LEN              |              TYPE             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          MAGIC COOKIE                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|         CTRL MSG TYPE         |           RESERVED 0          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           IDENTIFIER                          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. PPTPEchoRequest                       
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(_pkt, /, *, len=28, type=1, magic_cookie=439041101, ctrl_msg_type=11, reserved_0=0, peer_call_id=1, reserved_1=0, connect_speed=100000000, pkt_window_size=64, pkt_transmit_delay=0, framing_type=1)[源代码]

基类:PPTP

aliastypes
answers(other)[源代码]
fields_desc
Display RFC-like schema
 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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              LEN              |              TYPE             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          MAGIC COOKIE                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|         CTRL MSG TYPE         |           RESERVED 0          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|          PEER CALL ID         |           RESERVED 1          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         CONNECT SPEED                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|        PKT WINDOW SIZE        |       PKT TRANSMIT DELAY      |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          FRAMING TYPE                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                  Fig. PPTPIncomingCallConnected                  
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(_pkt, /, *, len=148, type=1, magic_cookie=439041101, ctrl_msg_type=10, reserved_0=0, call_id=1, peer_call_id=1, result_code=1, error_code=0, pkt_window_size=64, pkt_transmit_delay=0, reserved_1=0)[源代码]

基类:PPTP

aliastypes
answers(other)[源代码]
fields_desc
Display RFC-like schema
 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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              LEN              |              TYPE             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          MAGIC COOKIE                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|         CTRL MSG TYPE         |           RESERVED 0          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            CALL ID            |          PEER CALL ID         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|  RESULT CODE  |   ERROR CODE  |        PKT WINDOW SIZE        |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|       PKT TRANSMIT DELAY      |           RESERVED 1          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                    Fig. PPTPIncomingCallReply                    
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(_pkt, /, *, len=220, type=1, magic_cookie=439041101, ctrl_msg_type=9, reserved_0=0, call_id=1, call_serial_number=1, bearer_type=3, channel_id=0, dialed_number_len=0, dialing_number_len=0, dialed_number=b'', dialing_number=b'', subaddress=b'')[源代码]

基类:PPTP

aliastypes
fields_desc
Display RFC-like schema
 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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              LEN              |              TYPE             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          MAGIC COOKIE                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|         CTRL MSG TYPE         |           RESERVED 0          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            CALL ID            |       CALL SERIAL NUMBER      |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          BEARER TYPE                          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           CHANNEL ID                          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|       DIALED NUMBER LEN       |       DIALING NUMBER LEN      |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         DIALED NUMBER                         |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         DIALING NUMBER                        |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           SUBADDRESS                          |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                   Fig. PPTPIncomingCallRequest                   
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(_pkt, /, *, len=32, type=1, magic_cookie=439041101, ctrl_msg_type=8, reserved_0=0, call_id=1, peer_call_id=1, result_code=1, error_code=0, cause_code=0, connect_speed=100000000, pkt_window_size=16, pkt_proc_delay=0, channel_id=0)[源代码]

基类:PPTP

aliastypes
answers(other)[源代码]
fields_desc
Display RFC-like schema
 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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              LEN              |              TYPE             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          MAGIC COOKIE                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|         CTRL MSG TYPE         |           RESERVED 0          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            CALL ID            |          PEER CALL ID         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|  RESULT CODE  |   ERROR CODE  |           CAUSE CODE          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         CONNECT SPEED                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|        PKT WINDOW SIZE        |         PKT PROC DELAY        |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           CHANNEL ID                          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                    Fig. PPTPOutgoingCallReply                    
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(_pkt, /, *, len=168, type=1, magic_cookie=439041101, ctrl_msg_type=7, reserved_0=0, call_id=1, call_serial_number=0, minimum_bps=32768, maximum_bps=2147483648, bearer_type=3, framing_type=3, pkt_window_size=16, pkt_proc_delay=0, phone_number_len=0, reserved_1=0, phone_number=b'', subaddress=b'')[源代码]

基类:PPTP

aliastypes
fields_desc
Display RFC-like schema
 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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              LEN              |              TYPE             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          MAGIC COOKIE                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|         CTRL MSG TYPE         |           RESERVED 0          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            CALL ID            |       CALL SERIAL NUMBER      |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          MINIMUM BPS                          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          MAXIMUM BPS                          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          BEARER TYPE                          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          FRAMING TYPE                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|        PKT WINDOW SIZE        |         PKT PROC DELAY        |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|        PHONE NUMBER LEN       |           RESERVED 1          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          PHONE NUMBER                         |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           SUBADDRESS                          |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                   Fig. PPTPOutgoingCallRequest                   
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(_pkt, /, *, len=24, type=1, magic_cookie=439041101, ctrl_msg_type=15, reserved_0=0, peer_call_id=1, reserved_1=0, send_accm=0, receive_accm=0)[源代码]

基类:PPTP

aliastypes
fields_desc
Display RFC-like schema
 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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              LEN              |              TYPE             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          MAGIC COOKIE                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|         CTRL MSG TYPE         |           RESERVED 0          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|          PEER CALL ID         |           RESERVED 1          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           SEND ACCM                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          RECEIVE ACCM                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. PPTPSetLinkInfo                       
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(_pkt, /, *, len=156, type=1, magic_cookie=439041101, ctrl_msg_type=2, reserved_0=0, protocol_version=256, result_code=1, error_code=0, framing_capabilities=<Flag 0 ()>, bearer_capabilities=<Flag 0 ()>, maximum_channels=65535, firmware_revision=256, host_name=b'linux', vendor_string=b'')[源代码]

基类:PPTP

aliastypes
answers(other)[源代码]
fields_desc
Display RFC-like schema
 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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              LEN              |              TYPE             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          MAGIC COOKIE                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|         CTRL MSG TYPE         |           RESERVED 0          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|        PROTOCOL VERSION       |  RESULT CODE  |   ERROR CODE  |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                      FRAMING CAPABILITIES                     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                      BEARER CAPABILITIES                      |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|        MAXIMUM CHANNELS       |       FIRMWARE REVISION       |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           HOST NAME                           |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         VENDOR STRING                         |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

               Fig. PPTPStartControlConnectionReply               
PPTPStartControlConnectionReply fields

len

LenField

156

type

ShortEnumField

1

magic_cookie

XIntField

439041101

ctrl_msg_type

ShortEnumField

2

reserved_0

XShortField

0

protocol_version

ShortField

256

result_code

ByteEnumField

1

error_code

ByteEnumField

0

framing_capabilities

FlagsField

<Flag 0 ()>

bearer_capabilities

FlagsField

<Flag 0 ()>

maximum_channels

ShortField

65535

firmware_revision

ShortField

256

host_name

StrFixedLenField

b'linux'

vendor_string

StrFixedLenField

b''

class scapy.layers.pptp.PPTPStartControlConnectionRequest(_pkt, /, *, len=156, type=1, magic_cookie=439041101, ctrl_msg_type=1, reserved_0=0, protocol_version=256, reserved_1=0, framing_capabilities=<Flag 0 ()>, bearer_capabilities=<Flag 0 ()>, maximum_channels=65535, firmware_revision=256, host_name=b'linux', vendor_string=b'')[源代码]

基类:PPTP

aliastypes
fields_desc
Display RFC-like schema
 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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              LEN              |              TYPE             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          MAGIC COOKIE                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|         CTRL MSG TYPE         |           RESERVED 0          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|        PROTOCOL VERSION       |           RESERVED 1          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                      FRAMING CAPABILITIES                     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                      BEARER CAPABILITIES                      |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|        MAXIMUM CHANNELS       |       FIRMWARE REVISION       |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           HOST NAME                           |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         VENDOR STRING                         |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

              Fig. PPTPStartControlConnectionRequest              
PPTPStartControlConnectionRequest fields

len

LenField

156

type

ShortEnumField

1

magic_cookie

XIntField

439041101

ctrl_msg_type

ShortEnumField

1

reserved_0

XShortField

0

protocol_version

ShortField

256

reserved_1

XShortField

0

framing_capabilities

FlagsField

<Flag 0 ()>

bearer_capabilities

FlagsField

<Flag 0 ()>

maximum_channels

ShortField

65535

firmware_revision

ShortField

256

host_name

StrFixedLenField

b'linux'

vendor_string

StrFixedLenField

b''

class scapy.layers.pptp.PPTPStopControlConnectionReply(_pkt, /, *, len=16, type=1, magic_cookie=439041101, ctrl_msg_type=4, reserved_0=0, result_code=1, error_code=0, reserved_2=0)[源代码]

基类:PPTP

aliastypes
answers(other)[源代码]
fields_desc
Display RFC-like schema
 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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              LEN              |              TYPE             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          MAGIC COOKIE                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|         CTRL MSG TYPE         |           RESERVED 0          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|  RESULT CODE  |   ERROR CODE  |           RESERVED 2          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

               Fig. PPTPStopControlConnectionReply                
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(_pkt, /, *, len=16, type=1, magic_cookie=439041101, ctrl_msg_type=3, reserved_0=0, reason=1, reserved_1=0, reserved_2=0)[源代码]

基类:PPTP

aliastypes
fields_desc
Display RFC-like schema
 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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              LEN              |              TYPE             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          MAGIC COOKIE                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|         CTRL MSG TYPE         |           RESERVED 0          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|     REASON    |   RESERVED 1  |           RESERVED 2          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

              Fig. PPTPStopControlConnectionRequest               
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(_pkt, /, *, len=40, type=1, magic_cookie=439041101, ctrl_msg_type=14, reserved_0=0, peer_call_id=1, reserved_1=0, crc_errors=0, framing_errors=0, hardware_overruns=0, buffer_overruns=0, time_out_errors=0, alignment_errors=0)[源代码]

基类:PPTP

aliastypes
fields_desc
Display RFC-like schema
 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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              LEN              |              TYPE             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          MAGIC COOKIE                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|         CTRL MSG TYPE         |           RESERVED 0          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|          PEER CALL ID         |           RESERVED 1          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           CRC ERRORS                          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         FRAMING ERRORS                        |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                       HARDWARE OVERRUNS                       |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                        BUFFER OVERRUNS                        |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                        TIME OUT ERRORS                        |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                        ALIGNMENT ERRORS                       |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. PPTPWANErrorNotify                      
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