Unverified Commit ca174c5e authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files
parents a37954d8 3132793f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -237,6 +237,10 @@ struct hsr_node *hsr_get_node(struct hsr_port *port, struct list_head *node_db,
	 */
	if (ethhdr->h_proto == htons(ETH_P_PRP) ||
	    ethhdr->h_proto == htons(ETH_P_HSR)) {
		/* Check if skb contains hsr_ethhdr */
		if (skb->mac_len < sizeof(struct hsr_ethhdr))
			return NULL;

		/* Use the existing sequence_nr from the tag as starting point
		 * for filtering duplicate frames.
		 */