Version 1.8.0.0
[socat.git] / xio-interface.h
blob7194ab2a3810fc88c94226bdffda47fc3a3bf61f
1 /* source: xio-interface.h */
2 /* Copyright Gerhard Rieger and contributors (see file CHANGES) */
3 /* Published under the GNU General Public License V.2, see file COPYING */
5 #ifndef __xio_interface_h_included
6 #define __xio_interface_h_included 1
8 extern const struct addrdesc xioaddr_interface;
10 extern const struct optdesc opt_interface_addr;
11 extern const struct optdesc opt_interface_netmask;
12 extern const struct optdesc opt_iff_up;
13 extern const struct optdesc opt_iff_broadcast;
14 extern const struct optdesc opt_iff_debug;
15 extern const struct optdesc opt_iff_loopback;
16 extern const struct optdesc opt_iff_pointopoint;
17 extern const struct optdesc opt_iff_notrailers;
18 extern const struct optdesc opt_iff_running;
19 extern const struct optdesc opt_iff_noarp;
20 extern const struct optdesc opt_iff_promisc;
21 extern const struct optdesc opt_iff_allmulti;
22 extern const struct optdesc opt_iff_master;
23 extern const struct optdesc opt_iff_slave;
24 extern const struct optdesc opt_iff_multicast;
25 extern const struct optdesc opt_iff_portsel;
26 extern const struct optdesc opt_iff_automedia;
27 /*extern const struct optdesc opt_iff_dynamic;*/
28 extern const struct optdesc opt_retrieve_vlan;
30 extern int xiolog_ancillary_packet(struct single *sfd, struct cmsghdr *cmsg, int *num, char *typbuff, int typlen, char *nambuff, int namlen, char *envbuff, int envlen, char *valbuff, int vallen);
32 extern int _interface_retrieve_vlan(struct single *fd, struct opt *opts);
33 extern int _xiointerface_get_iff(int sockfd, const char *name, short *save_iff);
34 extern int _xiointerface_set_iff(int sockfd, const char *name, short new_iff);
35 extern int _xiointerface_apply_iff(int sockfd, const char *name, short iff_opts[2]);
36 extern int _interface_setsockopt_auxdata(int fd, int auxdata);
38 #endif /* !defined(__xio_interface_h_included) */