-
Notifications
You must be signed in to change notification settings - Fork 474
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
buffer_id should be ignored for OFPFC_DELETE and OFPFC_DELETE_STRICT #138
Comments
Yeah, this doesn't look right; thanks for the report. It seems like there might be other cases where we'd get bad behavior too. For example, there are several ways that _flow_mod_add() can fail, e.g., when rejecting an emergency flow with a nonzero timeout. I somehow doubt that the actions should be applied to the buffered packet in such a case. Offhand it seems like we should do one of two things:
|
Hello its working correctly for source to destination UDP data sending using socket programs (server , client ) but when i am interrupting to stop udp traffic between source_ip and destination_ip using flow message below its not working and subsequent packets transferring is continue msg = of.ofp_flow_mod() |
This seems like it should be its own issue, but: Why are you setting .command twice for the remove? And you shouldn't need to add actions to a delete. |
Thank you very much sir MurphyMc. |
Dear sir MurphyMc! |
@SyedMohsan Does this have anything to do with the bug in question? If not, please don't ask here on this issue, and instead see the I’ve got a problem / bug! Can you help me? page or post to the mailing list. Asking on random Github issues is not the right approach, as I'm getting notifications for each comment. |
According to the spec (versions 1.0 through 1.5.0) , the buffer_id in ofp_flow_mod is defined as:
and "This field is ignored by OFPFC_DELETE and OFPFC_DELETE_STRICT flow mod messages."
However, in switch.py, the _rx_flow_mod does the following:
even if the flow mod is of type OFPFC_DELETE*. Instead, the buffer_id should be ignored for deletes and no actions should taken even if there is a value in the buffer_id other than OFP_NO_BUFFER.
See also this bug in Flowvisor for a similar description of the issue.
Openvswitch also only outputs packets for ADD and MODIFY*, and does not output packets for DELETE*s.
The text was updated successfully, but these errors were encountered: