pi_blink_ip icon indicating copy to clipboard operation
pi_blink_ip copied to clipboard

[suggestion] determine what to blink out based on subnet mask

Open jhollowe opened this issue 3 years ago • 1 comments

I'm not sure how easy it would be to get the subnet mask, but it would be cool if you use that to determine how much of the IP to blink out. You would probably want to round down the subnet so any partial-octet mask (i.e. /18) would blink out any variable octet (i.e. the last 2 octets). For example, if my subnet mask is 255.255.255.0 (/24), you could only blink out the last octet.

It would also be cool to have a mode argument that allows using the existing logic, subnet mask based logic, and a logic that blinks out the entire IP.

jhollowe avatar Oct 07 '20 19:10 jhollowe

Send me a pull request and I might integrate it.

On Wed, Oct 7, 2020 at 4:22 PM John Hollowell [email protected] wrote:

I'm not sure how easy it would be to get the subnet mask, but it would be cool if you use that to determine how much of the IP to blink out. You would probably want to round down the subnet so any partial-octet mask (i.e. /18) would blink out any variable octet (i.e. the last 2 octets). For example, if my subnet mask is 255.255.255.0 (/24), you could only blink out the last octet.

It would also be cool to have a mode argument that allows using the existing logic, subnet mask based logic, and a logic that blinks out the entire IP.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Matthias-Wandel/pi_blink_ip/issues/9, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOSCO3HJ2Z4KDZX2QKYGEG3SJS5XXANCNFSM4SHZYZ2A .

Matthias-Wandel avatar Oct 07 '20 21:10 Matthias-Wandel