### Tool 180: SNTP client obtaining time

### Description:

      This tool queries a NTP/SNTP server in order to obtain time.
      We use SNTP because it is sufficient for requesting time.
      Displayed time is value of field Transmit_Timestamp from server,
      without adding the trip delay from server to client. So time is not
      really accurate, but it should be sufficient for most usages.
      Then, it can be used to set local clock (for example, under Unix,
      "date --set result_of_netwox_180_-u").

      Parameter --dst-ip is the address of remote host/server.
      Parameter --dst-port is the port number where to connect.
      Optional parameter --src-ip defines the local IP address to use.
      Optional parameter --src-port defines the local port number to use.
      Optional parameter --ip4opts permits to add IP4 options encoded as
      mixed.
      Optional parameter --ip6exts permits to add IP6 options encoded as
      mixed (first byte is the next header number).
      Optional parameters --device, --src-eth and --dst-eth permits to
      create a virtual client using fake addresses (in this case, tool have
      to be run with admin privilege in order to sniff and spoof at
      Ethernet level).

      Set --src-port to a random value greater than 1024 to use it
      without admin privilege.

### Synonyms:

date

### Usage:

netwox 180 -i ip [-r|+r] [-u|+u] [-h|+h] [-s|+s] [-n|+n] [-d device] [-E eth] [-e eth] [-I ip] [-P port] [-p port] [-o ip4opts] [-O ip6exts] [-V uint32] [-T uint32]

### Parameters:

parameter | description | example
`-i|--dst-ip ip` | destination IP address | 5.6.7.8
`-r|--disp-rfc822|+r|--no-disp-rfc822` | display rfc822 date | This boolean is set. Use + or --no- to unset it.
`-u|--disp-unixdate|+u|--no-disp-unixdate` | display unix date(1) format |
`-h|--disp-human|+h|--no-disp-human` | display human readable time |
`-s|--disp-sec|+s|--no-disp-sec` | display seconds |
`-n|--disp-secnsec|+n|--no-disp-secnsec` | display seconds and nanoseconds |
`-d|--device device` | device name | Eth0
`-E|--src-eth eth` | source ethernet address | 0:2:3:4:5:6
`-e|--dst-eth eth` | destination ethernet address | 0:8:9:a:b:c
`-I|--src-ip ip` | source IP address | 192.168.100.200
`-P|--src-port port` | source port number | 0
`-p|--dst-port port` | destination port number | 123
`-o|--ip4opts ip4opts` | IPv4 options |
`-O|--ip6exts ip6exts` | IPv6 extensions |
`-V|--version uint32` | protocol version | 3
`-T|--timeout uint32` | timeout in milliseconds | 2000

### Examples:

netwox 180 -i "5.6.7.8"
netwox 180 --dst-ip "5.6.7.8"