摘要 |
A method for processing messages comprises: a first device sending a neighbor solicitation message to a second device, and then creating information of the second device based on a neighbor advertisement message replied by the second device; the first device sending a detection request message to the second device based on the created information of the second device, and determining whether a detection reply message sent by the second device is received in a period of time, and if it is not received, then the first device deleting the created information of the second device. Accordingly, a network device is provided comprising a neighbor solicitation message sending module, a neighbor advertisement message receiving module, an information creating module, a detection request message sending module and a detection reply message receiving module. Additionally, a method for processing messages and a network device are provided. The processing of the neighbor advertisement message by the methods and network devices decreases effects of the neighbor advertisement message with a false link layer address. |