1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _NET_STP_H 2 #ifndef _NET_STP_H 3 #define _NET_STP_H 3 #define _NET_STP_H 4 4 5 #include <linux/if_ether.h> << 6 << 7 struct stp_proto { 5 struct stp_proto { 8 unsigned char group_address[ETH_ALEN 6 unsigned char group_address[ETH_ALEN]; 9 void (*rcv)(const struct st 7 void (*rcv)(const struct stp_proto *, struct sk_buff *, 10 struct net_devi 8 struct net_device *); 11 void *data; 9 void *data; 12 }; 10 }; 13 11 14 int stp_proto_register(const struct stp_proto 12 int stp_proto_register(const struct stp_proto *proto); 15 void stp_proto_unregister(const struct stp_pro 13 void stp_proto_unregister(const struct stp_proto *proto); 16 14 17 #endif /* _NET_STP_H */ 15 #endif /* _NET_STP_H */ 18 16
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.