logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

kcm.h (822B)


  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /*
  3. * Kernel Connection Multiplexor
  4. *
  5. * Copyright (c) 2016 Tom Herbert <tom@herbertland.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2
  9. * as published by the Free Software Foundation.
  10. *
  11. * User API to clone KCM sockets and attach transport socket to a KCM
  12. * multiplexor.
  13. */
  14. #ifndef KCM_KERNEL_H
  15. #define KCM_KERNEL_H
  16. struct kcm_attach {
  17. int fd;
  18. int bpf_fd;
  19. };
  20. struct kcm_unattach {
  21. int fd;
  22. };
  23. struct kcm_clone {
  24. int fd;
  25. };
  26. #define SIOCKCMATTACH (SIOCPROTOPRIVATE + 0)
  27. #define SIOCKCMUNATTACH (SIOCPROTOPRIVATE + 1)
  28. #define SIOCKCMCLONE (SIOCPROTOPRIVATE + 2)
  29. #define KCMPROTO_CONNECTED 0
  30. /* Socket options */
  31. #define KCM_RECV_DISABLE 1
  32. #endif