1. A method of wireless communication, comprising: determining a set of filtering rules and a set of processing rules based on a policy containing information on filtering and processing of discovery messages, wherein the set of filtering rules are used for determining whether the discovery messages are due for rebroadcast; applying the set of filtering rules to a received discovery message; applying the set of processing rules to the discovery message in response to the discovery message passing the set of filtering rules; and rebroadcasting the discovery message.