bug fixed

This commit is contained in:
2025-11-11 17:33:16 +08:00
parent 1587394505
commit 3835809adb
4 changed files with 260 additions and 7 deletions

View File

@@ -26,11 +26,11 @@
#include <fast.h>
#include <main_libofp.h>
#include <ofp_v4.h>
void nms_exec_action(u32 inport,u32 outport,struct eth_header *eth,int len,int hit_idx);
void pkt_print(u8 *data, u16 len);
#include <stdint.h>
extern void nms_exec_action(u32 inport,u32 outport,struct eth_header *eth,int len,int hit_idx);
extern void pkt_print(u8 *data, u16 len);
extern uintptr_t *flow_stats_addr;
@@ -221,10 +221,10 @@ handle_ofpmsg_desc(struct ofp_buffer *ofpbuf)
(struct ofp_buffer *)build_opfmsg_reply_ofpbuf(OFPT_MULTIPART_REPLY,ofpbuf->header.xid,reply_len);
struct ofp_multipart *ofpmp_reply = (struct ofp_multipart *)ofpbuf_reply->data;
static const char *default_mfr_desc = "Wanglixuan";
static const char *default_hw_desc = "Lixuan_OpenBox";
static const char *default_sw_desc = "Lixuan_Driver";
static const char *default_serial_desc = "Lixuan OpenBox Series";
static const char *default_mfr_desc = "Chengjingyu_Networks";
static const char *default_hw_desc = "Jingyu_OpenBox";
static const char *default_sw_desc = "Jingyu_Driver";
static const char *default_serial_desc = "Jingyu OpenBox Series";
static const char *default_dp_desc = "None";
ofpmp_reply->type = htons(OFPMP_DESC);