iputil.h 475 B

12345678910111213
  1. #ifndef IPUTIL_H
  2. #define IPUTIL_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);
  10. #endif /* IPUTIL_H */