TCP/IP Stack (TcpIp)
Provides IPv4/IPv6 networking, TCP/UDP sockets, ARP, ICMP, and DHCP services.
Funktionen — Übersicht
void TcpIp_Init (const TcpIp_ConfigType* ConfigPtr);This service initializes the TCP/ IP Stack.void TcpIp_GetVersionInfo (Std_VersionInfoType* versioninfo);Returns the version information.Std_ReturnType TcpIp_Close (TcpIp_SocketIdType SocketId, boolean Abort);By this API service the TCP/ IP stack is requested to close the socket and release all related resources.Std_ReturnType TcpIp_Bind (TcpIp_SocketIdType SocketId, TcpIp_LocalAddrIdType LocalAddrId, uint16* PortPtr);Service TcpIp_Bind.Std_ReturnType TcpIp_TcpConnect (TcpIp_SocketIdType SocketId, const TcpIp_SockAddrType* RemoteAddrPtr);B y this API service the TCP/ IP stack is requested to establish a TCP connection to the configured peer.Std_ReturnType TcpIp_TcpListen (TcpIp_SocketIdType SocketId, uint16 MaxChannels);By this API service the TCP/ IP stack is requested to listen on the TCP socket specified by the socket identifier.Std_ReturnType TcpIp_TcpReceived (TcpIp_SocketIdType SocketId, uint32 Length);By this API service the reception of socket data is confirmed to the TCP/ IP stack.Std_ReturnType TcpIp_RequestComMode (uint8 CtrlIdx, TcpIp_StateType State);By this API service the TCP/ IP stack is requested to change the Tcp Ip state of the communication network identified by Eth...Std_ReturnType TcpIp_RequestIpAddrAssignment (TcpIp_LocalAddrIdType LocalAddrId, TcpIp_IpAddrAssignmentTypeType, const TcpIp_SockAddrType* LocalIpAddrPtr, uint8 Netmask, const TcpIp_SockAddrType* DefaultRouterPtr);Service TcpIp_RequestIpAddrAssignment.Std_ReturnType TcpIp_ReleaseIpAddrAssignment (TcpIp_LocalAddrIdType LocalAddrId);By this API service the local IP address assignment for the IP address specified by Local Addr Id shall be released.Std_ReturnType TcpIp_ResetIpAssignment (void);Resets all learned IP - addresses to invalid values.Std_ReturnType TcpIp_IcmpTransmit (TcpIp_LocalAddrIdType LocalIpAddrId, AUTO SAR CP R20 - of const TcpIp_SockAddrType* RemoteAddrPtr, uint8 Ttl, uint8Type, uint8 Code, uint16 DataLength, const uint8* DataPtr); ⚠️Service TcpIp_IcmpTransmit.Std_ReturnType TcpIp_IcmpV6Transmit (TcpIp_LocalAddrIdType LocalIpAddrId, const TcpIp_SockAddrType* RemoteAddrPtr, uint8 HopLimit, uint8Type, uint8 Code, uint16 DataLength, const uint8* DataPtr); ⚠️By this API service the TCP/ IP stack sends an ICMPv6 message according to the specified parameters.Std_ReturnType TcpIp_DhcpReadOption (TcpIp_LocalAddrIdType LocalIpAddrId, uint8 Option, uint8* DataLength, uint8* DataPtr);By this API service the TCP/ IP stack retrieves DHCP option data identified by parameter option for already received DHCP options.Std_ReturnType TcpIp_DhcpV6ReadOption (TcpIp_LocalAddrIdType LocalIpAddrId, uint16 Option, uint16* DataLength, uint8* DataPtr);By this API service the TCP/ IP stack retrieve s DHCPv6 option data identified by parameter option for already received DHCPv6...Std_ReturnType TcpIp_DhcpWriteOption (TcpIp_LocalAddrIdType LocalIpAddrId, uint8 Option, uint8 DataLength, const uint8* DataPtr);By this API service the TCP/ IP stack writes the DHCP option data identified by parameter option.Std_ReturnType TcpIp_DhcpV6WriteOption (TcpIp_LocalAddrIdType LocalIpAddrId, uint16 Option, uint16 DataLength, const uint8* DataPtr);By this API service the TCP/ IP stack writes the DHCPv6 option data identified by parameter option.Std_ReturnType TcpIp_ChangeParameter (TcpIp_SocketIdType SocketId, TcpIp_ParamIdType ParameterId, const uint8* ParameterValue);By this API service the TCP/ IP stack is requested to change a parameter of a socket.Std_ReturnType TcpIp_GetIpAddr (TcpIp_LocalAddrIdType LocalAddrId, TcpIp_SockAddrType* IpAddrPtr, uint8* NetmaskPtr, TcpIp_SockAddrType* DefaultRouterPtr);Service TcpIp_GetIpAddr.Std_ReturnType TcpIp_GetPhysAddr (TcpIp_LocalAddrIdType LocalAddrId, uint8* PhysAddrPtr);Obtains the physical source address used by the Eth If controller implicitly specif ied via Local Addr Id.TcpIp_ReturnType TcpIp_GetRemotePhysAddr (uint8 CtrlIdx, const TcpIp_SockAddrType* IpAddrPtr, uint8* PhysAddrPtr, boolean InitRes);Tcp Ip_ Get Remote Phys Addr queries the IP/ physical address translation table specified by Ctrl Idx and returns the physical...Std_ReturnType TcpIp_GetCtrlIdx (TcpIp_LocalAddrIdType LocalAddrId, uint8* CtrlIdxPtr);Tcp Ip_ Get Ctrl Idx returns the index of the controller related to Local Addr Id.Std_ReturnType TcpIp_GetArpCacheEntries (AUTO SAR CP R20 - of uint8 ctrlIdx, uint32* numberOfElements, TcpIp_ArpCacheEntryType* entryListPtr); ⚠️Copies entries from the physic al address cache of the IPv4 instance that is active on the Eth If controller specified by ctrl...Std_ReturnType TcpIp_GetNdpCacheEntries (uint8 ctrlIdx, uint32* numberOfElements, TcpIp_NdpCacheEntryType* entryListPtr);Copies entries from the physic al address cache of the IPv6 instance that is active on the Eth If controller specified by ctrl...Std_ReturnType TcpIp_GetAndResetMeasurementData (TcpIp_MeasurementIdxType MeasurementIdx, boolean MeasurementResetNeeded, uint32* MeasurementDataPtr);Allows to read and reset detailed measurement data for diagnostic purposes.Std_ReturnType TcpIp_UdpTransmit (TcpIp_SocketIdType SocketId, const uint8* DataPtr, const TcpIp_SockAddrType* RemoteAddrPtr, uint16 TotalLength);This service transmits data via UDP to a remote node.Std_ReturnType TcpIp_TcpTransmit (TcpIp_SocketIdType SocketId, const uint8* DataPtr, uint32 AvailableLength, boolean ForceRetrieve);Service TcpIp_TcpTransmit.void TcpIp_RxIndication (uint8 CtrlIdx, Eth_FrameType FrameType, boolean IsBroadcast, const uint8* PhysAddrPtr, const uint8* DataPtr, uint16 LenByte);By this API service the TCP/ IP stack gets an indication and the data of a received frame.void TcpIp_MainFunction (void);Schedules the TCP/ IP stack.void <Up_PhysAddrTableChg> (uint8 CtrlIdx, const TcpIp_SockAddrType* IpAddrPtr, const uint8* PhysAddrPtr, boolean valid);This API is called by Tcp Ip in case of a change in the ARP/ NDP table related to the controller specified by Ctrl Idx.void <Up_RxIndication> (TcpIp_SocketIdType SocketId, const TcpIp_SockAddrType* RemoteAddrPtr, const uint8* BufPtr, uint16 Length);The TCP/ IP stack calls this primitive after the reception of data on a socket.void <Up_TxConfirmation> (TcpIp_SocketIdType SocketId, uint16 Length);The TCP/ IP stack calls this function after the data has been acknowledged by the peer for TCP.Std_ReturnType <Up_TcpAccepted> (TcpIp_SocketIdType SocketId, TcpIp_SocketIdType SocketIdConnected, const TcpIp_SockAddrType* RemoteAddrPtr);This service gets called if the stack put a socket into the listen mode before (as server) and a peer connected to it (as client).void <Up_TcpConnected> (TcpIp_SocketIdType SocketId);This service gets called if the stack initiated a TCP connection before (as client) and the peer (the server) acknowledged the...BufReq_ReturnType <Up_CopyTxData> (TcpIp_SocketIdType SocketId, uint8* BufPtr, uint16 BufLength);This service requests to copy data for transmission to the buffer indicated.void <Up_LocalIpAddrAssignmentChg> (TcpIp_LocalAddrIdType IpAddrId, TcpIp_IpAddrStateType State);This service gets called by the TCP/ IP stack if an IP address assignment changes (i.void <Up_IcmpMsgHandler> (TcpIp_LocalAddrIdType LocalAddrId, const TcpIp_SockAddrType* RemoteAddrPtr, uint8 Ttl, uint8Type, uint8 Code, uint16 DataLength, uint8* DataPtr); ⚠️By this API service the configured ICMP message handler function is called by the TCP/ IP stack on reception of a ICMP message...void <Up_DADAddressConflict> (TcpIp_LocalAddrIdType IpAddrId, const TcpIp_SockAddrType* IpAddrPtr, const uint8* LocalPhysAddrPtr, const uint8* RemotePhysAddrPtr);This API is called by Tcp Ip in case the Duplicate Address Detection (DAD) is enabled and detecting a duplicate IP Address.Std_ReturnType <Up_TlsGetCurrentTime> (uint32* CurrentTimeUtc);This function queries the current time.Std_ReturnType <Up_TlsServerGetPskIdentityHint> (TcpIp_SocketIdType SocketId, TcpIp_TlsConnectionIdType TlsConnectionId, uint16* IdentityHintLengthPtr, uint8* IdentityHintPtr);Queries the Identity hint for a pr e - shared key ciphersuite.Std_ReturnType <Up_TlsClientGetPskIdentity> (TcpIp_SocketIdType SocketId, TcpIp_TlsConnectionIdType TlsConnectionId, uint16 PskIdentityHintLength, const uint8* PskIdentityHintPtr, uint16* PskKeyIdentityLengthPtr, uint8* PskKeyIdentityPtr, uint32* CsmKeyId);Service .Std_ReturnType <Up_TlsServerGetPskIdentity> (TcpIp_SocketIdType SocketId, TcpIp_TlsConnectionIdType TlsConnectionId, uint16 PskKeyIdentityLength, const uint8* PskKeyIdentityPtr, uint32* CsmKeyId);This callback is used for the TLS server to provide the CSM key name according to the key identification that was selected by...
Typen — Übersicht
struct TcpIp_ConfigTypeConfiguration data structure of the Tcp Ip module.TcpIp_DomainTypeTcp Ip address families.TcpIp_ProtocolTypeProtocol type used by a socket.struct TcpIp_SockAddrTypeGeneric structure used by APIs to specify an IP address.struct TcpIp_SockAddrInetTypeThis structure defines an IPv4 address type which can be derived from the generic address structure via cast.struct TcpIp_SockAddrInet6TypeThis structure defines a IPv6 address type which can be derived from the generic address structure via cast.TcpIp_LocalAddrIdTypeAddress identification type for unique identification of a local IP address and Eth If Controller configured in the Tcp Ip module.TcpIp_SocketIdTypeSocket identifier type for unique identification of a Tcp Ip stack socket.enum TcpIp_StateTypeSpecifies the Tcp Ip state for a specific Eth If controller.enum TcpIp_IpAddrStateTypeSpecifies the state of local IP a ddress assignmentTcpIp_EventTypeEvents reported by Tcp Ip.TcpIp_IpAddrAssignmentTypeIPv6 address assignment policy.enum TcpIp_ReturnTypeTcp Ip specific return type.TcpIp_ParamIdTypeType TcpIp_ParamIdType.TcpIpIpAddrWildcardTypeIP address wildcard.TcpIpIp6AddrWildcardTypeIP6 address wildcard.TcpIpPortWildcardTypePort wildcard.TcpIpLocalAddrIdWildcardTypeLocal Addr Id wildcard.TcpIp_ArpCacheEntryTypeTcp Ip_ Arp Cache Entries elements typeTcpIp_NdpCacheEntryTypeTcp Ip_ Ndp Cache Entries elements typeTcpIp_MeasurementIdxTypeIndex to select specific measurement dataTcpIp_TlsConnectionIdTypeTLS connection identifier type for unique identification of a TLS connection.
Funktionen & Typen — Detailansicht
函数 TcpIp_Init [SWS_TCPIP_00002] 📄 PDF
void TcpIp_Init (const TcpIp_ConfigType* ConfigPtr);
This service initializes the TCP/ IP Stack. Tcp Ip_ Init may not block the start - up process for an indefinite amount of time. Caveats: The call of this service is mandatory before using the Tcp Ip instance for further processing.
函数 TcpIp_GetVersionInfo [SWS_TCPIP_00004] 📄 PDF
void TcpIp_GetVersionInfo (Std_VersionInfoType* versioninfo);
Returns the version information.
函数 TcpIp_Close [SWS_TCPIP_00017] 📄 PDF
Std_ReturnType TcpIp_Close (TcpIp_SocketIdType SocketId, boolean Abort);
By this API service the TCP/ IP stack is requested to close the socket and release all related resources.
函数 TcpIp_Bind [SWS_TCPIP_00015] 📄 PDF
Std_ReturnType TcpIp_Bind (TcpIp_SocketIdType SocketId, TcpIp_LocalAddrIdType LocalAddrId, uint16* PortPtr);
Service TcpIp_Bind.
函数 TcpIp_TcpConnect [SWS_TCPIP_00022] 📄 PDF
Std_ReturnType TcpIp_TcpConnect (TcpIp_SocketIdType SocketId, const TcpIp_SockAddrType* RemoteAddrPtr);
B y this API service the TCP/ IP stack is requested to establish a TCP connection to the configured peer.
函数 TcpIp_TcpListen [SWS_TCPIP_00023] 📄 PDF
Std_ReturnType TcpIp_TcpListen (TcpIp_SocketIdType SocketId, uint16 MaxChannels);
By this API service the TCP/ IP stack is requested to listen on the TCP socket specified by the socket identifier. Available v ia Tcp Ip.h
函数 TcpIp_TcpReceived [SWS_TCPIP_00024] 📄 PDF
Std_ReturnType TcpIp_TcpReceived (TcpIp_SocketIdType SocketId, uint32 Length);
By this API service the reception of socket data is confirmed to the TCP/ IP stack.
函数 TcpIp_RequestComMode [SWS_TCPIP_00070] 📄 PDF
Std_ReturnType TcpIp_RequestComMode (uint8 CtrlIdx, TcpIp_StateType State);
By this API service the TCP/ IP stack is requested to change the Tcp Ip state of the communication network identified by Eth If controller index.
函数 TcpIp_RequestIpAddrAssignment [SWS_TCPIP_00037] 📄 PDF
Std_ReturnType TcpIp_RequestIpAddrAssignment (TcpIp_LocalAddrIdType LocalAddrId, TcpIp_IpAddrAssignmentTypeType, const TcpIp_SockAddrType* LocalIpAddrPtr, uint8 Netmask, const TcpIp_SockAddrType* DefaultRouterPtr);
Service TcpIp_RequestIpAddrAssignment.
函数 TcpIp_ReleaseIpAddrAssignment [SWS_TCPIP_00078] 📄 PDF
Std_ReturnType TcpIp_ReleaseIpAddrAssignment (TcpIp_LocalAddrIdType LocalAddrId);
By this API service the local IP address assignment for the IP address specified by Local Addr Id shall be released.
函数 TcpIp_ResetIpAssignment [SWS_TCPIP_00215] 📄 PDF
Std_ReturnType TcpIp_ResetIpAssignment (void);
Resets all learned IP - addresses to invalid values.
函数 TcpIp_IcmpTransmit [SWS_TCPIP_00039] 📄 PDF
Std_ReturnType TcpIp_IcmpTransmit (TcpIp_LocalAddrIdType LocalIpAddrId, AUTO SAR CP R20 - of const TcpIp_SockAddrType* RemoteAddrPtr, uint8 Ttl, uint8Type, uint8 Code, uint16 DataLength, const uint8* DataPtr); ⚠️
Service TcpIp_IcmpTransmit.
函数 TcpIp_IcmpV6Transmit [SWS_TCPIP_00187] 📄 PDF
Std_ReturnType TcpIp_IcmpV6Transmit (TcpIp_LocalAddrIdType LocalIpAddrId, const TcpIp_SockAddrType* RemoteAddrPtr, uint8 HopLimit, uint8Type, uint8 Code, uint16 DataLength, const uint8* DataPtr); ⚠️
By this API service the TCP/ IP stack sends an ICMPv6 message according to the specified parameters.
函数 TcpIp_DhcpReadOption [SWS_TCPIP_00040] 📄 PDF
Std_ReturnType TcpIp_DhcpReadOption (TcpIp_LocalAddrIdType LocalIpAddrId, uint8 Option, uint8* DataLength, uint8* DataPtr);
By this API service the TCP/ IP stack retrieves DHCP option data identified by parameter option for already received DHCP options.
函数 TcpIp_DhcpV6ReadOption [SWS_TCPIP_00189] 📄 PDF
Std_ReturnType TcpIp_DhcpV6ReadOption (TcpIp_LocalAddrIdType LocalIpAddrId, uint16 Option, uint16* DataLength, uint8* DataPtr);
By this API service the TCP/ IP stack retrieve s DHCPv6 option data identified by parameter option for already received DHCPv6 options.
函数 TcpIp_DhcpWriteOption [SWS_TCPIP_00020] 📄 PDF
Std_ReturnType TcpIp_DhcpWriteOption (TcpIp_LocalAddrIdType LocalIpAddrId, uint8 Option, uint8 DataLength, const uint8* DataPtr);
By this API service the TCP/ IP stack writes the DHCP option data identified by parameter option.
函数 TcpIp_DhcpV6WriteOption [SWS_TCPIP_00190] 📄 PDF
Std_ReturnType TcpIp_DhcpV6WriteOption (TcpIp_LocalAddrIdType LocalIpAddrId, uint16 Option, uint16 DataLength, const uint8* DataPtr);
By this API service the TCP/ IP stack writes the DHCPv6 option data identified by parameter option.
函数 TcpIp_ChangeParameter [SWS_TCPIP_00016] 📄 PDF
Std_ReturnType TcpIp_ChangeParameter (TcpIp_SocketIdType SocketId, TcpIp_ParamIdType ParameterId, const uint8* ParameterValue);
By this API service the TCP/ IP stack is requested to change a parameter of a socket. E.g. the Nagle algorithm may be controlled by this API.
函数 TcpIp_GetIpAddr [SWS_TCPIP_00032] 📄 PDF
Std_ReturnType TcpIp_GetIpAddr (TcpIp_LocalAddrIdType LocalAddrId, TcpIp_SockAddrType* IpAddrPtr, uint8* NetmaskPtr, TcpIp_SockAddrType* DefaultRouterPtr);
Service TcpIp_GetIpAddr.
函数 TcpIp_GetPhysAddr [SWS_TCPIP_00033] 📄 PDF
Std_ReturnType TcpIp_GetPhysAddr (TcpIp_LocalAddrIdType LocalAddrId, uint8* PhysAddrPtr);
Obtains the physical source address used by the Eth If controller implicitly specif ied via Local Addr Id.
函数 TcpIp_GetRemotePhysAddr [SWS_TCPIP_00137] 📄 PDF
TcpIp_ReturnType TcpIp_GetRemotePhysAddr (uint8 CtrlIdx, const TcpIp_SockAddrType* IpAddrPtr, uint8* PhysAddrPtr, boolean InitRes);
Tcp Ip_ Get Remote Phys Addr queries the IP/ physical address translation table specified by Ctrl Idx and returns the physical address related to the IP addres s specified by Ip Addr Ptr. In case no physical address can be retrieved and parameter init Res is TRUE, address resolution for the specified IP address is initiated on the local network.
函数 TcpIp_GetCtrlIdx [SWS_TCPIP_00140] 📄 PDF
Std_ReturnType TcpIp_GetCtrlIdx (TcpIp_LocalAddrIdType LocalAddrId, uint8* CtrlIdxPtr);
Tcp Ip_ Get Ctrl Idx returns the index of the controller related to Local Addr Id.
函数 TcpIp_GetArpCacheEntries [SWS_TCPIP_91002] 📄 PDF
Std_ReturnType TcpIp_GetArpCacheEntries (AUTO SAR CP R20 - of uint8 ctrlIdx, uint32* numberOfElements, TcpIp_ArpCacheEntryType* entryListPtr); ⚠️
Copies entries from the physic al address cache of the IPv4 instance that is active on the Eth If controller specified by ctrl Idx into a user provided buffer. The function will copy all or number Of
函数 TcpIp_GetNdpCacheEntries [SWS_TCPIP_91001] 📄 PDF
Std_ReturnType TcpIp_GetNdpCacheEntries (uint8 ctrlIdx, uint32* numberOfElements, TcpIp_NdpCacheEntryType* entryListPtr);
Copies entries from the physic al address cache of the IPv6 instance that is active on the Eth If controller specified by ctrl Idx into a user provided buffer. The function will copy all or number Of
函数 TcpIp_GetAndResetMeasurementData [SWS_TCPIP_91006] 📄 PDF
Std_ReturnType TcpIp_GetAndResetMeasurementData (TcpIp_MeasurementIdxType MeasurementIdx, boolean MeasurementResetNeeded, uint32* MeasurementDataPtr);
Allows to read and reset detailed measurement data for diagnostic purposes. Get all Measurement Idx's at once is not supported. TCPIP_ MEAS_ ALL shall only be used to reset all Measurement Idx's at once. A NULL_ PTR shall be provided for Measurement Data Ptr in this case.
函数 TcpIp_UdpTransmit [SWS_TCPIP_00025] 📄 PDF
Std_ReturnType TcpIp_UdpTransmit (TcpIp_SocketIdType SocketId, const uint8* DataPtr, const TcpIp_SockAddrType* RemoteAddrPtr, uint16 TotalLength);
This service transmits data via UDP to a remote node. The transmission of the data is immediately performed with this function call by forwarding it to Eth If.
函数 TcpIp_TcpTransmit [SWS_TCPIP_00050] 📄 PDF
Std_ReturnType TcpIp_TcpTransmit (TcpIp_SocketIdType SocketId, const uint8* DataPtr, uint32 AvailableLength, boolean ForceRetrieve);
Service TcpIp_TcpTransmit.
函数 TcpIp_RxIndication [SWS_TCPIP_00029] 📄 PDF
void TcpIp_RxIndication (uint8 CtrlIdx, Eth_FrameType FrameType, boolean IsBroadcast, const uint8* PhysAddrPtr, const uint8* DataPtr, uint16 LenByte);
By this API service the TCP/ IP stack gets an indication and the data of a received frame.
函数 TcpIp_MainFunction [SWS_TCPIP_00026] 📄 PDF
void TcpIp_MainFunction (void);
Schedules the TCP/ IP stack. (Entry point for scheduling) AUTO SAR CP R20 - of Document ID : AUTOSAR_SWS_TcpIp
函数 <Up_PhysAddrTableChg> [SWS_TCPIP_00143] 📄 PDF
void <Up_PhysAddrTableChg> (uint8 CtrlIdx, const TcpIp_SockAddrType* IpAddrPtr, const uint8* PhysAddrPtr, boolean valid);
This API is called by Tcp Ip in case of a change in the ARP/ NDP table related to the controller specified by Ctrl Idx.
函数 <Up_RxIndication> [SWS_TCPIP_00223] 📄 PDF
void <Up_RxIndication> (TcpIp_SocketIdType SocketId, const TcpIp_SockAddrType* RemoteAddrPtr, const uint8* BufPtr, uint16 Length);
The TCP/ IP stack calls this primitive after the reception of data on a socket. The socket identifier along with configuration information determines which module is to be called.
函数 <Up_TxConfirmation> [SWS_TCPIP_00225] 📄 PDF
void <Up_TxConfirmation> (TcpIp_SocketIdType SocketId, uint16 Length);
The TCP/ IP stack calls this function after the data has been acknowledged by the peer for TCP. Caveats: The upper layer might not be able to determine exactly which data bytes have been confirmed.
函数 <Up_TcpAccepted> [SWS_TCPIP_00226] 📄 PDF
Std_ReturnType <Up_TcpAccepted> (TcpIp_SocketIdType SocketId, TcpIp_SocketIdType SocketIdConnected, const TcpIp_SockAddrType* RemoteAddrPtr);
This service gets called if the stack put a socket into the listen mode before (as server) and a peer connected to it (as client). In detail: T he TCP/ IP stack calls this function after a socket was set into the listen state with Tcp Ip_ Tcp Listen() and a TCP connection is requested by the peer.
函数 <Up_TcpConnected> [SWS_TCPIP_00227] 📄 PDF
void <Up_TcpConnected> (TcpIp_SocketIdType SocketId);
This service gets called if the stack initiated a TCP connection before (as client) and the peer (the server) acknowledged the connection set up. In detail: The TCP/ IP stack calls this function after a socket was requested to connect with Tcp Ip_ Tcp Conn ect() and a TCP connection is confirmed by the peer. The parameter value of Socket Id equals the Socket Id value of the preceeding Tcp Ip_ Tcp Connect() call.
函数 <Up_CopyTxData> [SWS_TCPIP_00228] 📄 PDF
BufReq_ReturnType <Up_CopyTxData> (TcpIp_SocketIdType SocketId, uint8* BufPtr, uint16 BufLength);
This service requests to copy data for transmission to the buffer indicated. This call is triggered by Tcp Ip_ Transmit(). Note: The call to
函数 <Up_LocalIpAddrAssignmentChg> [SWS_TCPIP_00229] 📄 PDF
void <Up_LocalIpAddrAssignmentChg> (TcpIp_LocalAddrIdType IpAddrId, TcpIp_IpAddrStateType State);
This service gets called by the TCP/ IP stack if an IP address assignment changes (i.e. new address assigned or assigned address becomes invalid).
函数 <Up_IcmpMsgHandler> [SWS_TCPIP_00270] 📄 PDF
void <Up_IcmpMsgHandler> (TcpIp_LocalAddrIdType LocalAddrId, const TcpIp_SockAddrType* RemoteAddrPtr, uint8 Ttl, uint8Type, uint8 Code, uint16 DataLength, uint8* DataPtr); ⚠️
By this API service the configured ICMP message handler function is called by the TCP/ IP stack on reception of a ICMP message which is not handled by the TCP/ IP stack.
函数 <Up_DADAddressConflict> [SWS_TCPIP_91005] 📄 PDF
void <Up_DADAddressConflict> (TcpIp_LocalAddrIdType IpAddrId, const TcpIp_SockAddrType* IpAddrPtr, const uint8* LocalPhysAddrPtr, const uint8* RemotePhysAddrPtr);
This API is called by Tcp Ip in case the Duplicate Address Detection (DAD) is enabled and detecting a duplicate IP Address.
函数 <Up_TlsGetCurrentTime> [SWS_TCPIP_91012] 📄 PDF
Std_ReturnType <Up_TlsGetCurrentTime> (uint32* CurrentTimeUtc);
This function queries the current time. This information will be requested when assembling the client hello message.
函数 <Up_TlsServerGetPskIdentityHint> [SWS_TCPIP_91013] 📄 PDF
Std_ReturnType <Up_TlsServerGetPskIdentityHint> (TcpIp_SocketIdType SocketId, TcpIp_TlsConnectionIdType TlsConnectionId, uint16* IdentityHintLengthPtr, uint8* IdentityHintPtr);
Queries the Identity hint for a pr e - shared key ciphersuite. This information is transmitted by the TLS Server to provide its identification to the TLS client.
函数 <Up_TlsClientGetPskIdentity> [SWS_TCPIP_91014] 📄 PDF
Std_ReturnType <Up_TlsClientGetPskIdentity> (TcpIp_SocketIdType SocketId, TcpIp_TlsConnectionIdType TlsConnectionId, uint16 PskIdentityHintLength, const uint8* PskIdentityHintPtr, uint16* PskKeyIdentityLengthPtr, uint8* PskKeyIdentityPtr, uint32* CsmKeyId);
Service
函数 <Up_TlsServerGetPskIdentity> [SWS_TCPIP_91015] 📄 PDF
Std_ReturnType <Up_TlsServerGetPskIdentity> (TcpIp_SocketIdType SocketId, TcpIp_TlsConnectionIdType TlsConnectionId, uint16 PskKeyIdentityLength, const uint8* PskKeyIdentityPtr, uint32* CsmKeyId);
This callback is used for the TLS server to provide the CSM key name according to the key identification that was selected by the TLS client. The TLS server must provide a Csm Key reference to a key that matches this key identification name.
类型 TcpIp_ConfigType [SWS_TCPIP_00067] 📄 PDF
Configuration data structure of the Tcp Ip module.
类型 TcpIp_DomainType [SWS_TCPIP_00009] 📄 PDF
Tcp Ip address families.
类型 TcpIp_ProtocolType [SWS_TCPIP_00010] 📄 PDF
Protocol type used by a socket.
类型 TcpIp_SockAddrType [SWS_TCPIP_00012] 📄 PDF
Generic structure used by APIs to specify an IP address. (A specific address type can be derived from this structure via a cast to the specific struct type.)
类型 TcpIp_SockAddrInetType [SWS_TCPIP_00013] 📄 PDF
This structure defines an IPv4 address type which can be derived from the generic address structure via cast.
类型 TcpIp_SockAddrInet6Type [SWS_TCPIP_00014] 📄 PDF
This structure defines a IPv6 address type which can be derived from the generic address structure via cast. AUTO SAR CP R20 - of Document ID : AUTOSAR_SWS_TcpIp
类型 TcpIp_LocalAddrIdType [SWS_TCPIP_00030] 📄 PDF
Address identification type for unique identification of a local IP address and Eth If Controller configured in the Tcp Ip module.
类型 TcpIp_SocketIdType [SWS_TCPIP_00038] 📄 PDF
Socket identifier type for unique identification of a Tcp Ip stack socket. TCPIP_ SOCKETID_ INVALID shall specify an invalid socket handle.
类型 TcpIp_StateType [SWS_TCPIP_00073] 📄 PDF
Specifies the Tcp Ip state for a specific Eth If controller.
类型 TcpIp_IpAddrStateType [SWS_TCPIP_00082] 📄 PDF
Specifies the state of local IP a ddress assignment
类型 TcpIp_EventType [SWS_TCPIP_00031] 📄 PDF
Events reported by Tcp Ip.
类型 TcpIp_IpAddrAssignmentType [SWS_TCPIP_00065] 📄 PDF
IPv6 address assignment policy.
类型 TcpIp_ReturnType [SWS_TCPIP_00066] 📄 PDF
Tcp Ip specific return type.
类型 TcpIp_ParamIdType [SWS_TCPIP_00126] 📄 PDF
Type TcpIp_ParamIdType.
类型 TcpIpIpAddrWildcardType [SWS_TCPIP_00133] 📄 PDF
IP address wildcard.
类型 TcpIpIp6AddrWildcardType [SWS_TCPIP_00132] 📄 PDF
IP6 address wildcard.
类型 TcpIpPortWildcardType [SWS_TCPIP_00134] 📄 PDF
Port wildcard.
类型 TcpIpLocalAddrIdWildcardType [SWS_TCPIP_00135] 📄 PDF
Local Addr Id wildcard.
类型 TcpIp_ArpCacheEntryType [SWS_TCPIP_91004] 📄 PDF
Tcp Ip_ Arp Cache Entries elements type
类型 TcpIp_NdpCacheEntryType [SWS_TCPIP_91003] 📄 PDF
Tcp Ip_ Ndp Cache Entries elements type
类型 TcpIp_MeasurementIdxType [SWS_TCPIP_91010] 📄 PDF
Index to select specific measurement data
类型 TcpIp_TlsConnectionIdType [SWS_TCPIP_91011] 📄 PDF
TLS connection identifier type for unique identification of a TLS connection. TCPIP_ TLSCONNECTIONID_ INVALID shall specify an invalid TLS connection handle.
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/CP_MOD_TcpIp- Status
- unspecified
- Version
AUTOSAR/AP/record/CP_MOD_TcpIp@rel:R20-11#77583d27- Content hash
77583d27- Source
- https://www.autosar.org/fileadmin/standards/R20-11/CP/AUTOSAR_SWS_TcpIp.pdf#nameddest=SWS_TCPIP_00002
gemini-3.8-flash-low· 2026-10-13 · 德文原文