{ "ticketNumber" : "1111603", "reporterName" : "Cherry Zhou", "rankPoints" : "22235", "resolutionStatus" : "", "ticketName" : "TDA2SX: How to implement IPv6 functionality in TDA2 before sending message data over UDP?", "rankName" : "Mastermind", "replies" : "", "views" : "", "queryText" : "Part Number: TDA2SX Other Parts Discussed in Thread: TDA2 Hi team, Here's an issue from the customer may need your help: The IPv6 address protocol is used in TDA2 to send UDP message data. By creating a SOCKet, but failed, the code is as follows: static char src[] = \"fd11::100\"; static char dst[] = \"fd11::200\"; void main_Tx() { int udp6_socket, ret, ttl, on, addr_len; struct sockaddr_in6 saddr; struct sockaddr_in6 daddr; char buffer[] = \"Hello World6\"; Vps_printf(\" DanS-----Network: start IPv6 interface main\\n\"); if ((inet_pton(AF_INET6, (char *)&src[0], &saddr.sin6_addr)) != 1) { Vps_printf(\"invalid ipv6 addr \\r\\n\"); return ; } if ((inet_pton(AF_INET6, (char *)&dst[0], &daddr.sin6_addr)) != 1) { Vps_printf(\"invalid ipv6 addr \\r\\n\"); return ; } addr_len = sizeof(struct sockaddr_in6); saddr.sin6_family = AF_INET6; saddr.sin6_port = htons(30000); daddr.sin6_family = AF_INET6; daddr.sin6_port = htons(40000); udp6_socket = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP); if (udp6_socket == -1) { Vps_printf(\"create udp6_socket fail\\r\\n\");//the codes are run and printed here Vps_printf(\"failed socket create (%d)\\n\",fdError()); return; } if (bind(udp6_socket, (struct sockaddr *)&saddr, addr_len)) { Vps_printf(\"udp6 bind addr fail, err : %d\\r\\n\", 0); if( udp6_socket != (-1) ) fdClose( udp6_socket ); Vps_printf(\"\\n== End Timeout Test ==\\n\\n\"); //close(udp6_socket); return; } /* transmit */ ret = sendto(udp6_socket, &buffer[0], sizeof(buffer), 0, (struct sockaddr *)&daddr, addr_len); if (ret > 0) { Vps_printf(\"udp6 send %d bytes success \\r\\n\", ret); } fdClose( udp6_socket ); //close(udp6_socket); return; } The error is reported in yellow section. a. The NDK_enable_IPv6 switch for the corresponding usecase has been turned on in TDA2. b. What else needs to be modified for IPv6 to function properly? Could you help give an example? Could you help check this case? Thanks. Best Regards, Cherry", "imageList" : null, "partNumber" : "NA", "allResponseList" : [ { "contentId" : "", "userName" : "Cherry Zhou", "rankPoints" : "22235", "rankName" : "TI__Mastermind", "date" : "", "userId" : "/members/6760322", "content" : "Hi, Quick update: NDK version in NetWorking: ndk_2_24_02_31/NSP version: nsp_gmacsw_4_16_01_01. And may I know is there any update? Thanks and regards, Cherry", "imageList" : null } ], "tags" : [ ], "fourmType" : "processors-forum" }