OVS处理各个openflow消息的具体代码在 ofproto/ofproto.c 中:
static enum ofperr
handle_openflow__(struct ofconn *ofconn, const struct ofpbuf *msg)
{
const struct ofp_header *oh = msg->data;
enum ofptype type;
enum ofperr error;
error = ofptype_decode(&type, oh);
if (error) {
return error;
}
switch (type) {
/* OpenFlow requests. */
case OFPTYPE_ECHO_REQUEST:
return handle_echo_request(ofconn, oh);
case OFPTYPE_FEATURES_REQUEST:
return ha

本文详细探讨了OVS(OpenvSwitch)如何处理OpenFlow消息,重点在于ofproto/ofproto.c中的实现细节,通过链接提供的博客文章,读者可以深入理解OVS在软件定义网络(SDN)中如何交互和执行OpenFlow指令。
最低0.47元/天 解锁文章
2600

被折叠的 条评论
为什么被折叠?



