if_pppolac.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. /* include/linux/if_pppolac.h
  2. *
  3. * Header for PPP on L2TP Access Concentrator / PPPoLAC Socket (RFC 2661)
  4. *
  5. * Copyright (C) 2009 Google, Inc.
  6. * Author: Chia-chi Yeh <chiachi@android.com>
  7. *
  8. * This software is licensed under the terms of the GNU General Public
  9. * License version 2, as published by the Free Software Foundation, and
  10. * may be copied, distributed, and modified under those terms.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. */
  17. #ifndef __LINUX_IF_PPPOLAC_H
  18. #define __LINUX_IF_PPPOLAC_H
  19. #include <linux/socket.h>
  20. #include <linux/types.h>
  21. struct sockaddr_pppolac {
  22. sa_family_t sa_family; /* AF_PPPOX */
  23. unsigned int sa_protocol; /* PX_PROTO_OLAC */
  24. int udp_socket;
  25. struct __attribute__((packed)) {
  26. __u16 tunnel, session;
  27. } local, remote;
  28. } __attribute__((packed));
  29. #endif /* __LINUX_IF_PPPOLAC_H */