代码拉取完成,页面将自动刷新
同步操作将从 derekwin/oflops 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#ifndef CONTEXT_H
#define CONTEXT_H
struct oflops_context;
#include "oflops.h"
#include "test_module.h"
#include "wc_event.h"
#include "channel_info.h"
#include "oflops_snmp.h"
#include <pcap.h>
typedef struct oflops_context
{
//how many tests I watn to run?
int n_tests;
int max_tests; // size of the tests array
// an array of strings to store the tests
struct test_module ** tests;
// the test that we are currently handling
struct test_module * curr_test;
// which is the interface related t ocontrol
char * controller_port;
// the filedescriptor of the socket of
// the control connection to the openflow
int listen_fd;
// a list of ports on which I listen for data
uint16_t listen_port;
// how match data we capture
int snaplen;
int control_fd;
struct msgbuf * control_outgoing;
int n_channels;
int max_channels;
struct channel_info * channels; // control, send, recv,etc.
/** Pointers to SNMP channel
*/
struct snmp_channel* snmp_channel_info;
int should_end;
int should_continue;
struct wc_queue * timers;
int dump_controller;
/**
* The location to output logging information
*/
char *log;
/**
* the traffic generation method we choose.
*/
int trafficGen;
/**
* The switch cpu mib
*/
oid cpuOID[MAX_OID_LEN];
size_t cpuOID_len;
} oflops_context;
enum trafficGenValues {
USER_SPACE=1,
PKTGEN,
};
oflops_context * oflops_default_context(void);
int reset_context(oflops_context * ctx);
#endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。