Home > other >  Ask: how did the sa_data sockaddr support IPV6?
Ask: how did the sa_data sockaddr support IPV6?

Time:09-30

Struct sockaddr sa_data is defined as: in the char sa_data [14], only 14 bytes long, but for IPV6 address length is 16 bytes (128), want to consult, 16 bytes of IPV6 address, and how to store to 14 bytes in the sa_data? The key is if set sa_family=AF_INET6, using IPV6 address, send and receive like can also normal,
Thank you!
  • Related