diff options
author | rich cannings <richc@google.com> | 2011-03-01 15:40:09 -0800 |
---|---|---|
committer | rich cannings <richc@google.com> | 2011-03-01 15:48:28 -0800 |
commit | d952f28e527175cc3df9ebd91e739e34df2194c9 (patch) | |
tree | 7d184c1be6ce90acced09bc75d37ffb6a348338b /slirp-android/libslirp.h | |
parent | 68a65132248c244003b820e9ae7c60cda336ba45 (diff) | |
download | external_qemu-d952f28e527175cc3df9ebd91e739e34df2194c9.zip external_qemu-d952f28e527175cc3df9ebd91e739e34df2194c9.tar.gz external_qemu-d952f28e527175cc3df9ebd91e739e34df2194c9.tar.bz2 |
qemu logging extensions
(1) Clear the logs upon receiving a SIGUSR1 signal
(2) Add logging timestamps for network connections
(3) Extended TCP redirect logs to include local src
ip/port and fixed byte-ordering in log files
Change-Id: I51e7293c8eeb5979a92e67f52f1c6416400d83c6
Diffstat (limited to 'slirp-android/libslirp.h')
-rw-r--r-- | slirp-android/libslirp.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/slirp-android/libslirp.h b/slirp-android/libslirp.h index 120e3d3..e8b63a8 100644 --- a/slirp-android/libslirp.h +++ b/slirp-android/libslirp.h @@ -43,6 +43,9 @@ void slirp_drop_tcp(); void slirp_add_allow(unsigned long dst_addr, int dst_lport, int dst_hport, u_int8_t proto); void slirp_drop_log_fd(FILE* fd); + +/** Get the drop log fd */ +FILE* get_slirp_drop_log_fd(void); int slirp_should_drop(unsigned long dst_addr, int dst_port, u_int8_t proto); @@ -64,6 +67,8 @@ int slirp_should_net_forward(unsigned long remote_ip, int remote_port, */ void slirp_dns_log_fd(FILE* fd); +/** Get the dns log fd */ +FILE* get_slirp_dns_log_fd(void); /** Logs the DNS name in DNS query issued by the VM. */ int slirp_log_dns(struct mbuf* m, int dropped); /** IP packet dump of DNS queris and responses. */ |