DEENESPTFRRUARHIKOZHNL

TCP/IP Stack (TcpIp)

ModulTcpIp (TCP/IP Stack)
BSW-Modul-ID170
Standard-Header#include "TcpIp.h"
SWS-SpezifikationAUTOSAR_SWS_TcpIp.pdf
ClusterEthernet Services

मॉड्यूल गाइडएआई जनित

ईथरनेट स्टैक में TCP और UDP के माध्यम से ऊपरी लेयर्स के लिए एड्रेस प्रबंधन सहित IP संचार प्रदान करता है।
एआई-जनित असत्यापित मॉडल: claude-opus-5-5 · प्रयास: high · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 0a4cda5ef1d2 उद्गम खुले प्रश्न (3)
कारणात्मक एंकर: R20-11 R20-11 से मान्य इस विनिर्देश संस्करण के लिए नए सिरे से संश्लेषित।
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

ईथरनेट स्टैक में TCP और UDP के माध्यम से ऊपरी लेयर्स के लिए एड्रेस प्रबंधन सहित IP संचार प्रदान करता है।

TcpIp क्लासिक ईथरनेट स्टैक में ARP, NDP, ICMP और DHCP के साथ-साथ UDP और TCP के साथ IPv4 और IPv6 प्रदान करता है और इस प्रकार SoAd [SWS_TCPIP_00052] जैसे सॉकेट स्वामियों को सेवा प्रदान करता है। EthSM प्रत्येक EthIf नियंत्रक के लिए ONLINE, ONHOLD और OFFLINE स्थितियों को नियंत्रित करता है। एक नियंत्रक केवल तभी ONLINE होता है जब उसे एक स्थानीय एड्रेस असाइन किया गया हो [SWS_TCPIP_00085]। सॉकेट्स का अनुरोध किया जाता है, उन्हें बाइंड किया जाता है और TCP के मामले में सक्रिय या निष्क्रिय रूप से कनेक्ट किया जाता है, डेटा ट्रांसमिशन सेवाओं और कॉलबैक्स के माध्यम से प्रवाहित होता है। सबसे महत्वपूर्ण बाध्यकारी शर्त: TcpIp नए TCP कनेक्शन केवल ONLINE स्थिति में स्वीकार करता है, और ONHOLD में यह नए ट्रांसमिशन अनुरोधों को अस्वीकार कर देता है।

क्लासिक ईथरनेट स्टैक में TcpIp IP संचार के लिए ज़िम्मेदार है। इसमें IPv4 (ARP, ICMP, DHCP और Auto-IP के साथ), IPv6 (NDP, ICMPv6 और DHCPv6 के साथ) और UDP, TCP और TLS ([SWS_TCPIP_00052], [SWS_TCPIP_00150]) के लिए सब-मॉड्यूल शामिल हैं। ऊपर की ओर यह सॉकेट स्वामियों, यानी SoAd या CDDs को अपने स्वयं के TcpIp_<Up>GetSocket-फ़ंक्शंस और कॉलबैक्स ([SWS_TCPIP_00220], [SWS_TCPIP_00222]) के साथ सेवा प्रदान करता है। नीचे की ओर यह EthIf [SWS_TCPIP_00029] के साथ फ़्रेमों का आदान-प्रदान करता है।

kontext EthSM EthSM TcpIp TcpIp IPv4 / ARP / ICMP / DHCP / Auto-IP IPv6 / NDP / ICMPv6 / DHCPv6 UDP / TCP / TLS / IPsec EthSM->TcpIp TcpIp_RequestComMode SoAd SoAd (Socket-Owner SOAD) SoAd->TcpIp TcpIp_SoAdGetSocket, TcpIp_Bind, TcpIp_TcpTransmit, TcpIp_UdpTransmit CDD CDD (Socket-Owner CDD) CDD->TcpIp TcpIp_<Up>GetSocket, Transmit-Dienste TcpIp->SoAd SoAd_RxIndication, SoAd_TxConfirmation, SoAd_TcpAccepted, SoAd_LocalIpAddrAssignmentChg TcpIp->CDD konfigurierte Callback-Namen EthIf EthIf TcpIp->EthIf EthIf_ProvideTxBuffer, EthIf_Transmit Det Det TcpIp->Det डेवलपमेंट और रनटाइम एरर Csm Csm (optional) TcpIp->Csm Krypto-Dienste (TLS) IdsM IdsM (optional) TcpIp->IdsM Sicherheitsereignisse NvM NvM-Block (TCPIP_STORE) TcpIp->NvM gespeicherte IP-Adressen EthIf->TcpIp TcpIp_RxIndication

संदर्भ आरेख: TcpIp सॉकेट स्वामियों और EthIf के बीच स्थित होता है, इसे EthSM द्वारा नियंत्रित किया जाता है और यह DET और IdsM को रिपोर्ट करता है। स्रोत: [SWS_TCPIP_00220], [SWS_TCPIP_00070], [SWS_TCPIP_00361], SWS TcpIp पृ. 17

TcpIp प्रत्येक EthIf नियंत्रक [SWS_TCPIP_00083] के लिए संचार स्थिति को अलग से बनाए रखता है। EthSM TcpIp_RequestComMode के माध्यम से ONLINE, ONHOLD या OFFLINE स्थितियों में से एक का अनुरोध करता है [SWS_TCPIP_00070]। STARTUP और SHUTDOWN संक्रमणकालीन स्थितियाँ हैं और इनका अनुरोध नहीं किया जा सकता है [SWS_TCPIP_00089]। ONLINE एड्रेस असाइनमेंट प्रारंभ करता है। ONHOLD सॉकेट्स और एड्रेस को बरकरार रखता है, लेकिन कोई ट्रांसमिशन अनुरोध स्वीकार नहीं करता है। OFFLINE सॉकेट्स ([SWS_TCPIP_00075], [SWS_TCPIP_00074], [SWS_TCPIP_00072]) को बंद कर देता है।

zustand Start शुरू OFFLINE TCPIP_STATE_OFFLINE Start->OFFLINE TcpIp_Init() STARTUP TCPIP_STATE_STARTUP OFFLINE->STARTUP RequestComMode(ONLINE) / Adresszuweisungen aktivieren STARTUP->OFFLINE RequestComMode(OFFLINE) / Zuweisungen abbrechen ONLINE TCPIP_STATE_ONLINE STARTUP->ONLINE erste Adresse zugewiesen / <Up>_LocalIpAddrAssignmentChg(ASSIGNED) ONHOLD TCPIP_STATE_ONHOLD ONLINE->ONHOLD RequestComMode(ONHOLD) / ...(ONHOLD), Kommunikation deaktivieren SHUTDOWN TCPIP_STATE_SHUTDOWN ONLINE->SHUTDOWN RequestComMode(OFFLINE) या सभी पते रिलीज़ कर दिए गए हैं / ...(UNASSIGNED), सॉकेट्स बंद करें ONHOLD->ONLINE RequestComMode(ONLINE) / reaktivieren, ...(ASSIGNED) ONHOLD->SHUTDOWN RequestComMode(OFFLINE) / ...(UNASSIGNED) SHUTDOWN->OFFLINE Ressourcen freigegeben

स्थिति आरेख: एक नियंत्रक केवल तभी ONLINE होता है जब उसे एक एड्रेस असाइन किया जाता है। OFFLINE का मार्ग यह SHUTDOWN के माध्यम से तय करता है, जिसमें संसाधन मुक्त किए जाते हैं। स्रोत: [SWS_TCPIP_00085], [SWS_TCPIP_00077], [SWS_TCPIP_00087], SWS TcpIp पृ. 60

एड्रेस स्थानीय एड्रेसों की एक कॉन्फ़िगर की गई तालिका से आते हैं। उन्हें सांख्यिकीय रूप से, DHCP के माध्यम से या लिंक-लोकल के रूप में असाइन किया जाता है, प्राथमिकता के आधार पर चुना जाता है और यदि वांछित हो तो NvM ([SWS_TCPIP_00099], [SWS_TCPIP_00065], [SWS_TCPIP_00127], [SWS_TCPIP_00219]) में संग्रहीत किया जाता है। परिवर्तनों के बारे में <Up_LocalIpAddrAssignmentChg> ऊपरी लेयर [SWS_TCPIP_00229] को सूचित करता है। सॉकेट्स का अनुरोध किया जाता है और TcpIp_Bind के साथ बाइंड किया जाता है। TCP कनेक्शन TcpIp_TcpConnect या TcpIp_TcpListen ([SWS_TCPIP_00111], [SWS_TCPIP_00112], [SWS_TCPIP_00113]) के माध्यम से बनते हैं।

ट्रांसमिशन TcpIp_TcpTransmit के माध्यम से अतुल्यकालिक रूप से या TcpIp_UdpTransmit के माध्यम से तुल्यकालिक रूप से किया जाता है। TCP के मामले में, ऊपरी लेयर डेटा को सीधे स्थानांतरित करती है या इसे <Up_CopyTxData> ([SWS_TCPIP_00124], [SWS_TCPIP_00120]) के माध्यम से उपलब्ध कराती है। प्राप्त डेटाग्राम को TcpIp स्थानीय एड्रेस और पोर्ट के माध्यम से एक सॉकेट को असाइन करता है [SWS_TCPIP_00170]। यदि गंतव्य का MAC एड्रेस गायब है, तो TcpIpArpPacketQueueEnabled निर्धारित करता है कि पैकेट को कतारबद्ध किया जाए या अस्वीकार किया जाए [SWS_TCPIP_00192]। रनटाइम त्रुटियाँ जैसे कि टाइमआउट, अगम्य होस्ट या एड्रेस विरोध की रिपोर्ट TcpIp DET को करता है। R20-11 में इसके लिए कोड 0x01 से 0x05 परिभाषित किए गए हैं [SWS_TCPIP_00255]। सुरक्षा के लिए संस्करण 1.2 से TLS और IKEv2 ([SWS_TCPIP_00302], [SWS_TCPIP_00353]) के साथ IPsec जोड़े गए हैं।

ईथरनेट स्टैक में भूमिका: सॉकेट स्वामियों और EthIf के बीच मध्यस्थ

TcpIp सब-मॉड्यूल [SWS_TCPIP_00052] में एक क्लासिक ECU के IP-आधारित संचार को बंडल करता है। IPv4 के लिए IP, ARP, ICMP, DHCPv4 (क्लाइंट और सर्वर), Auto-IP, UDP और TCP आवश्यक हैं ([SWS_TCPIP_00053], [SWS_TCPIP_00056], [SWS_TCPIP_00058], [SWS_TCPIP_00057], [SWS_TCPIP_00061])। IPv6 के लिए IPv6, NDP, ICMPv6 और एक DHCPv6 क्लाइंट जोड़े जाते हैं ([SWS_TCPIP_00160], [SWS_TCPIP_00164], [SWS_TCPIP_00166])। तीन स्केलिंग वर्ग दायरे को तैयार करते हैं: IPv4-स्टैक, IPv6-स्टैक और डुअल स्टैक SWS TcpIp पृ. 18। वर्ग 3 के लिए पूर्ण दायरा अनिवार्य है [SWS_TCPIP_00150]।

ऊपर की दिशा में TcpIp सॉकेट स्वामियों को सेवा प्रदान करता है। यदि TcpIpSocketOwnerUpperLayerType को SOAD पर सेट किया गया है, तो कॉलबैक्स को SoAd_… कहा जाता है। CDD के लिए कॉन्फ़िगर किए गए फ़ंक्शन नाम लागू होते हैं ([SWS_TCPIP_00220], [SWS_TCPIP_00221])। प्रत्येक स्वामी को अपना स्वयं का TcpIp_<Up>GetSocket-फ़ंक्शन प्राप्त होता है, और इस प्रकार अनुरोध किए गए सॉकेट्स विशेष रूप से उसके होते हैं [SWS_TCPIP_00222]।

नीचे की ओर TcpIp TcpIp_RxIndication [SWS_TCPIP_00029] के माध्यम से फ़्रेम प्राप्त करता है। यह EthIf_Transmit के माध्यम से भेजता है, और वह भी हमेशा TxConfirmation = FALSE [SWS_TCPIP_00131] के साथ। स्थिति को EthSM TcpIp_RequestComMode SWS EthSM पृ. 27 के माध्यम से नियंत्रित करता है। वैकल्पिक रूप से TcpIp CSM सेवाओं [SWS_TCPIP_00028] का उपयोग करता है और IdsM [SWS_TCPIP_00361] को सुरक्षा घटनाओं की रिपोर्ट करता है। SWS TcpIp पृ. 17 एम्बेडिंग का एक अवलोकन प्रदान करता है।

kontext EthSM EthSM TcpIp TcpIp IPv4 / ARP / ICMP / DHCP / Auto-IP IPv6 / NDP / ICMPv6 / DHCPv6 UDP / TCP / TLS / IPsec EthSM->TcpIp TcpIp_RequestComMode SoAd SoAd (Socket-Owner SOAD) SoAd->TcpIp TcpIp_SoAdGetSocket, TcpIp_Bind, TcpIp_TcpTransmit, TcpIp_UdpTransmit CDD CDD (Socket-Owner CDD) CDD->TcpIp TcpIp_<Up>GetSocket, Transmit-Dienste TcpIp->SoAd SoAd_RxIndication, SoAd_TxConfirmation, SoAd_TcpAccepted, SoAd_LocalIpAddrAssignmentChg TcpIp->CDD konfigurierte Callback-Namen EthIf EthIf TcpIp->EthIf EthIf_ProvideTxBuffer, EthIf_Transmit Det Det TcpIp->Det डेवलपमेंट और रनटाइम एरर Csm Csm (optional) TcpIp->Csm Krypto-Dienste (TLS) IdsM IdsM (optional) TcpIp->IdsM Sicherheitsereignisse NvM NvM-Block (TCPIP_STORE) TcpIp->NvM gespeicherte IP-Adressen EthIf->TcpIp TcpIp_RxIndication

