12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #ifndef _NET_IF_SHAPER_H
- #define _NET_IF_SHAPER_H 1
- #include <features.h>
- #include <sys/types.h>
- #include <net/if.h>
- #include <sys/ioctl.h>
- __BEGIN_DECLS
- #define SHAPER_QLEN 10
- #define SHAPER_LATENCY (5 * HZ)
- #define SHAPER_MAXSLIP 2
- #define SHAPER_BURST (HZ / 50)
- #define SHAPER_SET_DEV 0x0001
- #define SHAPER_SET_SPEED 0x0002
- #define SHAPER_GET_DEV 0x0003
- #define SHAPER_GET_SPEED 0x0004
- struct shaperconf
- {
- u_int16_t ss_cmd;
- union
- {
- char ssu_name[14];
- u_int32_t ssu_speed;
- } ss_u;
- #define ss_speed ss_u.ssu_speed
- #define ss_name ss_u.ssu_name
- };
- __END_DECLS
- #endif
|