Packet tunneling over UDP, multiple channels
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

17 lines
245 B

  1. #ifndef sockaddr_H
  2. #define sockaddr_H
  3. #include <arpa/inet.h>
  4. #include <sys/socket.h>
  5. // IP Address union, with flag field
  6. struct SockAddr {
  7. union {
  8. struct sockaddr in;
  9. struct sockaddr_in in4;
  10. struct sockaddr_in6 in6;
  11. } ;
  12. };
  13. #endif