संदर्भ आरेख: TcpIp सॉकेट स्वामियों (SoAd या CDD) और EthIf के बीच स्थित होता है। यह EthSM द्वारा नियंत्रित होता है, DET को त्रुटियों और IdsM को घटनाओं की रिपोर्ट करता है और वैकल्पिक रूप से CSM का उपयोग करता है। स्रोत: [SWS_TCPIP_00220], [SWS_TCPIP_00222], [SWS_TCPIP_00029], [SWS_TCPIP_00070], [SWS_TCPIP_00028], [SWS_TCPIP_00361], [SWS_TCPIP_00255], [SWS_TCPIP_00219], SWS TcpIp पृ. 17

कंट्रोलर स्थितियाँ: TCPIP_STATE_OFFLINE से TCPIP_STATE_ONLINE तक

मॉड्यूल को TcpIp_Init और एक कार्यान्वयन-विशिष्ट TcpIp_ConfigType ([SWS_TCPIP_00002], [SWS_TCPIP_00067]) के साथ प्रारंभ किया जाता है। TcpIp_MainFunction शेड्यूलर [SWS_TCPIP_00026] के लिए प्रवेश बिंदु है। व्याख्या: संभवतः टाइमआउट जैसी समय-नियंत्रित प्रक्रियाएं वहीं निष्पादित होती हैं। प्रश्न Q-77b083e447651768 (खुला) विनिर्देश इस बारे में केवल इतना कहता है "Schedules the TCP/IP stack"।

TcpIp प्रत्येक EthIf-कंट्रोलर के लिए अपनी स्वयं की स्थिति बनाए रखता है: OFFLINE, STARTUP, ONLINE, ONHOLD या SHUTDOWN [SWS_TCPIP_00083]। यदि सहेजा गया अनुरोध सक्रिय स्थिति से भिन्न होता है, तो TcpIp आवश्यक कदम शुरू करता है [SWS_TCPIP_00136]।

  • OFFLINE से एक ONLINE अनुरोध कॉन्फ़िगर किए गए एड्रेस असाइनमेंट को सक्रिय करता है [SWS_TCPIP_00075]। जैसे ही कोई पता असाइन हो जाता है, कंट्रोलर ONLINE [SWS_TCPIP_00085] में बदल जाता है।
  • ONHOLD सभी पतों के लिए TCPIP_IPADDR_STATE_ONHOLD की रिपोर्ट करता है। सॉकेट और पते बने रहते हैं, लेकिन नए ट्रांसमिशन अनुरोध स्वीकार नहीं किए जाते हैं ([SWS_TCPIP_00076], [SWS_TCPIP_00074])। ONLINE पर वापस लौटने पर फिर से TCPIP_IPADDR_STATE_ASSIGNED [SWS_TCPIP_00086] की रिपोर्ट होती है।
  • एक OFFLINE अनुरोध या सभी पतों को मुक्त किया जाना TCPIP_IPADDR_STATE_UNASSIGNED की रिपोर्ट करता है और सॉकेट को बंद कर देता है ([SWS_TCPIP_00077], [SWS_TCPIP_00072])। एक बार संसाधन मुक्त हो जाने पर, OFFLINE [SWS_TCPIP_00087] का अनुसरण होता है।
zustand Start शुरू OFFLINE TCPIP_STATE_OFFLINE Start->OFFLINE TcpIp_Init() STARTUP TCPIP_STATE_STARTUP OFFLINE->STARTUP RequestComMode(ONLINE) / Adresszuweisungen aktivieren STARTUP->OFFLINE RequestComMode(OFFLINE) / Zuweisungen abbrechen ONLINE TCPIP_STATE_ONLINE STARTUP->ONLINE erste Adresse zugewiesen / <Up>_LocalIpAddrAssignmentChg(ASSIGNED) ONHOLD TCPIP_STATE_ONHOLD ONLINE->ONHOLD RequestComMode(ONHOLD) / ...(ONHOLD), Kommunikation deaktivieren SHUTDOWN TCPIP_STATE_SHUTDOWN ONLINE->SHUTDOWN RequestComMode(OFFLINE) या सभी पते रिलीज़ कर दिए गए हैं / ...(UNASSIGNED), सॉकेट्स बंद करें ONHOLD->ONLINE RequestComMode(ONLINE) / reaktivieren, ...(ASSIGNED) ONHOLD->SHUTDOWN RequestComMode(OFFLINE) / ...(UNASSIGNED) SHUTDOWN->OFFLINE Ressourcen freigegeben

स्टेट आरेख: प्रत्येक EthIf-कंट्रोलर का अपना स्टेट ऑटोमेटन होता है। केवल ONLINE, ONHOLD और OFFLINE का अनुरोध किया जा सकता है, STARTUP और SHUTDOWN केवल मध्यवर्ती स्थितियाँ हैं। स्रोत: [SWS_TCPIP_00075], [SWS_TCPIP_00085], [SWS_TCPIP_00076], [SWS_TCPIP_00086], [SWS_TCPIP_00077], [SWS_TCPIP_00087], [SWS_TCPIP_00088], SWS TcpIp पृ. 60 (R25-11 से आरेख, संक्रमण R20-11 आवश्यकताओं द्वारा समर्थित हैं)

STARTUP में, एक OFFLINE अनुरोध चल रहे असाइनमेंट को निरस्त कर देता है [SWS_TCPIP_00088]। यदि कोई STARTUP या SHUTDOWN का अनुरोध करता है, तो इसे E_NOT_OK के साथ अस्वीकार कर दिया जाता है [SWS_TCPIP_00089]।

एक विशिष्ट स्टार्टअप इस प्रकार आगे बढ़ता है: EthSM ComM के अनुरोध पर ONLINE का अनुरोध करता है SWS EthSM पृ. 42। TcpIp उसके बाद असाइन किए गए पते की रिपोर्ट करता है। इसके बाद SoAd सॉकेट्स का अनुरोध करता है और उन्हें बाइंड करता है ([SWS_TCPIP_00229], SWS SoAd पृ. 20)। R25-11 का आरेख EthSM_TcpIpModeIndication SWS TcpIp पृ. 60 के माध्यम से एक फीडबैक भी दिखाता है। संभवतः R20-11 के लिए भी यही लागू होता है। प्रश्न Q-a5e26ad792c23d58 (खुला)

बाउंड सॉकेट तक कंट्रोलर का स्टार्टअपComMEthSMTcpIpSoAdEthSM_RequestComMode(network,COMM_FULL_COMMUNICATION)TcpIp_RequestComMode(CtrlIdx,TCPIP_STATE_ONLINE)E_OK (Auftrag angenommen)TCPIP_STATE_STARTUP:Adresszuweisungen aktivierenअसिंक्रोनस, उदाहरण के लिए DHCP या Link-Localerste Adresse zugewiesen:TCPIP_STATE_ONLINESoAd_LocalIpAddrAssignmentChg(IpAddrId,TCPIP_IPADDR_STATE_ASSIGNED)EthSM_TcpIpModeIndication(CtrlIdx,TCPIP_STATE_ONLINE) (vermutlich)Use Case: SoAd एक सॉकेट कनेक्शन खोलता हैTcpIp_SoAdGetSocket(Domain, Protocol,SocketIdPtr)E_OK, SocketIdTcpIp_Bind(SocketId, LocalAddrId, PortPtr)E_OK

अनुक्रम आरेख: केवल एसिंक्रोनस एड्रेस असाइनमेंट ही कंट्रोलर को ONLINE बनाता है। उसके बाद SoAd सॉकेट्स का अनुरोध और बाइंड कर सकता है। स्रोत: [SWS_TCPIP_00070], [SWS_TCPIP_00075], [SWS_TCPIP_00085], [SWS_TCPIP_00229], [SWS_TCPIP_00018], [SWS_TCPIP_00015], SWS EthSM पृ. 42। EthSM को फीडबैक संभवतः R20-11 में भी मौजूद है।

स्थानीय पते और उनका असाइनमेंट

इसका आधार TcpIpLocalAddr से स्थानीय पतों की एक तालिका है, जिन्हें रनटाइम पर EthIf-कंट्रोलर्स को असाइन किया जाता है ([SWS_TCPIP_00099], SWS TcpIp पृ. 220)। एक प्रविष्टि को TcpIp_LocalAddrIdType [SWS_TCPIP_00030] के माध्यम से संदर्भित किया जाता है। प्रति प्रविष्टि कई विधियाँ संभव हैं, जैसे स्टैटिक, DHCP या लिंक-लोकल ([SWS_TCPIP_00065], SWS TcpIp पृ. 224)। यदि उच्च प्राथमिकता वाला कोई पता उपलब्ध हो जाता है, तो वह पिछले पते को प्रतिस्थापित कर देता है [SWS_TCPIP_00127]।

असाइनमेंट और रिलीज़ कैसे ट्रिगर होते हैं, यह कॉन्फ़िगर किए गए ट्रिगर पर निर्भर करता है:

  • TCPIP_MANUAL के मामले में, TcpIp_RequestIpAddrAssignment और TcpIp_ReleaseIpAddrAssignment उपलब्धता को नियंत्रित करते हैं ([SWS_TCPIP_00195], [SWS_TCPIP_00196])।
  • TCPIP_AUTOMATIC के मामले में, दोनों कॉल E_NOT_OK के साथ अस्वीकार कर दिए जाते हैं ([SWS_TCPIP_00198], [SWS_TCPIP_00199])।
  • TCPIP_STORE के मामले में, TcpIp NvM ब्लॉक [SWS_TCPIP_00219] से एक वैध पता स्वीकार करता है। TcpIp_ResetIpAssignment इन संग्रहीत पतों को अमान्य कर देता है [SWS_TCPIP_00216]।

असाइनमेंट में प्रत्येक परिवर्तन की रिपोर्ट <Up_LocalIpAddrAssignmentChg> प्रकार TcpIp_IpAddrStateType ([SWS_TCPIP_00229], [SWS_TCPIP_00082]) के मान के साथ करता है। नए IPv4 पतों की घोषणा TcpIp ग्रैच्युइटस ARP [SWS_TCPIP_00093] के माध्यम से करता है। IPv6 पतों की जांच यह डुप्लिकेट एड्रेस डिटेक्शन [SWS_TCPIP_00159] के माध्यम से करता है। क्वेरी के लिए TcpIp_GetIpAddr, TcpIp_GetPhysAddr और TcpIp_GetCtrlIdx ([SWS_TCPIP_00032], [SWS_TCPIP_00033], [SWS_TCPIP_00141]) का उपयोग किया जाता है। यदि कोई ऐसी DHCP विकल्प की क्वेरी की जाती है जो सेट नहीं है, तो रीड सर्विस लंबाई 0 लौटाती है [SWS_TCPIP_00237]।

सॉकेट्स: अनुरोध करना, बाइंड करना, कनेक्ट करना, बंद करना

एक सॉकेट का अनुरोध एड्रेस फ़ैमिली और प्रोटोकॉल ([SWS_TCPIP_00018], [SWS_TCPIP_00009], [SWS_TCPIP_00010]) के साथ किया जाता है। TcpIp_Bind इसे एक स्थानीय पते और एक पोर्ट [SWS_TCPIP_00111] से बाइंड करता है। यह तब विफल हो जाता है जब पोर्ट, प्रोटोकॉल और पता पहले से ही व्यस्त हों या पता असाइन न किया गया हो ([SWS_TCPIP_00146], [SWS_TCPIP_00254])। TCPIP_PORT_ANY के साथ स्टैक स्वयं 49152 और 65535 SWS TcpIp पृ. 85 के बीच एक पोर्ट चुनता है।

TCP के लिए कनेक्शन के दो तरीके हैं:

  • एक क्लाइंट के रूप में TcpIp_TcpConnect एसिंक्रोनस रूप से कनेक्शन स्थापित करता है। स्थापित होने पर, TcpIp <Up_TcpConnected> ([SWS_TCPIP_00112], [SWS_TCPIP_00227]) को कॉल करता है।
  • एक सर्वर के रूप में TcpIp_TcpListen सॉकेट को लिसन स्थिति [SWS_TCPIP_00113] में रखता है। प्रत्येक इनकमिंग कनेक्शन के लिए, TcpIp एक अलग सॉकेट प्राप्त करता है और <Up_TcpAccepted> [SWS_TCPIP_00226] के साथ इसकी रिपोर्ट करता है। यदि ऊपरी परत E_NOT_OK लौटाती है, तो TcpIp कनेक्शन SWS SoAd पृ. 81 को बंद कर देता है।

TcpIp केवल ONLINE [SWS_TCPIP_00094] स्थिति में ही नए TCP कनेक्शन स्वीकार करता है।

क्लाइंट और सर्वर के रूप में TCP कनेक्शन स्थापनाSoAdTcpIpEthIfaltक्लाइंट (सक्रिय ओपनिंग)TcpIp_TcpConnect(SocketId, RemoteAddrPtr)E_OK (asynchron)EthIf_ProvideTxBuffer / EthIf_Transmit(SYN)TcpIp_RxIndication(...)(रिमोट एंड का उत्तर)SoAd_TcpConnected(SocketId)सर्वर (निष्क्रिय ओपनिंग)TcpIp_TcpListen(SocketId, MaxChannels)E_OKTcpIp_RxIndication(...)(Verbindungsanfrage)Socket SocketIdConnected ableiten(समानांतर में अधिकतम MaxChannels)SoAd_TcpAccepted(SocketId,SocketIdConnected, RemoteAddrPtr)E_OK / E_NOT_OK (कनेक्शन बंद करें)

अनुक्रम आरेख: क्लाइंट <Up_TcpConnected> के माध्यम से एक पुष्टिकरण प्राप्त करता है। सर्वर को प्रति कनेक्शन एक व्युत्पन्न सॉकेट मिलता है, जिसे ऊपरी परत स्वीकार या अस्वीकार कर सकती है। स्रोत: [SWS_TCPIP_00022], [SWS_TCPIP_00023], [SWS_TCPIP_00226], [SWS_TCPIP_00227], SWS TcpIp पृ. 129 (बाद के आरेख में अतिरिक्त रूप से LSduR शामिल है, जिसे यहाँ छोड़ दिया गया है), SWS TcpIp पृ. 107

