Bez popisu

udp_hdr.h 474B

1234567891011121314
  1. #ifndef UDP_HDR_H
  2. #define UDP_HDR_H
  3. ///
  4. /// \brief The sniff_tcp struct contains the UDP header.
  5. /// We use the first two members to extract the src and dst port.
  6. /// Used to extract TCP transport layer information from a packet.
  7. struct sniff_udp {
  8. u_short th_sport; /* source port */
  9. u_short th_dport; /* destination port */
  10. u_short th_len ;
  11. u_short th_sum; /* checksum */
  12. };
  13. #endif // UDP_HDR_H