aboutsummaryrefslogtreecommitdiffstats
path: root/slirp-android/slirp.c
diff options
context:
space:
mode:
authorrich cannings <richc@google.com>2011-03-01 15:40:09 -0800
committerrich cannings <richc@google.com>2011-03-01 15:48:28 -0800
commitd952f28e527175cc3df9ebd91e739e34df2194c9 (patch)
tree7d184c1be6ce90acced09bc75d37ffb6a348338b /slirp-android/slirp.c
parent68a65132248c244003b820e9ae7c60cda336ba45 (diff)
downloadexternal_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/slirp.c')
-rw-r--r--slirp-android/slirp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/slirp-android/slirp.c b/slirp-android/slirp.c
index 015918f..6a62e4b 100644
--- a/slirp-android/slirp.c
+++ b/slirp-android/slirp.c
@@ -923,6 +923,14 @@ void slirp_dns_log_fd(FILE* fd) {
dns_log_fd = fd;
}
+FILE* get_slirp_drop_log_fd(void) {
+ return drop_log_fd;
+}
+
+FILE* get_slirp_dns_log_fd(void) {
+ return dns_log_fd;
+}
+
/* Address and ports are in host byte order */
int slirp_should_drop(unsigned long dst_addr,
int dst_port,