interface-statistics

Synopsis

(interface-statistis interface)

Parameters

  • interface

Description

Side Effects

Return Value

This procedure returns a dotted pair of two numbers, the car component reports the number of packets received, the cdr component the number of packets reported to be dropped. On macOS the number of dropped packets is absolute, whereas on Linux the number of dropped packets is reset to 0 after each retrieval.

See Also

Example

> (define i (interface-attach "en0")) (interface-statistics i)
i
> (0 . 0)
> (interface-statistics i)
(5365 . 5353)
>