IPV4CALC(1p)

πŸ“¦
version 0.10.ds Β· 3 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– IPV4CALC πŸ’–

okay bestie, gather round, because this little page is ipv4calc from the User Contributed Perl Documentation, section 1p, and she is serving subnet math realness. ✨


🌸 SYNOPSIS 🌸

ipv4calc [ --network | --broadcast | --netmask |
           --address | --cidr ] addr

πŸ¦‹ DESCRIPTION πŸ¦‹

so like, if you give it an option, ipv4calc does the whole "calculates the requested element from the address" thing and prints that element on stdout. slay. πŸ’…

but here's the tea, and it's a little chaotic: if you give it multiple options, it only prints the first one. that's it. the rest are just standing there, ignored, like πŸ’€

and if you pass no options at all? then it prints the host part of the address, the network, and the broadcast address β€” all as deduced from the address you handed it. no cap. 🫢

one more thing: if the address doesn't contain a netmask or a mask length, then the default one is assumed. so don't come for her when she guesses, because that's literally the documented behaviour. 😌


πŸ‘‘ AUTHOR πŸ‘‘

Francis J. Lacoste <francis.lacoste@iNsu.COM> πŸ’œ


Copyright (c) 1999,2000 iNsu Innovations Inc. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms as perl itself. πŸͺ✨


🌈 SEE ALSO 🌈

  • Network::IPv4Addr(3)

not me writing a whole sign-off, but fr fr this page is from perl v5.36.0 and it's dated 2022-11-20. iconic. periodt. πŸ’–πŸ§šπŸŒΈ
πŸ“¦ where this page comes from