2008-09-20 21:37:56 +00:00
|
|
|
/* source: xio-interface.h */
|
2016-07-22 06:54:31 +00:00
|
|
|
/* Copyright Gerhard Rieger and contributors (see file CHANGES) */
|
2008-09-20 21:37:56 +00:00
|
|
|
/* Published under the GNU General Public License V.2, see file COPYING */
|
|
|
|
|
|
|
|
#ifndef __xio_interface_h_included
|
|
|
|
#define __xio_interface_h_included 1
|
|
|
|
|
|
|
|
extern const struct addrdesc xioaddr_interface;
|
|
|
|
|
2023-10-26 17:08:26 +00:00
|
|
|
extern const struct optdesc opt_interface_addr;
|
|
|
|
extern const struct optdesc opt_interface_netmask;
|
|
|
|
extern const struct optdesc opt_iff_up;
|
|
|
|
extern const struct optdesc opt_iff_broadcast;
|
|
|
|
extern const struct optdesc opt_iff_debug;
|
|
|
|
extern const struct optdesc opt_iff_loopback;
|
|
|
|
extern const struct optdesc opt_iff_pointopoint;
|
|
|
|
extern const struct optdesc opt_iff_notrailers;
|
|
|
|
extern const struct optdesc opt_iff_running;
|
|
|
|
extern const struct optdesc opt_iff_noarp;
|
|
|
|
extern const struct optdesc opt_iff_promisc;
|
|
|
|
extern const struct optdesc opt_iff_allmulti;
|
|
|
|
extern const struct optdesc opt_iff_master;
|
|
|
|
extern const struct optdesc opt_iff_slave;
|
|
|
|
extern const struct optdesc opt_iff_multicast;
|
|
|
|
extern const struct optdesc opt_iff_portsel;
|
|
|
|
extern const struct optdesc opt_iff_automedia;
|
|
|
|
/*extern const struct optdesc opt_iff_dynamic;*/
|
2023-09-30 13:18:39 +00:00
|
|
|
extern const struct optdesc opt_retrieve_vlan;
|
2023-10-26 17:08:26 +00:00
|
|
|
|
|
|
|
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);
|
|
|
|
|
2023-07-27 19:18:23 +00:00
|
|
|
extern int _interface_retrieve_vlan(struct single *fd, struct opt *opts);
|
2023-10-26 17:08:26 +00:00
|
|
|
extern int _xiointerface_get_iff(int sockfd, const char *name, short *save_iff);
|
|
|
|
extern int _xiointerface_set_iff(int sockfd, const char *name, short new_iff);
|
|
|
|
extern int _xiointerface_apply_iff(int sockfd, const char *name, short iff_opts[2]);
|
2023-09-30 13:18:39 +00:00
|
|
|
extern int _interface_setsockopt_auxdata(int fd, int auxdata);
|
2023-10-26 17:08:26 +00:00
|
|
|
|
2008-09-20 21:37:56 +00:00
|
|
|
#endif /* !defined(__xio_interface_h_included) */
|