ifinfo prints the value of if_hwassist. The value is hard to read since it is a bitmap for CSUM_* bits defined in src/sys/sys/mbuf.h. With this patch, ifinfo additionally prints the names of the CSUM_* bits.
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
| tools/tools/ifinfo/ifinfo.c | ||
|---|---|---|
| 199 | first is used as a boolean. Can't you use bool first instead of int first? | |
| tools/tools/ifinfo/ifinfo.c | ||
|---|---|---|
| 199 | bool seems not to be available as a data type when building a tool. | |
Comment Actions
Use CSUM_BITS string defined in sys/mbuf.h for output.
Use bool type, which is possible after adding #include <ctype.h>