TcpIp_Close एक TCP कनेक्शन को नियमित रूप से समाप्त करता है। Abort = TRUE के साथ यह इसे RST के माध्यम से तुरंत निरस्त कर देता है। UDP के साथ संसाधन तुरंत मुक्त हो जाते हैं ([SWS_TCPIP_00109], [SWS_TCPIP_00110])। रीसेट, FIN या बंद होने जैसी घटनाओं की रिपोर्ट <Up_TcpIpEvent> [SWS_TCPIP_00144] करता है। TcpIp_ChangeParameter के साथ सॉकेट पैरामीटर बदले जा सकते हैं, जैसे रिसीव विंडो, फ़्रेम प्राथमिकता, Nagle, TCP विकल्प फ़िल्टर या UDP चेकसम ([SWS_TCPIP_00126], [SWS_TCPIP_00266], [SWS_TCPIP_00279])।

डेटा पथ: ट्रांसमिशन, रिसेप्शन, एड्रेस रिज़ॉल्यूशन

TcpIp_TcpTransmit एसिंक्रोनस रूप से काम करता है। यदि DataPtr सेट है, तो यह इस लीनियर बफ़र से डेटा लेता है। यदि DataPtr एक NULL_PTR है, तो यह <Up_CopyTxData> के माध्यम से डेटा प्राप्त करता है। ForceRetrieve = TRUE के साथ यह बिल्कुल AvailableLength बाइट्स होते हैं, FALSE के साथ संभवतः कम ([SWS_TCPIP_00124], [SWS_TCPIP_00125], [SWS_TCPIP_00228])। TCP के साथ TcpIp <Up_TxConfirmation> को केवल तभी कॉल करता है जब रिमोट एंड ने पावती (ACK) दे दी हो ([SWS_TCPIP_00225], SWS SoAd पृ. 86)। इसके विपरीत, TcpIp_UdpTransmit सिंक्रोनस और तुरंत भेजता है ([SWS_TCPIP_00025], [SWS_TCPIP_00120])।

प्रत्यक्ष या अप्रत्यक्ष डेटा प्रावधान के साथ TCP ट्रांसमिशनSoAdTcpIpEthIfTcpIp_TcpTransmit(SocketId, DataPtr,AvailableLength, ForceRetrieve)altDataPtr != NULL_PTRलीनियर बफ़र से डेटा लेंDataPtr == NULL_PTRloopAvailableLength तक (ForceRetrieve = TRUE) या कम (FALSE)SoAd_CopyTxData(SocketId, BufPtr, BufLength)BUFREQ_OKE_OKTcpIp_MainFunction()EthIf_ProvideTxBuffer(...)EthIf_Transmit(..., TxConfirmation = FALSE)TcpIp_RxIndication(...)(रिमोट एंड का ACK)SoAd_TxConfirmation(SocketId, Length)

अनुक्रम आरेख: डेटा सीधे स्थानांतरित किया जाता है या कॉपी कॉलबैक के माध्यम से प्राप्त किया जाता है। EthIf को ट्रांसमिशन MainFunction के संदर्भ में चलता है, पुष्टिकरण केवल रिमोट एंड के ACK के बाद आता है। स्रोत: [SWS_TCPIP_00050], [SWS_TCPIP_00123], [SWS_TCPIP_00124], [SWS_TCPIP_00131], SWS TcpIp पृ. 109

रिसेप्शन पर, IP परत प्रत्येक डेटाग्राम को स्थानीय एड्रेस तालिका [SWS_TCPIP_00169] की एक प्रविष्टि से मैप करती है। UDP और TCP फिर गंतव्य पोर्ट और स्थानीय पते ([SWS_TCPIP_00170], [SWS_TCPIP_00172]) के माध्यम से सॉकेट का चयन करते हैं। मौजूदा TCP कनेक्शन के लिए, स्रोत पता और स्रोत पोर्ट भी मेल खाने चाहिए [SWS_TCPIP_00173]। UDP ब्रॉडकास्ट सभी मेल खाने वाले सॉकेट्स पर जाते हैं, ब्रॉडकास्ट पतों पर लक्षित TCP सेगमेंट खारिज कर दिए जाते हैं ([SWS_TCPIP_00171], [SWS_TCPIP_00174])। खंडित डेटाग्राम को TcpIp पुनः जोड़ता है और इसके लिए रिसेप्शन को डीकपल्ड कर सकता है ([SWS_TCPIP_00054], SWS TcpIp पृ. 131)। डेटा ऊपरी परत तक <Up_RxIndication> के माध्यम से पहुँचता है। यदि उसने TCP डेटा संसाधित कर लिया है, तो TcpIp_TcpReceived रिसीव विंडो को फिर से खोलता है ([SWS_TCPIP_00223], [SWS_TCPIP_00115])।

ऊपरी लेयर तक डेटाग्राम का रिसेप्शनEthIfTcpIpSoAdEthIf_MainFunctionRx()TcpIp_RxIndication(CtrlIdx, FrameType,IsBroadcast, PhysAddrPtr, DataPtr, LenByte)IP: डेटाग्राम को किसी TcpIpAddrId से असाइन करेंUDP/TCP: गंतव्य पोर्ट और स्थानीय पते के माध्यम से सॉकेट चुनेंFragmente: Reassemblierung,Empfang ggf. entkoppeltSoAd_RxIndication(SocketId, RemoteAddrPtr,BufPtr, Length)optTCP-SocketTcpIp_TcpReceived(SocketId, Length)रिसीव विंडो बढ़ाएं

अनुक्रम आरेख: एक प्राप्त फ़्रेम को स्थानीय पते और पोर्ट के माध्यम से एक सॉकेट को असाइन किया जाता है। TCP के मामले में, ऊपरी परत की पावती रिसीव विंडो को मुक्त करती है। स्रोत: [SWS_TCPIP_00029], [SWS_TCPIP_00169], [SWS_TCPIP_00170], [SWS_TCPIP_00223], [SWS_TCPIP_00115], SWS TcpIp पृ. 108

भेजने के लिए, TcpIp को गंतव्य के MAC पते की आवश्यकता होती है और वह इसे एक ARP तालिका में रखता है:

  • तालिका TcpIpArpTableSizeMax प्रविष्टियों [SWS_TCPIP_00090] तक सीमित है। अप्रयुक्त प्रविष्टियां TcpIpArpTableEntryTimeout [SWS_TCPIP_00091] के बाद समाप्त हो जाती हैं।
  • एक ही गंतव्य के लिए बार-बार आने वाले अनुरोधों को TcpIp TcpIpArpRequestTimeout [SWS_TCPIP_00350] की अवधि के लिए दबा देता है।
  • R20-11 में, प्रत्येक प्राप्त IP पैकेट तालिका [SWS_TCPIP_00092] को अपडेट करता है। बाद के रिलीज़ इसे TcpIpArpDefensiveProcessing = FALSE SWS TcpIp पृ. 29 से जोड़ते हैं।
  • यदि कोई प्रविष्टि गायब है, तो TcpIpArpPacketQueueEnabled तय करता है कि पैकेट को कतारबद्ध किया जाए या अस्वीकार किया जाए ([SWS_TCPIP_00191], [SWS_TCPIP_00192])। NDP [SWS_TCPIP_00193] के लिए भी यही लागू होता है।

