mirror of
https://repo.or.cz/socat.git
synced 2025-07-09 05:46:32 +00:00
Interface flags now defined with INTERFACE, inherited by TUN
This commit is contained in:
parent
8c9b185890
commit
47af17dbf2
16 changed files with 312 additions and 142 deletions
|
@ -7,4 +7,29 @@
|
|||
|
||||
extern const struct addrdesc xioaddr_interface;
|
||||
|
||||
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;*/
|
||||
|
||||
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);
|
||||
|
||||
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]);
|
||||
|
||||
#endif /* !defined(__xio_interface_h_included) */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue