Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isSleeping() ARP Check Addition and ffMonitor() Updates For Client Broadcasts #660

Closed
wants to merge 4 commits into from

Commits on Aug 29, 2017

  1. ARP Table Check For Slow Clients

    Updated isSleeping to check the Pi's ARP table for a client's MAC address.  If a client's MAC address is present in the ARP table *and* the client has responded to an ICMP ping request in the past 30 seconds, the client is marked as not sleeping.
    
    Additionally, added logging statements to record when a client transitions from awake to sleep.
    pmaag committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    5d30ceb View commit details
    Browse the repository at this point in the history
  2. ffMonitor Updates Client Status

    Updated the ffMonitor function to look for "i-can-play-ffm-udp" and "i-cannot-play-ffm-udp" from a client.  If either of those broadcast packets are received, we mark the client as awake.
    
    This will help with older iOS hardware not responding via ICMP when their CPU gets busy.  iOS appears to stop replying to ICMP with high CPU, however packet captures have shown that the ForeFlight heartbeat broadcast packets are still sent during the high CPU times.
    pmaag committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    52043b5 View commit details
    Browse the repository at this point in the history
  3. Revert "ffMonitor Updates Client Status"

    This reverts commit 52043b5.
    pmaag committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    be690f8 View commit details
    Browse the repository at this point in the history
  4. ffMonitor Updates Client Status

    Updated the ffMonitor function to look for "i-can-play-ffm-udp" and "i-want-to-play-ffm-udp" from a client.  If either of those broadcast packets are received, we mark the client as awake.
    
    This will help with older iOS hardware not responding via ICMP when their CPU gets busy.  iOS appears to stop replying to ICMP with high CPU, however packet captures have shown that the ForeFlight heartbeat broadcast packets are still sent during the high CPU times.
    pmaag committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    f40287b View commit details
    Browse the repository at this point in the history