Hi,
I'm sorry to say, but you lack the basics for completing the assigned task. The approach you're following will lead to nowhere, or better, will lead you only to the sort of problems that have been solved already by real flooding protocols.
Again, sorry if this seems harsh, but I'd rather point you to the right direction.
First point: as Kostantinos mentioned already, flooding IS is routing protocol. You could try to bypass routing, but you'll only end up with a nightmare, simply because flooding is routing. Deal with it.
Now, routing can be done below (aka, mesh-under) or above (aka route-over) IP. In the first case you'll have to work with NetDevices and shim layers before the packets reach IP, in the second case you must obey the Ipv4RoutingProtocol interfaces (or the Ipv6RoutingProtocol). Note that the protocols in the "mesh" module are mesh-under.
If you work with mesh-under protocols, then you have no sockets at all. I you have sockets, you're route-over. I it's route.over, the routing is done in the RouteOutput and IpForward functions.
Moreover, you can NOT have a "bool Received" variable, because you need to recognize the packets. A "bool Received" would work or one packet only. As a side note, the question "each node should has own Received variable to check" means that you must give a second read to your C++ textbook.
Summarizing:
1) Yes, you need a new module, or at least a new class in an existing module.
2) Yes, you need a way to [reliably] tell if a node has already forwarded a packet or not. This could be quite hard or very simple, depending on your assumptions. E.g., can you assume that there's a sequence header in the packet ? For sure you need an structre to hold the past packets you have seen and some timers to clean up the ones that are old enough.
3) You lack the design phase. Do *not* start coding without a good understanding of what you have to do and what parts of code you ned to change or add. Otherwise it's like trying to fix an engine without knowing how an engine works, and hoping that, by opening it and doing "something" you can fix it. It will not work.
Start with point 3, it's the most important. Moreover, controlled flooding is a topic that is very well explained in the literature. Find a good paper and study it.
T.