1. A method for security in mobile ad hoc networks with efficient flooding mechanism using Layer Independent Passive Clustering (LIPC), comprising steps of: computing, using a processor, trustworthiness of a transmitting node, upon receiving a packet from the transmitting node; when the transmitting node is not trustworthy, dropping the packet; when the transmitting node is trustworthy and the receiving node is in CH state and when a transmitting node of an other packet is trustworthy and the transmitting node of the other packet is in the CH state and received packet ID is less than ID of the receiving node and a number of GW nodes are less than the offset and the scaled number of CH nodes, transitioning the receiving node to the GW state; when the transmitting node is trustworthy and the receiving node is in the CH state and when the transmitting node of the other packet is trustworthy and the transmitting node of the other packet is in CH state, the received packet ID is less than the ID of the receiving node, the number of GW nodes are greater than or equal to the offset and the scaled number of CH nodes, transitioning the receiving node to ORD state; when the transmitting node is trustworthy and the receiving node is in the GW state and the number of GW nodes are greater than or equal to an offset and scaled number of CH nodes, transitioning the receiving node to the ORD state; when the transmitting node is trustworthy and the receiving node is in the CH Ready state and the packet is to be transmitted, transitioning the receiving node to the CH state; when the transmitting node is trustworthy and the receiving node is in the CH Ready state and the other packet is received before the packet is transmitted and when the transmitting node of the other packet is trustworthy and the transmitting node of the other packet is in the CH state and the received packet ID is less than the ID of the receiving node and the number of GW nodes are less than the offset and the scaled number of CH nodes, transitioning the receiving node to the GW state; when the transmitting node is trustworthy and the receiving node is in the CH Ready state and the other packet is received before the packet is transmitted and when the transmitting node of the other packet is trustworthy and the transmitting node of the other packet is in the CH state, the received packet ID is less than the ID of the receiving node, the number of GW nodes are greater than or equal to the offset and the scaled number of CH nodes, transitioning the receiving node to the ORD state; when the transmitting node is trustworthy and the receiving node is in the ORD state and the other packet is received before the packet is transmitted and when the transmitting node of the other packet is trustworthy and the number of GW nodes are less than the offset and the scaled number of CH nodes, transitioning the receiving node to the GW state; when the transmitting node is trustworthy and the receiving node is in INITIAL state and when the transmitting node of the other packet is trustworthy and the transmitting node of the other packet is not in the CH state, transitioning the receiving node to the CH Ready state; when the transmitting node is trustworthy and the receiving node is in the INITIAL state and when the transmitting node of the other packet is trustworthy and the transmitting node of the other packet is in the CH state, transitioning the receiving node to the GW state; and when a time without network activity has elapsed, transitioning the received node to the INITIAL state.