forked from cisco/mercury
-
Notifications
You must be signed in to change notification settings - Fork 0
/
capture.c
26 lines (20 loc) · 676 Bytes
/
capture.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
* capture.c
*
* Copyright (c) 2020 Cisco Systems, Inc. All rights reserved.
* License at https://github.com/cisco/mercury/blob/master/LICENSE
*/
#include <stdio.h>
#include "mercury.h"
#include "output.h"
/*
* bind_and_dispatch() is a stub function, used only when Linux
* AF_PACKET TPACKETv3 is not available. In the future, it may be
* replaced by a more functional alternative.
*/
enum status bind_and_dispatch(struct mercury_config *,
mercury_context,
struct output_file *) {
fprintf(stderr, "error: packet capture is unavailable; AF_PACKET TPACKETv3 not present\n");
return status_err;
}