ARP तालिका के प्रत्येक परिवर्तन की रिपोर्ट TcpIp <Up_PhysAddrTableChg> [SWS_TCPIP_00142] के माध्यम से करता है। यदि नेबर कैश भर जाता है, तो सबसे पुरानी प्रविष्टि को विस्थापित कर दिया जाता है [SWS_TCPIP_00264]। TcpIp_GetRemotePhysAddr और कैश रीड सेवाएं क्वेरी की अनुमति देती हैं ([SWS_TCPIP_00138], [SWS_TCPIP_91002], [SWS_TCPIP_91001])।

adressaufloesung A IPv4-Paket an entfernten Host senden B Link-Layer-Adresse in ARP-Tabelle? A->B C Paket senden B->C हाँ D एड्रेस रिज़ॉल्यूशन प्रारंभ करें (TcpIpArpRequestTimeout के भीतर प्रति लक्ष्य अधिकतम एक ARP अनुरोध) B->D नहीं E TcpIpArpPacketQueueEnabled? D->E F Paket einreihen, E_OK E->F TRUE G Sendeauftrag abweisen, E_NOT_OK E->G FALSE H ARP-Antwort empfangen: Tabelle aktualisieren, <Up>_PhysAddrTableChg(valid = TRUE) F->H H->C eingereihtes Paket (Interpretation)

गतिविधि आरेख: यदि ट्रांसमिशन के दौरान कोई ARP प्रविष्टि गायब है, तो कॉन्फ़िगरेशन के आधार पर पैकेट को कतारबद्ध या अस्वीकार कर दिया जाता है। उसी गंतव्य के लिए नए अनुरोधों को थ्रॉटल किया जाता है। स्रोत: [SWS_TCPIP_00191], [SWS_TCPIP_00192], [SWS_TCPIP_00350], [SWS_TCPIP_00142], SWS TcpIp पृ. 176। व्याख्या: कतारबद्ध पैकेट सफल रिज़ॉल्यूशन के बाद भेजा जाता है।

सुरक्षा और फ़िल्टरिंग: TLS, IPsec, IdsM

TCP कनेक्शन के लिए, TcpIp IETF RFC 5246 के अनुसार TLS का समर्थन करता है। 1.2 से नीचे के संस्करण अस्वीकार कर दिए जाते हैं ([SWS_TCPIP_00300], [SWS_TCPIP_00302])। PSK पहचान और वर्तमान समय कॉन्फ़िगर करने योग्य कॉलबैक ([SWS_TCPIP_91014], [SWS_TCPIP_91012]) प्रदान करते हैं। क्रिप्टोग्राफी CSM ([SWS_TCPIP_00028], SWS TcpIp पृ. 251) के माध्यम से चलती है।

IPsec को IKEv2 के साथ समर्थित किया जाता है, IKEv1 के साथ नहीं ([SWS_TCPIP_00352], [SWS_TCPIP_00353])। प्रत्येक डेटाग्राम को एक नीति (पॉलिसी) को सौंपा जाता है और नीति के आधार पर संरक्षित किया जाता है, आगे जाने दिया जाता है या खारिज कर दिया जाता है ([SWS_TCPIP_00359], [SWS_TCPIP_00360])। अस्वीकार्य IPv6 एक्सटेंशन हेडर साइलेंट ड्रॉपिंग [SWS_TCPIP_00260] का कारण बनते हैं। यदि TcpIpEnableSecurityEventReporting सेट है, तो TcpIp IdsM [SWS_TCPIP_00361] को सुरक्षा घटनाओं की रिपोर्ट करता है।

त्रुटि की स्थिति में व्यवहार

डेवलपमेंट त्रुटियां, जिनमें TCPIP_E_UNINIT, TCPIP_E_PARAM_POINTER, TCPIP_E_INV_ARG और TCPIP_E_ADDRINUSE शामिल हैं, [SWS_TCPIP_00042] में परिभाषित हैं। अन्य बातों के अलावा निम्नलिखित की जाँच की जाती है:

  • सॉकेट का अनुरोध करते समय एक अमान्य एड्रेस फ़ैमिली [SWS_TCPIP_00128],
  • TcpIp_Bind [SWS_TCPIP_00147] पर एक अमान्य LocalAddrId,
  • TcpIp_GetIpAddr [SWS_TCPIP_00206] पर परस्पर विरोधी एड्रेस फ़ैमिली,
  • DHCP विकल्प सेवाओं के अमान्य पैरामीटर [SWS_TCPIP_00243],
  • TcpIp_TcpConnect SWS TcpIp पृ. 86 पर गंतव्य पते के रूप में एक NULL_PTR।

TcpIp त्रुटि पहचान से स्वतंत्र रूप से कुछ अस्वीकृतियों को E_NOT_OK के रूप में लौटाता है, उदाहरण के लिए पहले से ही व्यस्त पोर्ट या अनुपयुक्त एड्रेस फ़ैमिली ([SWS_TCPIP_00146], [SWS_TCPIP_00205])।

TcpIp Det_ReportRuntimeError के माध्यम से रनटाइम त्रुटियों की रिपोर्ट करता है:

  • TCPIP_E_TIMEDOUT, यदि किसी SYN पर कोई उत्तर नहीं आता है, कीप-अलाइव निगरानी समाप्त हो जाती है या पुनः प्रयास समाप्त हो जाते हैं [SWS_TCPIP_00256],
  • संबंधित ICMP संदेशों ([SWS_TCPIP_00257], [SWS_TCPIP_00258], [SWS_TCPIP_00259]) के बाद TCPIP_E_CONNREFUSED, TCPIP_E_HOSTUNREACH और TCPIP_E_PACKETTOBIG,
  • दोहराव वाले पते पर TCPIP_E_DADCONFLICT [SWS_TCPIP_00282]।

R20-11 केवल कोड 0x01 से 0x05 [SWS_TCPIP_00255] को परिभाषित करता है। बाद के रिलीज़ में जोड़े गए कोड TCPIP_E_TX_QUEUE_OVERRUN और TCPIP_E_TX_INTERNAL_PROCESSING_FAILED यहाँ लागू नहीं होते हैं SWS TcpIp पृ. 65।

कई त्रुटि मामले साइलेंट रहते हैं क्योंकि बेमेल पैकेट बस खारिज कर दिए जाते हैं। TcpIp_GetAndResetMeasurementData ऐसे खारिज किए गए पैकेटों की गणना करता है और काउंटरों को रीसेट करता है ([SWS_TCPIP_91006], [SWS_TCPIP_00296])। यदि किसी MAC पते का समाधान नहीं किया जा सकता है, तो TcpIp TCPIP_E_PHYS_ADDR_MISS [SWS_TCPIP_00066] की रिपोर्ट करता है। अपने स्वयं के सबनेट के बाहर के गंतव्यों के लिए, TcpIp_GetRemotePhysAddr तुरंत TCPIP_E_NOT_OK [SWS_TCPIP_00139] लौटाता है।

आगे विस्तृत साक्ष्य

विनिर्देश उद्धरणों पर आधारित AI-जनरेटेड गाइड। R20-11 के लिए विशेष रूप से लिंक की गई आवश्यकताएं प्रामाणिक हैं, अन्य रिलीज़ के अंतर उल्लिखित हैं।

