iputil.h 453 B

123456789101112
  1. #pragma once
  2. #include "defines.h"
  3. ssize_t inet_add_option(uint16_t eth_type, void *buf, size_t len,
  4. int proto, const void *optbuf, size_t optlen);
  5. void inet_checksum(uint16_t eth_type, void *buf, size_t len);
  6. int raw_ip_opt_parse(int argc, char *argv[], uint8_t *type, uint8_t *len,
  7. uint8_t *buff, int buff_len);
  8. int raw_ip6_opt_parse(int argc, char *argv[], uint8_t *proto, int *len,
  9. uint8_t *buff, int buff_len);