patch-include_linux_if_pppol2tp_h 868 B

1234567891011121314151617181920212223
  1. --- ppp-2.4.5.orig/include/linux/if_pppol2tp.h 2009-11-16 23:26:07.000000000 +0100
  2. +++ ppp-2.4.5/include/linux/if_pppol2tp.h 2010-08-29 19:36:29.823658423 +0200
  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