Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DotRas.RasPppInfo"/> class.
 /// </summary>
 /// <param name="ipv4NegotiationErrorCode">The result of a PPP IPv4 network control protocol negotiation.</param>
 /// <param name="ipAddress">The IP address of the local client.</param>
 /// <param name="serverIPAddress">The IP address of the remote server.</param>
 /// <param name="options">The Internet Protocol Control Protocol (IPCP) options for the local client.</param>
 /// <param name="serverOptions">The Internet Protocol Control Protocol (IPCP) options for the remote server.</param>
 /// <param name="ipv6NegotiationErrorCode">The result of a PPP IPv6 network control protocol negotiation.</param>
 /// <param name="interfaceIdentifier">The 64-bit IPv6 interface identifier of the client.</param>
 /// <param name="serverInterfaceIdentifier">the 64-bit IPv6 interface identifier of the server.</param>
 /// <param name="isBundled"><b>true</b> if the connection is composed of multiple links, otherwise <b>false</b>.</param>
 /// <param name="isMultilink"><b>true</b> if the connection supports multiple links, otherwise <b>false</b>.</param>
 /// <param name="authenticationProtocol">The authentication protocol used to authenticate the local client.</param>
 /// <param name="authenticationData">The authentication data used by the local client.</param>
 /// <param name="serverAuthenticationProtocol">The authentication protocol used by the remote server.</param>
 /// <param name="serverAuthenticationData">The authentication data used by the remote server.</param>
 /// <param name="eapTypeId">The type identifier of the Extensible Authentication Protocol (EAP) used to authenticate the local client.</param>
 /// <param name="serverEapTypeId">The type identifier of the Extensible Authentication Protocol (EAP) used to authenticate the remote server.</param>
 /// <param name="lcpOptions">The Link Control Protocol (LCP) options in use by the local client.</param>
 /// <param name="serverLcpOptions">The Link Control Protocol (LCP) options in use by the remote server.</param>
 /// <param name="ccpCompressionAlgorithm">The compression algorithm in use by the local client.</param>
 /// <param name="serverCcpCompressionAlgorithm">The compression algorithm in use by the remote server.</param>
 /// <param name="ccpOptions">The compression options on the local client.</param>
 /// <param name="serverCcpOptions">The compression options on the remote server.</param>
 internal RasPppInfo(int ipv4NegotiationErrorCode, IPAddress ipAddress, IPAddress serverIPAddress, RasIPOptions options, RasIPOptions serverOptions, int ipv6NegotiationErrorCode, ReadOnlyCollection <byte> interfaceIdentifier, ReadOnlyCollection <byte> serverInterfaceIdentifier, bool isBundled, bool isMultilink, RasLcpAuthenticationType authenticationProtocol, RasLcpAuthenticationDataType authenticationData, RasLcpAuthenticationType serverAuthenticationProtocol, RasLcpAuthenticationDataType serverAuthenticationData, int eapTypeId, int serverEapTypeId, RasLcpOptions lcpOptions, RasLcpOptions serverLcpOptions, RasCompressionType ccpCompressionAlgorithm, RasCompressionType serverCcpCompressionAlgorithm, RasCompressionOptions ccpOptions, RasCompressionOptions serverCcpOptions)
 {
     IPv4NegotiationErrorCode = ipv4NegotiationErrorCode;
     IPAddress                     = ipAddress;
     ServerIPAddress               = serverIPAddress;
     Options                       = options;
     ServerOptions                 = serverOptions;
     IPv6NegotiationErrorCode      = ipv6NegotiationErrorCode;
     InterfaceIdentifier           = interfaceIdentifier;
     ServerInterfaceIdentifier     = serverInterfaceIdentifier;
     IsBundled                     = isBundled;
     IsMultilink                   = isMultilink;
     AuthenticationProtocol        = authenticationProtocol;
     AuthenticationData            = authenticationData;
     ServerAuthenticationProtocol  = serverAuthenticationProtocol;
     ServerAuthenticationData      = serverAuthenticationData;
     EapTypeId                     = eapTypeId;
     ServerEapTypeId               = serverEapTypeId;
     LcpOptions                    = lcpOptions;
     ServerLcpOptions              = serverLcpOptions;
     CcpCompressionAlgorithm       = ccpCompressionAlgorithm;
     ServerCcpCompressionAlgorithm = serverCcpCompressionAlgorithm;
     CcpOptions                    = ccpOptions;
     ServerCcpOptions              = serverCcpOptions;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DotRas.RasLcpInfo"/> class.
 /// </summary>
 /// <param name="bundled"><b>true</b> if the connection is composed of multiple links, otherwise <b>false</b>.</param>
 /// <param name="errorCode">The error code (if any) that occurred.</param>
 /// <param name="authenticationProtocol">The authentication protocol used to authenticate the client.</param>
 /// <param name="authenticationData">The authentication data about the authentication protocol used by the client.</param>
 /// <param name="eapTypeId">The type id of the Extensible Authentication Protocol (EAP) used to authenticate the local computer.</param>
 /// <param name="serverAuthenticatonProtocol">The authentication protocol used to authenticate the server.</param>
 /// <param name="serverAuthenticationData">The authentication data about the authentication protocol used by the server.</param>
 /// <param name="serverEapTypeId">The type id of the Extensible Authentication Protocol (EAP) used to authenticate the remote computer.</param>
 /// <param name="multilink"><b>true</b> if the connection supports multilink, otherwise <b>false</b>.</param>
 /// <param name="terminateReason">The reason the client terminated the connection.</param>
 /// <param name="serverTerminateReason">The reason the server terminated the connection.</param>
 /// <param name="replyMessage">The message (if any) from the authentication protocol success/failure packet.</param>
 /// <param name="options">The additional options for the local computer.</param>
 /// <param name="serverOptions">The additional options for the remote computer.</param>
 internal RasLcpInfo(bool bundled, int errorCode, RasLcpAuthenticationType authenticationProtocol, RasLcpAuthenticationDataType authenticationData, int eapTypeId, RasLcpAuthenticationType serverAuthenticatonProtocol, RasLcpAuthenticationDataType serverAuthenticationData, int serverEapTypeId, bool multilink, int terminateReason, int serverTerminateReason, string replyMessage, RasLcpOptions options, RasLcpOptions serverOptions)
 {
     Bundled   = bundled;
     ErrorCode = errorCode;
     AuthenticationProtocol = authenticationProtocol;
     AuthenticationData     = authenticationData;
     EapTypeId = eapTypeId;
     ServerAuthenticationProtocol = serverAuthenticatonProtocol;
     ServerAuthenticationData     = serverAuthenticationData;
     ServerEapTypeId       = serverEapTypeId;
     Multilink             = multilink;
     TerminateReason       = terminateReason;
     ServerTerminateReason = serverTerminateReason;
     ReplyMessage          = replyMessage;
     Options       = options;
     ServerOptions = serverOptions;
 }
Пример #3
0
        /// <summary>
        /// Creates a copy of this object.
        /// </summary>
        /// <returns>A new <see cref="DotRas.RasLcpOptions"/> object.</returns>
        public object Clone()
        {
            RasLcpOptions retval = new RasLcpOptions();

            retval.Pfc       = this.Pfc;
            retval.Acfc      = this.Acfc;
            retval.Sshf      = this.Sshf;
            retval.Des56     = this.Des56;
            retval.TripleDes = this.TripleDes;

#if (WIN2K8 || WIN7 || WIN8)
            retval.Aes128 = this.Aes128;
            retval.Aes256 = this.Aes256;
#endif

            return(retval);
        }
Пример #4
0
        /// <summary>
        /// Creates a copy of this object.
        /// </summary>
        /// <returns>A new <see cref="DotRas.RasLcpOptions"/> object.</returns>
        public object Clone()
        {
            var retval = new RasLcpOptions();

            retval.Pfc       = Pfc;
            retval.Acfc      = Acfc;
            retval.Sshf      = Sshf;
            retval.Des56     = Des56;
            retval.TripleDes = TripleDes;

#if (WIN2K8 || WIN7 || WIN8)
            retval.Aes128 = Aes128;
            retval.Aes256 = Aes256;
#endif

            return(retval);
        }
Пример #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DotRas.RasLcpInfo"/> class.
 /// </summary>
 /// <param name="bundled"><b>true</b> if the connection is composed of multiple links, otherwise <b>false</b>.</param>
 /// <param name="errorCode">The error code (if any) that occurred.</param>
 /// <param name="authenticationProtocol">The authentication protocol used to authenticate the client.</param>
 /// <param name="authenticationData">The authentication data about the authentication protocol used by the client.</param>
 /// <param name="eapTypeId">The type id of the Extensible Authentication Protocol (EAP) used to authenticate the local computer.</param>
 /// <param name="serverAuthenticatonProtocol">The authentication protocol used to authenticate the server.</param>
 /// <param name="serverAuthenticationData">The authentication data about the authentication protocol used by the server.</param>
 /// <param name="serverEapTypeId">The type id of the Extensible Authentication Protocol (EAP) used to authenticate the remote computer.</param>
 /// <param name="multilink"><b>true</b> if the connection supports multilink, otherwise <b>false</b>.</param>
 /// <param name="terminateReason">The reason the client terminated the connection.</param>
 /// <param name="serverTerminateReason">The reason the server terminated the connection.</param>
 /// <param name="replyMessage">The message (if any) from the authentication protocol success/failure packet.</param>
 /// <param name="options">The additional options for the local computer.</param>
 /// <param name="serverOptions">The additional options for the remote computer.</param>
 internal RasLcpInfo(bool bundled, int errorCode, RasLcpAuthenticationType authenticationProtocol, RasLcpAuthenticationDataType authenticationData, int eapTypeId, RasLcpAuthenticationType serverAuthenticatonProtocol, RasLcpAuthenticationDataType serverAuthenticationData, int serverEapTypeId, bool multilink, int terminateReason, int serverTerminateReason, string replyMessage, RasLcpOptions options, RasLcpOptions serverOptions)
 {
     this.Bundled = bundled;
     this.ErrorCode = errorCode;
     this.AuthenticationProtocol = authenticationProtocol;
     this.AuthenticationData = authenticationData;
     this.EapTypeId = eapTypeId;
     this.ServerAuthenticationProtocol = serverAuthenticatonProtocol;
     this.ServerAuthenticationData = serverAuthenticationData;
     this.ServerEapTypeId = serverEapTypeId;
     this.Multilink = multilink;
     this.TerminateReason = terminateReason;
     this.ServerTerminateReason = serverTerminateReason;
     this.ReplyMessage = replyMessage;
     this.Options = options;
     this.ServerOptions = serverOptions;
 }
Пример #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DotRas.RasPppInfo"/> class.
 /// </summary>
 /// <param name="ipv4NegotiationErrorCode">The result of a PPP IPv4 network control protocol negotiation.</param>
 /// <param name="ipAddress">The IP address of the local client.</param>
 /// <param name="serverIPAddress">The IP address of the remote server.</param>
 /// <param name="options">The Internet Protocol Control Protocol (IPCP) options for the local client.</param>
 /// <param name="serverOptions">The Internet Protocol Control Protocol (IPCP) options for the remote server.</param>
 /// <param name="ipv6NegotiationErrorCode">The result of a PPP IPv6 network control protocol negotiation.</param>
 /// <param name="interfaceIdentifier">The 64-bit IPv6 interface identifier of the client.</param>
 /// <param name="serverInterfaceIdentifier">the 64-bit IPv6 interface identifier of the server.</param>
 /// <param name="isBundled"><b>true</b> if the connection is composed of multiple links, otherwise <b>false</b>.</param>
 /// <param name="isMultilink"><b>true</b> if the connection supports multiple links, otherwise <b>false</b>.</param>
 /// <param name="authenticationProtocol">The authentication protocol used to authenticate the local client.</param>
 /// <param name="authenticationData">The authentication data used by the local client.</param>
 /// <param name="serverAuthenticationProtocol">The authentication protocol used by the remote server.</param>
 /// <param name="serverAuthenticationData">The authentication data used by the remote server.</param>
 /// <param name="eapTypeId">The type identifier of the Extensible Authentication Protocol (EAP) used to authenticate the local client.</param>
 /// <param name="serverEapTypeId">The type identifier of the Extensible Authentication Protocol (EAP) used to authenticate the remote server.</param>
 /// <param name="lcpOptions">The Link Control Protocol (LCP) options in use by the local client.</param>
 /// <param name="serverLcpOptions">The Link Control Protocol (LCP) options in use by the remote server.</param>
 /// <param name="ccpCompressionAlgorithm">The compression algorithm in use by the local client.</param>
 /// <param name="serverCcpCompressionAlgorithm">The compression algorithm in use by the remote server.</param>
 /// <param name="ccpOptions">The compression options on the local client.</param>
 /// <param name="serverCcpOptions">The compression options on the remote server.</param>
 internal RasPppInfo(int ipv4NegotiationErrorCode, IPAddress ipAddress, IPAddress serverIPAddress, RasIPOptions options, RasIPOptions serverOptions, int ipv6NegotiationErrorCode, ReadOnlyCollection<byte> interfaceIdentifier, ReadOnlyCollection<byte> serverInterfaceIdentifier, bool isBundled, bool isMultilink, RasLcpAuthenticationType authenticationProtocol, RasLcpAuthenticationDataType authenticationData, RasLcpAuthenticationType serverAuthenticationProtocol, RasLcpAuthenticationDataType serverAuthenticationData, int eapTypeId, int serverEapTypeId, RasLcpOptions lcpOptions, RasLcpOptions serverLcpOptions, RasCompressionType ccpCompressionAlgorithm, RasCompressionType serverCcpCompressionAlgorithm, RasCompressionOptions ccpOptions, RasCompressionOptions serverCcpOptions)
 {
     this.IPv4NegotiationErrorCode = ipv4NegotiationErrorCode;
     this.IPAddress = ipAddress;
     this.ServerIPAddress = serverIPAddress;
     this.Options = options;
     this.ServerOptions = serverOptions;
     this.IPv6NegotiationErrorCode = ipv6NegotiationErrorCode;
     this.InterfaceIdentifier = interfaceIdentifier;
     this.ServerInterfaceIdentifier = serverInterfaceIdentifier;
     this.IsBundled = isBundled;
     this.IsMultilink = isMultilink;
     this.AuthenticationProtocol = authenticationProtocol;
     this.AuthenticationData = authenticationData;
     this.ServerAuthenticationProtocol = serverAuthenticationProtocol;
     this.ServerAuthenticationData = serverAuthenticationData;
     this.EapTypeId = eapTypeId;
     this.ServerEapTypeId = serverEapTypeId;
     this.LcpOptions = lcpOptions;
     this.ServerLcpOptions = serverLcpOptions;
     this.CcpCompressionAlgorithm = ccpCompressionAlgorithm;
     this.ServerCcpCompressionAlgorithm = serverCcpCompressionAlgorithm;
     this.CcpOptions = ccpOptions;
     this.ServerCcpOptions = serverCcpOptions;
 }
Пример #7
0
        /// <summary>
        /// Creates a copy of this object.
        /// </summary>
        /// <returns>A new <see cref="DotRas.RasLcpOptions"/> object.</returns>
        public object Clone()
        {
            RasLcpOptions retval = new RasLcpOptions();

            retval.Pfc = this.Pfc;
            retval.Acfc = this.Acfc;
            retval.Sshf = this.Sshf;
            retval.Des56 = this.Des56;
            retval.TripleDes = this.TripleDes;

#if (WIN2K8 || WIN7 || WIN8)

            retval.Aes128 = this.Aes128;
            retval.Aes256 = this.Aes256;

#endif

            return retval;
        }