Skip to content
Snippets Groups Projects
Commit f6ec13ad authored by tamihiro's avatar tamihiro
Browse files

Restore computeEntryCookie() functionality

parent 2aadf6b8
No related branches found
No related tags found
No related merge requests found
......@@ -82,14 +82,12 @@ public class StaticFlowEntries {
*/
public static long computeEntryCookie(OFFlowMod fm, int userCookie, String name) {
// flow-specific hash is next 20 bits LOOK! who knows if this
/*
int prime = 211;
int flowHash = 2311;
for (int i=0; i < name.length(); i++)
flowHash = flowHash * prime + (int)name.charAt(i);
*/
// For now we use 0 so we can do a mass delete by cookie
return AppCookie.makeCookie(StaticFlowEntryPusher.STATIC_FLOW_APP_ID, 0);
return AppCookie.makeCookie(StaticFlowEntryPusher.STATIC_FLOW_APP_ID, flowHash);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment