summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2015-06-26 15:20:22 +1000
committerChris Johns <chrisj@rtems.org>2015-06-26 15:20:22 +1000
commitc6e539593efa82221083406c9d04935f48ed1c27 (patch)
treec60f0940eead4255ef5ea0f35fd3674009362171
parenttcpdump: Allow enter/return to exit tcpdump. (diff)
downloadrtems-libbsd-c6e539593efa82221083406c9d04935f48ed1c27.tar.bz2
tcpdump: Return the PCAP loop return value. Increase the stack size.
-rw-r--r--freebsd/contrib/tcpdump/tcpdump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/freebsd/contrib/tcpdump/tcpdump.c b/freebsd/contrib/tcpdump/tcpdump.c
index 3e55b3d2..3591453c 100644
--- a/freebsd/contrib/tcpdump/tcpdump.c
+++ b/freebsd/contrib/tcpdump/tcpdump.c
@@ -169,7 +169,7 @@ rtems_pcap_loop(pcap_t *pd, int cnt, pcap_handler cb, u_char *ud)
name = rtems_build_name('T', 'C', 'P', 'D');
- sc = rtems_task_create (name, priority, 4 * 1024,
+ sc = rtems_task_create (name, priority, 8 * 1024,
RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL,
RTEMS_PREEMPT | RTEMS_TIMESLICE | RTEMS_NO_ASR,
&id);
@@ -211,7 +211,7 @@ rtems_pcap_loop(pcap_t *pd, int cnt, pcap_handler cb, u_char *ud)
}
}
- return 0;
+ return pcap_loop_args.ret;
}
#define pcap_loop rtems_pcap_loop
#endif /* __rtems__ */