430-pppol2tpv3-struct.patch 775 B

1234567891011121314151617181920212223
  1. --- a/include/linux/if_pppol2tp.h
  2. +++ b/include/linux/if_pppol2tp.h
  3. @@ -32,6 +32,20 @@ struct pppol2tp_addr
  4. __u16 d_tunnel, d_session; /* For sending outgoing packets */
  5. };
  6. +/* The L2TPv3 protocol changes tunnel and session ids from 16 to 32
  7. + * bits. So we need a different sockaddr structure.
  8. + */
  9. +struct pppol2tpv3_addr {
  10. + pid_t pid; /* pid that owns the fd.
  11. + * 0 => current */
  12. + int fd; /* FD of UDP or IP socket to use */
  13. +
  14. + struct sockaddr_in addr; /* IP address and port to send to */
  15. +
  16. + __u32 s_tunnel, s_session; /* For matching incoming packets */
  17. + __u32 d_tunnel, d_session; /* For sending outgoing packets */
  18. +};
  19. +
  20. /* Socket options:
  21. * DEBUG - bitmask of debug message categories
  22. * SENDSEQ - 0 => don't send packets with sequence numbers