openvswitch에 무선 파라미터 요청 메시지를 추가하기 위해 다음과 같은 과정을 거쳤습니다.
1. 무선 파라미터 메시지 정의 enum ofptype { OFPTYPE_WPARAMS_REQUEST, /* OFPRAW_OFPST13_WPARAMS_ REQUEST. */ OFPTYPE_WPARAMS_REPLY, /* OFPRAW_OFST13_WPARAMS_REPLY. */ } enum offraw { /* OFPST 1.3+ (21): 무효. */ OFPRAW_OFST13_WPARAMS_ REQUEST, /* OFST 1.3+ (21): 무효. */ OFPRAW_OFST13_WPARAMS_REPLY } 2. 처리 함수 정의, static enum ofperr handle_wparams_request(struct ofconn* ofconn, const struct ofp_header* oh) { VLOG_WARN("handle_wparams_ request() 호출\n"); struct ofpbuf* buf; buf = offraw_alloc_reply(OFPRAW_ OFPST13_WPARAMS_REPLY, 오, 0); ofconn_send_reply(ofconn, buf); 반환 0; } 정적 enum ofperr handle_single_part_openflow( struct ofconn *ofconn, const struct ofp_header *oh, enum ofptype 유형) OVS_EXCLUDED(ofproto_mutex) { // VLOG_INFO("유형: %d 대 %d", 유형, OFPTYPE_GET_TXPOWER_REQUE) 스위치(유형) { 경우 OFPTYPE_WPARAMS_REQUEST: return handle_wparams_request(ofconn, oh); } 하지만 /var/log/openvswitch/ovs- vswitchd.log 인쇄 2021-09-10T08:18:32.850Z| 18277|ofp_msgs|WARN|알 수 없는 OpenFlow 메시지(버전 4, 유형 18, 통계 21) 무엇이 문제입니까? 감사합니다. _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev