netlink.h 866 B

123456789101112131415161718192021222324
  1. /* NHRP netlink/neighbor table API
  2. * Copyright (c) 2014-2015 Timo Teräs
  3. *
  4. * This file is free software: you may copy, redistribute and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 2 of the License, or
  7. * (at your option) any later version.
  8. */
  9. #include <stdint.h>
  10. union sockunion;
  11. struct interface;
  12. extern int netlink_nflog_group;
  13. extern int netlink_req_fd;
  14. int netlink_init(void);
  15. int netlink_configure_arp(unsigned int ifindex, int pf);
  16. void netlink_update_binding(struct interface *ifp, union sockunion *proto, union sockunion *nbma);
  17. void netlink_set_nflog_group(int nlgroup);
  18. void netlink_gre_get_info(unsigned int ifindex, uint32_t *gre_key, unsigned int *link_index, struct in_addr *saddr);
  19. void netlink_gre_set_link(unsigned int ifindex, unsigned int link_index);