| xj | b04a402 | 2021-11-25 15:01:52 +0800 | [diff] [blame] | 1 | #ifndef __MTR_API |
| 2 | #define __MTR_API | ||||
| 3 | |||||
| 4 | #define NIPQUAD(addr) \ | ||||
| 5 | ((unsigned char *)&addr)[3], \ | ||||
| 6 | ((unsigned char *)&addr)[2], \ | ||||
| 7 | ((unsigned char *)&addr)[1], \ | ||||
| 8 | ((unsigned char *)&addr)[0] | ||||
| 9 | #define NIPHALF(addr) \ | ||||
| 10 | ((unsigned short *)&addr)[1], \ | ||||
| 11 | ((unsigned short *)&addr)[0] | ||||
| 12 | |||||
| 13 | int SetMtrEntry(struct mtr_args *opt, unsigned int cmd); | ||||
| 14 | int MtrGetAllEntries(struct mtr_list_args *opt); | ||||
| 15 | |||||
| 16 | #endif | ||||