diff options
Diffstat (limited to 'src/user/app/ethdump/icmp.c')
-rw-r--r-- | src/user/app/ethdump/icmp.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/user/app/ethdump/icmp.c b/src/user/app/ethdump/icmp.c new file mode 100644 index 0000000..9c80a2d --- /dev/null +++ b/src/user/app/ethdump/icmp.c @@ -0,0 +1,8 @@ +#include "proto.h" +#include "util.h" + +void icmp_parse(const uint8_t *buf, size_t len) { + if (len < 4) return; + uint8_t type = buf[0]; + printf("ICMP type %u\n", type); +} |