TCP/IP Stack (TcpIp)

Provides IPv4/IPv6 networking, TCP/UDP sockets, ARP, ICMP, and DHCP services.

Funktionen — Übersicht

Typen — Übersicht

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_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_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_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_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 _ Copy Tx Data() may happen in the context of Tcp Ip_ Transmit().

फ़ंक्शन <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_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_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#08a399ab
Content hash
08a399ab
Source
https://www.autosar.org/fileadmin/standards/R20-11/CP/AUTOSAR_SWS_TcpIp.pdf#nameddest=SWS_TCPIP_00002

विषय मानचित्र

आरंभीकरण और स्थिति

2

कॉलबैक

1

चक्रीय

1

विवरण दृश्य

रूपरेखा में कोई प्रविष्टि चुनें।

आरंभीकरण और स्थिति

TcpIp_GetVersionInfo फ़ंक्शन

Returns the version information.

void TcpIp_GetVersionInfo (Std_VersionInfoType* versioninfo);
TcpIp_Init फ़ंक्शन

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.

void TcpIp_Init (const TcpIp_ConfigType* ConfigPtr);

सेवाएँ · Get…

TcpIp_GetAndResetMeasurementData फ़ंक्शन

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.

Std_ReturnType TcpIp_GetAndResetMeasurementData (TcpIp_MeasurementIdxType MeasurementIdx, boolean MeasurementResetNeeded, uint32* MeasurementDataPtr);
TcpIp_GetArpCacheEntries फ़ंक्शन

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

Std_ReturnType TcpIp_GetArpCacheEntries (AUTO SAR CP R20 - of uint8 ctrlIdx, uint32* numberOfElements, TcpIp_ArpCacheEntryType* entryListPtr); ⚠️
TcpIp_GetCtrlIdx फ़ंक्शन

Tcp Ip_ Get Ctrl Idx returns the index of the controller related to Local Addr Id.

Std_ReturnType TcpIp_GetCtrlIdx (TcpIp_LocalAddrIdType LocalAddrId, uint8* CtrlIdxPtr);
TcpIp_GetIpAddr फ़ंक्शन

Service TcpIp_GetIpAddr.

Std_ReturnType TcpIp_GetIpAddr (TcpIp_LocalAddrIdType LocalAddrId, TcpIp_SockAddrType* IpAddrPtr, uint8* NetmaskPtr, TcpIp_SockAddrType* DefaultRouterPtr);
TcpIp_GetNdpCacheEntries फ़ंक्शन

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

Std_ReturnType TcpIp_GetNdpCacheEntries (uint8 ctrlIdx, uint32* numberOfElements, TcpIp_NdpCacheEntryType* entryListPtr);
TcpIp_GetPhysAddr फ़ंक्शन

Obtains the physical source address used by the Eth If controller implicitly specif ied via Local Addr Id.

Std_ReturnType TcpIp_GetPhysAddr (TcpIp_LocalAddrIdType LocalAddrId, uint8* PhysAddrPtr);
TcpIp_GetRemotePhysAddr फ़ंक्शन

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_ReturnType TcpIp_GetRemotePhysAddr (uint8 CtrlIdx, const TcpIp_SockAddrType* IpAddrPtr, uint8* PhysAddrPtr, boolean InitRes);

सेवाएँ · Dhcp…

TcpIp_DhcpReadOption फ़ंक्शन

By this API service the TCP/ IP stack retrieves DHCP option data identified by parameter option for already received DHCP options.

Std_ReturnType TcpIp_DhcpReadOption (TcpIp_LocalAddrIdType LocalIpAddrId, uint8 Option, uint8* DataLength, uint8* DataPtr);
TcpIp_DhcpV6ReadOption फ़ंक्शन

By this API service the TCP/ IP stack retrieve s DHCPv6 option data identified by parameter option for already received DHCPv6 options.

Std_ReturnType TcpIp_DhcpV6ReadOption (TcpIp_LocalAddrIdType LocalIpAddrId, uint16 Option, uint16* DataLength, uint8* DataPtr);
TcpIp_DhcpV6WriteOption फ़ंक्शन

By this API service the TCP/ IP stack writes the DHCPv6 option data identified by parameter option.

Std_ReturnType TcpIp_DhcpV6WriteOption (TcpIp_LocalAddrIdType LocalIpAddrId, uint16 Option, uint16 DataLength, const uint8* DataPtr);
TcpIp_DhcpWriteOption फ़ंक्शन

By this API service the TCP/ IP stack writes the DHCP option data identified by parameter option.

Std_ReturnType TcpIp_DhcpWriteOption (TcpIp_LocalAddrIdType LocalIpAddrId, uint8 Option, uint8 DataLength, const uint8* DataPtr);

सेवाएँ · Tcp…

TcpIp_TcpConnect फ़ंक्शन

B y this API service the TCP/ IP stack is requested to establish a TCP connection to the configured peer.

Std_ReturnType TcpIp_TcpConnect (TcpIp_SocketIdType SocketId, const TcpIp_SockAddrType* RemoteAddrPtr);
TcpIp_TcpListen फ़ंक्शन

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

Std_ReturnType TcpIp_TcpListen (TcpIp_SocketIdType SocketId, uint16 MaxChannels);
TcpIp_TcpReceived फ़ंक्शन

By this API service the reception of socket data is confirmed to the TCP/ IP stack.

Std_ReturnType TcpIp_TcpReceived (TcpIp_SocketIdType SocketId, uint32 Length);
TcpIp_TcpTransmit फ़ंक्शन

Service TcpIp_TcpTransmit.

Std_ReturnType TcpIp_TcpTransmit (TcpIp_SocketIdType SocketId, const uint8* DataPtr, uint32 AvailableLength, boolean ForceRetrieve);

सेवाएँ · अन्य

TcpIp_Bind फ़ंक्शन

Service TcpIp_Bind.

Std_ReturnType TcpIp_Bind (TcpIp_SocketIdType SocketId, TcpIp_LocalAddrIdType LocalAddrId, uint16* PortPtr);
TcpIp_ChangeParameter फ़ंक्शन

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.

Std_ReturnType TcpIp_ChangeParameter (TcpIp_SocketIdType SocketId, TcpIp_ParamIdType ParameterId, const uint8* ParameterValue);
TcpIp_Close फ़ंक्शन

By this API service the TCP/ IP stack is requested to close the socket and release all related resources.

Std_ReturnType TcpIp_Close (TcpIp_SocketIdType SocketId, boolean Abort);
TcpIp_IcmpTransmit फ़ंक्शन

Service TcpIp_IcmpTransmit.

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); ⚠️
TcpIp_IcmpV6Transmit फ़ंक्शन

By this API service the TCP/ IP stack sends an ICMPv6 message according to the specified parameters.

Std_ReturnType TcpIp_IcmpV6Transmit (TcpIp_LocalAddrIdType LocalIpAddrId, const TcpIp_SockAddrType* RemoteAddrPtr, uint8 HopLimit, uint8Type, uint8 Code, uint16 DataLength, const uint8* DataPtr); ⚠️
TcpIp_ReleaseIpAddrAssignment फ़ंक्शन

By this API service the local IP address assignment for the IP address specified by Local Addr Id shall be released.

