Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Mode of operations */
- SELECTION_MODE sampling_mode;
- SELECTION_MODE normalization_mode;
- /* Statistics */
- unsigned int numberPackets;
- unsigned int timeFirstPacket;
- unsigned int timeLastPacket;
- unsigned int packetsReceived;
- unsigned int packetsProcessed;
- /* Pointer to action details */
- nas_t* next;
- /* Required for linked hash list */
- struct hlist_node hash_list;
- struct flow_action_head* fah;
- fah = (struct flow_action_head*) kzalloc(sizeof(struct flow_action_head), GFP_ATOMIC);
- fah->flowID = flowID;
- fah->sampling_mode = SMODE_COUNT_BASED;
- fah->normalization_mode = NMODE_TTL;
- fah->numberPackets = 1;
- fah->timeFirstPacket = 0;
- fah->timeLastPacket = 0;
- fah->packetsReceived = 0;
- fah->packetsProcessed = 0;
- fah->next = NULL;
- hash_add(flow_dictionary, &fah->hash_list, flowID);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement