rfc2637.txt

来自「<VC++网络游戏建摸与实现>源代码」· 文本 代码 · 共 1,548 行 · 第 1/5 页

TXT
1,548
字号
   Framing Capabilities     A set of bits indicating the type of framing                            that the sender of this message can provide.                            The currently defined bit settings are:                               1 - Asynchronous Framing supported                               2 - Synchronous Framing supported   Bearer Capabilities      A set of bits indicating the bearer                            capabilities that the sender of this message                            can provide.  The currently defined bit                            settings are:                               1 - Analog access supported                               2 - Digital access supported   Maximum Channels         The total number of individual PPP sessions                            this PAC can support.  In Start-Control-                            Connection-Requests issued by the PNS, this                            value SHOULD be set to 0.  It MUST be                            ignored by the PAC.   Firmware Revision        This field contains the firmware revision                            number of the issuing PAC, when issued by                            the PAC, or the version of the PNS PPTP                            driver if issued by the PNS.   Host Name                A 64 octet field containing the DNS name of                            the issuing PAC or PNS.  If less than 64                            octets in length, the remainder of this                            field SHOULD be filled with octets of value                            0.   Vendor Name              A 64 octet field containing a vendor                            specific string describing the type of PAC                            being used, or the type of PNS software                            being used if this request is issued by the                            PNS.  If less than 64 octets in length, the                            remainder of this field SHOULD be filled                            with octets of value 0.2.2.  Start-Control-Connection-Reply   The Start-Control-Connection-Reply is a PPTP control message sent in   reply to a received Start-Control-Connection-Request message.  This   message contains a result code indicating the result of the control   connection establishment attempt.Hamzeh, et al.               Informational                     [Page 12]RFC 2637        Point-to-Point Tunneling Protocol (PPTP)       July 1999       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      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+      |             Length            |       PPTP Message Type       |      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+      |                         Magic Cookie                          |      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+      |     Control Message Type      |           Reserved0           |      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+      |       Protocol Version        |  Result Code  |  Error Code   |      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+      |                      Framing Capability                       |      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+      |                       Bearer Capability                       |      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+      |       Maximum Channels        |       Firmware Revision       |      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+      |                                                               |      +                     Host Name (64 octets)                     +      |                                                               |      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+      |                                                               |      +                   Vendor String (64 octets)                   +      |                                                               |      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+   Length                   Total length in octets of this PPTP message,                            including the entire PPTP header.   PPTP Message Type        1 for Control Message.   Magic Cookie             0x1A2B3C4D.   Control Message Type     2 for Start-Control-Connection-Reply.   Reserved0                This field MUST be 0.   Protocol Version         The version of the PPTP protocol that the                            sender wishes to use.   Result Code              Indicates the result of the command channel                            establishment attempt.  Current valid Result                            Code values are:                                  1 - Successful channel establishment                                  2 - General error -- Error Code                                      indicates the problemHamzeh, et al.               Informational                     [Page 13]RFC 2637        Point-to-Point Tunneling Protocol (PPTP)       July 1999                                  3 - Command channel already exists;                                  4 - Requester is not authorized to                                      establish a command channel                                  5 - The protocol version of the                                      requester is not supported   Error Code               This field is set to 0 unless a "General                            Error" exists, in which case Result Code is                            set to 2 and this field is set to the value                            corresponding to the general error condition                            as specified in section 2.2.   Framing Capabilities     A set of bits indicating the type of framing                            that the sender of this message can provide.                            The currently defined bit settings are:                                  1 - Asynchronous Framing supported                                  2 - Synchronous Framing supported.   Bearer Capabilities      A set of bits indicating the bearer                            capabilities that the sender of this message                            can provide.  The currently defined bit                            settings are:                                  1 - Analog access supported                                  2 - Digital access supported   Maximum Channels         The total number of individual PPP sessions                            this PAC can support.  In a Start-Control-                            Connection-Reply issued by the PNS, this                            value SHOULD be set to 0 and it must be                            ignored by the PAC. The PNS MUST NOT use                            this value to try to track the remaining                            number of PPP sessions that the PAC will                            allow.   Firmware Revision        This field contains the firmware revision                            number of the issuing PAC, or the version of                            the PNS PPTP driver if issued by the PNS.Hamzeh, et al.               Informational                     [Page 14]RFC 2637        Point-to-Point Tunneling Protocol (PPTP)       July 1999   Host Name                A 64 octet field containing the DNS name of                            the issuing PAC or PNS.  If less than 64                            octets in length, the remainder of this                            field SHOULD be filled with octets of value                            0.   Vendor Name              A 64 octet field containing a vendor                            specific string describing the type of PAC                            being used, or the type of PNS software                            being used if this request is issued by the                            PNS.  If less than 64 octets in length, the                            remainder of this field SHOULD be filled                            with octets of value 0.2.3.  Stop-Control-Connection-Request   The Stop-Control-Connection-Request is a PPTP control message sent by   one peer of a PAC-PNS control connection to inform the other peer   that the control connection should be closed.  In addition to closing   the control connection, all active user calls are implicitly cleared.   The reason for issuing this request is indicated in the Reason field.       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      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+      |             Length            |       PPTP Message Type       |      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+      |                         Magic Cookie                          |      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+      |     Control Message Type      |           Reserved0           |      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+      |    Reason     |   Reserved1   |           Reserved2           |      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+   Length                   Total length in octets of this PPTP message,                            including the entire PPTP header.   PPTP Message Type        1 for Control Message.   Magic Cookie             0x1A2B3C4D.   Control Message Type     3 for Stop-Control-Connection-Request.   Reserved0                This field MUST be 0.   Reason                   Indicates the reason for the control                            connection being closed. Current valid                            Reason values are:Hamzeh, et al.               Informational                     [Page 15]RFC 2637        Point-to-Point Tunneling Protocol (PPTP)       July 1999                                  1 (None) - General request to clear                                    control connection                                  2 (Stop-Protocol) - Can't support                                    peer's version of the protocol                                  3 (Stop-Local-Shutdown) - Requester is                                    being shut down      Reserved1, Reserved2     These fields MUST be 0.2.4.  Stop-Control-Connection-Reply   The Stop-Control-Connection-Reply is a PPTP control message sent by   one peer of a PAC-PNS control connection upon receipt of a Stop-   Control-Connection-Request from the other peer.       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      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+      |            Length             |       PPTP Message Type       |      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+      |                         Magic Cookie                          |      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+      |     Control Message Type      |           Reserved0           |      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+      |  Result Code  |   Error Code  |           Reserved1           |      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+   Length                   Total length in octets of this PPTP message,                            including the entire PPTP header.   PPTP Message Type        1 for Control Message.   Magic Cookie             0x1A2B3C4D.   Control Message Type     4 for Stop-Control-Connection-Reply.   Reserved0                This field MUST be 0.   Result Code              Indicates the result of the attempt to close                            the control connection. Current valid Result                            Code values are:Hamzeh, et al.               Informational                     [Page 16]RFC 2637        Point-to-Point Tunneling Protocol (PPTP)       July 1999                                  1 (OK) - Control connection closed                                  2 (General Error) - Control connection                                    not closed for reason indicated in                                    Error Code   Error Code               This field is set to 0 unless a "General                            Error" exists, in which case Result Code is                            set to 2 and this field is set to the value                            corresponding to the general error condition                            as specified in section 2.2.   Reserved1                This field MUST be 0.2.5.  Echo-Request   The Echo-Request is a PPTP control message sent by either peer of a   PAC-PNS control connection. This control message is used as a "keep-   alive" for the control connection.  The receiving peer issues an   Echo-Reply to each Echo-Request received. As specified in section   3.1.4, if the sender does not receive an Echo-Reply in response to an   Echo-Request, it will eventually clear the control connection.       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      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+      |            Length             |       PPTP Message Type       |      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?