Std_ReturnType TcpIp_ReleaseIpAddrAssignment (TcpIp_LocalAddrIdType LocalAddrId);
TcpIp_RequestComMode फ़ंक्शन

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.

Std_ReturnType TcpIp_RequestComMode (uint8 CtrlIdx, TcpIp_StateType State);
TcpIp_RequestIpAddrAssignment फ़ंक्शन

Service TcpIp_RequestIpAddrAssignment.

Std_ReturnType TcpIp_RequestIpAddrAssignment (TcpIp_LocalAddrIdType LocalAddrId, TcpIp_IpAddrAssignmentTypeType, const TcpIp_SockAddrType* LocalIpAddrPtr, uint8 Netmask, const TcpIp_SockAddrType* DefaultRouterPtr);
TcpIp_ResetIpAssignment फ़ंक्शन

Resets all learned IP - addresses to invalid values.

Std_ReturnType TcpIp_ResetIpAssignment (void);
TcpIp_UdpTransmit फ़ंक्शन

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.

Std_ReturnType TcpIp_UdpTransmit (TcpIp_SocketIdType SocketId, const uint8* DataPtr, const TcpIp_SockAddrType* RemoteAddrPtr, uint16 TotalLength);

कॉलबैक

TcpIp_RxIndication फ़ंक्शन

By this API service the TCP/ IP stack gets an indication and the data of a received frame.

void TcpIp_RxIndication (uint8 CtrlIdx, Eth_FrameType FrameType, boolean IsBroadcast, const uint8* PhysAddrPtr, const uint8* DataPtr, uint16 LenByte);

कॉलआउट और अपेक्षित इंटरफ़ेस

<Up_CopyTxData> फ़ंक्शन

This service requests to copy data for transmission to the buffer indicated. This call is triggered by Tcp Ip_ Transmit(). Note: The call to _ Copy Tx Data() may happen in the context of Tcp Ip_ Transmit().

BufReq_ReturnType <Up_CopyTxData> (TcpIp_SocketIdType SocketId, uint8* BufPtr, uint16 BufLength);
<Up_DADAddressConflict> फ़ंक्शन

This API is called by Tcp Ip in case the Duplicate Address Detection (DAD) is enabled and detecting a duplicate IP Address.

void <Up_DADAddressConflict> (TcpIp_LocalAddrIdType IpAddrId, const TcpIp_SockAddrType* IpAddrPtr, const uint8* LocalPhysAddrPtr, const uint8* RemotePhysAddrPtr);
<Up_IcmpMsgHandler> फ़ंक्शन

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.

void <Up_IcmpMsgHandler> (TcpIp_LocalAddrIdType LocalAddrId, const TcpIp_SockAddrType* RemoteAddrPtr, uint8 Ttl, uint8Type, uint8 Code, uint16 DataLength, uint8* DataPtr); ⚠️
<Up_LocalIpAddrAssignmentChg> फ़ंक्शन

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).

void <Up_LocalIpAddrAssignmentChg> (TcpIp_LocalAddrIdType IpAddrId, TcpIp_IpAddrStateType State);
<Up_PhysAddrTableChg> फ़ंक्शन

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_PhysAddrTableChg> (uint8 CtrlIdx, const TcpIp_SockAddrType* IpAddrPtr, const uint8* PhysAddrPtr, boolean valid);
<Up_RxIndication> फ़ंक्शन

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.

void <Up_RxIndication> (TcpIp_SocketIdType SocketId, const TcpIp_SockAddrType* RemoteAddrPtr, const uint8* BufPtr, uint16 Length);
<Up_TcpAccepted> फ़ंक्शन

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.

Std_ReturnType <Up_TcpAccepted> (TcpIp_SocketIdType SocketId, TcpIp_SocketIdType SocketIdConnected, const TcpIp_SockAddrType* RemoteAddrPtr);
<Up_TcpConnected> फ़ंक्शन

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.

void <Up_TcpConnected> (TcpIp_SocketIdType SocketId);
<Up_TlsClientGetPskIdentity> फ़ंक्शन

Service .

Std_ReturnType <Up_TlsClientGetPskIdentity> (TcpIp_SocketIdType SocketId, TcpIp_TlsConnectionIdType TlsConnectionId, uint16 PskIdentityHintLength, const uint8* PskIdentityHintPtr, uint16* PskKeyIdentityLengthPtr, uint8* PskKeyIdentityPtr, uint32* CsmKeyId);
<Up_TlsGetCurrentTime> फ़ंक्शन

This function queries the current time. This information will be requested when assembling the client hello message.

Std_ReturnType <Up_TlsGetCurrentTime> (uint32* CurrentTimeUtc);
<Up_TlsServerGetPskIdentity> फ़ंक्शन

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.

Std_ReturnType <Up_TlsServerGetPskIdentity> (TcpIp_SocketIdType SocketId, TcpIp_TlsConnectionIdType TlsConnectionId, uint16 PskKeyIdentityLength, const uint8* PskKeyIdentityPtr, uint32* CsmKeyId);
<Up_TlsServerGetPskIdentityHint> फ़ंक्शन

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.

Std_ReturnType <Up_TlsServerGetPskIdentityHint> (TcpIp_SocketIdType SocketId, TcpIp_TlsConnectionIdType TlsConnectionId, uint16* IdentityHintLengthPtr, uint8* IdentityHintPtr);
<Up_TxConfirmation> फ़ंक्शन

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.

void <Up_TxConfirmation> (TcpIp_SocketIdType SocketId, uint16 Length);

चक्रीय

TcpIp_MainFunction फ़ंक्शन

Schedules the TCP/ IP stack. (Entry point for scheduling) AUTO SAR CP R20 - of Document ID : AUTOSAR_SWS_TcpIp

void TcpIp_MainFunction (void);

टाइप

Tcp Ip_ Arp Cache Entries elements type

TcpIp_ConfigType टाइप

Configuration data structure of the Tcp Ip module.

TcpIp_DomainType टाइप

Tcp Ip address families.

TcpIp_EventType टाइप

Events reported by Tcp Ip.

IPv6 address assignment policy.

Specifies the state of local IP a ddress assignment

Address identification type for unique identification of a local IP address and Eth If Controller configured in the Tcp Ip module.

Index to select specific measurement data

Tcp Ip_ Ndp Cache Entries elements type

TcpIp_ParamIdType टाइप

Type TcpIp_ParamIdType.

TcpIp_ProtocolType टाइप

Protocol type used by a socket.

TcpIp_ReturnType टाइप

Tcp Ip specific return type.

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

This structure defines an IPv4 address type which can be derived from the generic address structure via cast.

TcpIp_SockAddrType टाइप

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_SocketIdType टाइप

Socket identifier type for unique identification of a Tcp Ip stack socket. TCPIP_ SOCKETID_ INVALID shall specify an invalid socket handle.

TcpIp_StateType टाइप

Specifies the Tcp Ip state for a specific Eth If controller.

TLS connection identifier type for unique identification of a TLS connection. TCPIP_ TLSCONNECTIONID_ INVALID shall specify an invalid TLS connection handle.

IP6 address wildcard.

IP address wildcard.

Local Addr Id wildcard.

Port wildcard.