-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmanager.h
35 lines (30 loc) · 822 Bytes
/
manager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
* Copyright (c) 2018-present StackPath, LLC
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* manager.h -- header file to use manager.c
*/
#ifndef _MANAGER_H_
#define _MANAGER_H_
#include <sched.h> // for cpu_set_t
#include <stdbool.h> // for bool
#include <stdint.h> // for uintmax_t
struct manager_arguments {
char *ifname;
char *pcap_filename;
char *program_fullname;
char *program_basename;
uintmax_t packet_count;
int processor_count;
cpu_set_t capture_cpu_set;
bool capture_rx;
bool capture_tx;
bool packet_buffered;
bool promiscuous;
bool verbose;
};
int manager(struct manager_arguments *args);
#endif // _MANAGER_H_