2008-01-28 21:37:16 +00:00
|
|
|
/* source: xio-ip.h */
|
2016-07-22 06:54:31 +00:00
|
|
|
/* Copyright Gerhard Rieger and contributors (see file CHANGES) */
|
2008-01-27 12:00:08 +00:00
|
|
|
/* Published under the GNU General Public License V.2, see file COPYING */
|
|
|
|
|
|
|
|
#ifndef __xio_ip_h_included
|
|
|
|
#define __xio_ip_h_included 1
|
|
|
|
|
|
|
|
extern const struct optdesc opt_ip_options;
|
|
|
|
extern const struct optdesc opt_ip_pktinfo;
|
|
|
|
extern const struct optdesc opt_ip_recvtos;
|
|
|
|
extern const struct optdesc opt_ip_recvttl;
|
|
|
|
extern const struct optdesc opt_ip_recvopts;
|
|
|
|
extern const struct optdesc opt_ip_retopts;
|
|
|
|
extern const struct optdesc opt_ip_tos;
|
|
|
|
extern const struct optdesc opt_ip_ttl;
|
|
|
|
extern const struct optdesc opt_ip_hdrincl;
|
|
|
|
extern const struct optdesc opt_ip_recverr;
|
|
|
|
extern const struct optdesc opt_ip_mtu_discover;
|
|
|
|
extern const struct optdesc opt_ip_mtu;
|
|
|
|
extern const struct optdesc opt_ip_freebind;
|
|
|
|
extern const struct optdesc opt_ip_router_alert;
|
|
|
|
extern const struct optdesc opt_ip_multicast_ttl;
|
|
|
|
extern const struct optdesc opt_ip_multicast_loop;
|
|
|
|
extern const struct optdesc opt_ip_multicast_if;
|
|
|
|
extern const struct optdesc opt_ip_pktoptions;
|
|
|
|
extern const struct optdesc opt_ip_add_membership;
|
2020-12-13 21:21:06 +00:00
|
|
|
extern const struct optdesc opt_ip_add_source_membership;
|
2008-09-22 20:17:55 +00:00
|
|
|
extern const struct optdesc opt_ip_recvdstaddr;
|
|
|
|
extern const struct optdesc opt_ip_recvif;
|
2020-12-12 12:47:40 +00:00
|
|
|
extern const struct optdesc opt_ip_transparent;
|
2008-01-27 12:00:08 +00:00
|
|
|
|
2023-11-05 12:56:58 +00:00
|
|
|
extern const struct optdesc opt_ai_addrconfig;
|
2023-11-05 12:58:07 +00:00
|
|
|
extern const struct optdesc opt_ai_passive;
|
2023-11-05 15:29:58 +00:00
|
|
|
extern const struct optdesc opt_ai_v4mapped;
|
2023-11-05 12:56:58 +00:00
|
|
|
|
2008-01-27 12:00:08 +00:00
|
|
|
extern const struct optdesc opt_res_debug;
|
|
|
|
extern const struct optdesc opt_res_aaonly;
|
|
|
|
extern const struct optdesc opt_res_usevc;
|
|
|
|
extern const struct optdesc opt_res_primary;
|
|
|
|
extern const struct optdesc opt_res_igntc;
|
|
|
|
extern const struct optdesc opt_res_recurse;
|
|
|
|
extern const struct optdesc opt_res_defnames;
|
|
|
|
extern const struct optdesc opt_res_stayopen;
|
|
|
|
extern const struct optdesc opt_res_dnsrch;
|
|
|
|
|
2023-11-05 12:59:14 +00:00
|
|
|
extern int xioinit_ip(int *pf, char ipv);
|
2023-11-05 12:56:58 +00:00
|
|
|
|
|
|
|
extern int xiogetaddrinfo(const char *node, const char *service, int family, int socktype, int protocol, struct addrinfo **res, const int ai_flags[2], const unsigned long res_opts[2]);
|
2023-10-22 21:15:49 +00:00
|
|
|
extern void xiofreeaddrinfo(struct addrinfo *res);
|
2023-11-05 12:56:58 +00:00
|
|
|
extern int xioresolve(const char *node, const char *service, int family, int socktype, int protocol, union sockaddr_union *addr, socklen_t *addrlen, const int ai_flags[2], const unsigned long res_opts[2]);
|
2023-09-30 13:18:39 +00:00
|
|
|
extern int xiolog_ancillary_ip(struct single *sfd, struct cmsghdr *cmsg, int *num, char *typbuff, int typlen, char *nambuff, int namlen, char *envbuff, int envlen, char *valbuff, int vallen);
|
2023-06-24 08:21:44 +00:00
|
|
|
extern int xiotype_ip_add_membership(char *token, const struct optname *ent, struct opt *opt);
|
|
|
|
extern int xioapply_ip_add_membership(xiosingle_t *xfd, struct opt *opt);
|
2020-12-13 21:21:06 +00:00
|
|
|
extern int xiotype_ip_add_source_membership(char* token, const struct optname *ent, struct opt *opt);
|
|
|
|
extern int xioapply_ip_add_source_membership(struct single *xfd, struct opt *opt);
|
2008-01-27 12:00:08 +00:00
|
|
|
|
|
|
|
#endif /* !defined(__xio_ip_h_included) */
|