Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

flow_class.c

Go to the documentation of this file.
00001 #include "flow_class.h"
00002 #include "flow_error.h"
00003 
00004 /** 
00005  * Find the relevant flow processing scheme for a packet
00006  * 
00007  * @param p packet to find the flow scheme for
00008  * 
00009  * @return 0 on success, 1 on failure
00010  */
00011 int flow_classifier(FLOWPACKET *p, int *flowtype)
00012 {
00013     if(p == NULL)
00014     {
00015         return FLOW_ENULL;
00016     }
00017 
00018     if(IsIPv4Packet(p))
00019     {
00020         *flowtype = FLOW_IPV4;            
00021         return FLOW_SUCCESS;
00022     }
00023 
00024     return FLOW_EINVALID;
00025 }

Generated on Sun May 14 14:51:15 2006 by  doxygen 1.4.2