it works well. The rule will be inserted into the switches successfully
But if I add a mask for the dst_ip like this:
Flow *f = new Flow();
uint8_t ip_dst[4] = {10,0,0,1};
uint8_t mask[4] = {255,255,255,0};
f->Add_Field("eth_type", 0x0800);
f->Add_Field("ipv4_dst", ip_dst, mask);
Nothing happened in the flow table
I wander if I have used the Add_Field function in the right way
I am writing an application with NOX. But I failed to send a flow-mod message with the dst_ip and a specified mask through NOX API all the time.
If I only set the IP field without any mask like this:
Flow *f = new Flow(); uint8_t ip_dst[4] = {10,0,0,1}; f->Add_Field("eth_type", 0x0800); f->Add_Field("ipv4_dst", ip_dst);
it works well. The rule will be inserted into the switches successfully
But if I add a mask for the dst_ip like this: Flow *f = new Flow(); uint8_t ip_dst[4] = {10,0,0,1}; uint8_t mask[4] = {255,255,255,0}; f->Add_Field("eth_type", 0x0800); f->Add_Field("ipv4_dst", ip_dst, mask); Nothing happened in the flow table
I wander if I have used the Add_Field function in the right way
Thanks in advance.