aboutsummaryrefslogtreecommitdiffstats
path: root/src/main_stp.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-01-22 21:01:23 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-01-22 21:33:18 +0100
commitf6375b49d34a6adc7eaf42ebd06ab64037df9f0a (patch)
tree23e2f178494ce97faf6ef21f0ee861ea2b3c4c93 /src/main_stp.c
parent36260e915a23892e5275866ef943783ec6a8e404 (diff)
pcap: Allow to log on a link or linkset level
Diffstat (limited to 'src/main_stp.c')
-rw-r--r--src/main_stp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main_stp.c b/src/main_stp.c
index a957478..1ae2e11 100644
--- a/src/main_stp.c
+++ b/src/main_stp.c
@@ -249,13 +249,14 @@ int main(int argc, char **argv)
bsc.m2ua_set->isup_opc = 9;
bsc.m2ua_set->ni = 3;
bsc.m2ua_set->bsc = &bsc;
+ bsc.m2ua_set->pcap_fd = bsc.pcap_fd;
/* for both links we want to have all isup messages */
bsc.m2ua_set->pass_all_isup = 1;
bsc.link_set->pass_all_isup = 1;
lnk = sctp_m2ua_transp_create("0.0.0.0", 2904);
- lnk->base.pcap_fd = bsc.pcap_fd;
+ lnk->base.pcap_fd = -1;
mtp_link_set_add_link(bsc.m2ua_set, (struct mtp_link *) lnk);
llist_for_each_entry(data, &bsc.m2ua_set->links, entry)