storm: limit broadcast, multicast and unknown unicast and multicast per port

This commit is contained in:
DrDoof committed 2026-09-29 21:46:56 +02:00
1 parent 13b75a73c9
commit 26547f3e01
13 files changed
+312 -3

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
#ifndef _RTL837X_STORM_H_
#define _RTL837X_STORM_H_
#include <stdint.h>
#define STORM_TYPES 4
void storm_set(uint8_t port, __xdata uint8_t type, __xdata uint32_t rate, __xdata uint8_t pps) __banked;
void storm_off(uint8_t port, __xdata uint8_t type) __banked;
void storm_show(void) __banked;
#endif