mirror of
https://repo.or.cz/socat.git
synced 2025-07-13 23:13:24 +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
11
xio.h
11
xio.h
|
@ -192,7 +192,8 @@ typedef struct single {
|
|||
END_SHUTDOWN, /* shutdown() */
|
||||
END_KILL, /* has subprocess */
|
||||
END_CLOSE_KILL, /* first close fd, then kill subprocess */
|
||||
END_SHUTDOWN_KILL /* first shutdown fd, then kill subprocess */
|
||||
END_SHUTDOWN_KILL,/* first shutdown fd, then kill subprocess */
|
||||
END_INTERFACE /* restore interface flags, then close fd */
|
||||
} howtoend;
|
||||
#if _WITH_SOCKET
|
||||
union sockaddr_union peersa;
|
||||
|
@ -276,11 +277,13 @@ typedef struct single {
|
|||
#endif
|
||||
} openssl;
|
||||
#endif /* WITH_OPENSSL */
|
||||
#if WITH_TUN
|
||||
#if _WITH_INTERFACE
|
||||
struct {
|
||||
char name[IFNAMSIZ]; /* name of interface */
|
||||
short save_iff; /* for restoring old settings on exit */
|
||||
short iff_opts[2]; /* ifr flags, using OFUNC_OFFSET_MASKS */
|
||||
} tun;
|
||||
#endif /* WITH_TUN */
|
||||
} interface;
|
||||
#endif /* _WITH_INTERFACE */
|
||||
} para;
|
||||
#if WITH_STATS
|
||||
unsigned long long blocks_read;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue