README.sita 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. The following instructions apply if you have a Linux platform and want
  2. libpcap to support the 'ACN' WAN/LAN router product from SITA
  3. (http://www.sita.aero)
  4. This might also work on non-Linux Unix-compatible platforms, but that
  5. has not been tested.
  6. See also the libpcap INSTALL.txt file for further libpcap configuration
  7. options.
  8. These additions/extensions have been made to PCAP to allow it to
  9. capture packets from a SITA ACN device (and potentially others).
  10. To enable its support you need to ensure that the distribution has
  11. a correct configure.ac file; that can be created if neccessay by
  12. using the normal autoconf procedure of:
  13. aclocal
  14. autoconf
  15. autoheader
  16. automake
  17. Then run configure with the 'sita' option:
  18. ./configure --with-sita
  19. Applications built with libpcap configured in this way will only detect SITA
  20. ACN interfaces and will not capture from the native OS packet stream.
  21. The SITA extension provides a remote datascope operation for capturing
  22. both WAN and LAN protocols. It effectively splits the operation of
  23. PCAP into two halves. The top layer performs the majority of the
  24. work, but interfaces via a TCP session to remote agents that
  25. provide the lower layer functionality of actual sniffing and
  26. filtering. More detailed information regarding the functions and
  27. inter-device protocol and naming conventions are described in detail
  28. in 'pcap-sita.html'.
  29. pcap_findalldevs() reads the local system's /etc/hosts file looking
  30. for host names that match the format of IOP type devices. ie. aaa_I_x_y
  31. and then queries each associated IP address for a list of its WAN and
  32. LAN devices. The local system the aggregates the lists obtained from
  33. each IOP, sorts it, and provides it (to Wireshark et.al) as the
  34. list of monitorable interfaces.
  35. Once a valid interface has been selected, pcap_open() is called
  36. which opens a TCP session (to a well known port) on the target IOP
  37. and tells it to start monitoring.
  38. All captured packets are then forwarded across that TCP session
  39. back to the local 'top layer' for forwarding to the actual
  40. sniffing program (wireshark...)
  41. Note that the DLT_SITA link-layer type includes a proprietary header
  42. that is documented as part of the SITA dissector of Wireshark and is
  43. also described in 'pcap-sita.html' for posterity sake.
  44. That header provides:
  45. - Packet direction (in/out) (1 octet)
  46. - Link layer hardware signal status (1 octet)
  47. - Transmit/Receive error status (2 octets)
  48. - Encapsulated WAN protocol ID (1 octet)