Thanks for reply! I'm trying to create 2 kind of message :
1. Message send from Nox to change state of switch ( eg:change frequency). I intend to add new variable to message Switch_set_config: struct ofp_switch_config { struct ofp_header header; uint8_t state; /*State of switch*/ uint16_t flags; /* OFPC_* flags. */ uint16_t miss_send_len; /* Max bytes of new flow that datapath should send to the controller. */ }; OFP_ASSERT(sizeof(struct ofp_switch_config) == 13); enum ofp_switch_state { STATE_OFF = 0X00; /*switch off */ STATE_10Mbps = 0X01; STATE_100Mbps = 0X02; STATE_1Gbps = 0X03; } 2. Message carry infomation of switch to NOX (eg: traffic and power consumption). I'm going to create new message using statistic message: struct ofp_switch_stats_request{ uint64_t datapath_id; uint64_t traffic; /* Total traffic in switch*/ uint16_t power; /*Power consumption in switch */ } OPF_ASSERT(sizeof(struct ofp_switch_stats_request) = 11); /*Body of ofp_switch_stats_reply */ struct ofp_switch_stats_reply{ uint64_t datapath_id; uint8_t traffic; /*traffic in switch*/ uint16_t power; /*power consumption in switch */ } OPF_ASSERT(sizeof(struct ofp_switch_stats_request) = 11); Would you help me? -- Tô Đức Thiện Điện tử 5 -K53-Trường ĐHBK Hà Nội ĐT :01686481787
_______________________________________________ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev