]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
general-functions.pl: Drop unused getccdbc function
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 23 Mar 2024 14:38:48 +0000 (15:38 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 27 Apr 2024 17:33:40 +0000 (19:33 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/cfgroot/general-functions.pl

index e334c6972c98c78d36798975ec1b2111736fe12c..d65955a033abb9183b1872c62063728fbd495385 100644 (file)
@@ -440,18 +440,6 @@ sub getnetworkip {
        return &Network::get_netaddress($arg);
 }
 
-sub getccdbc
-{
-       #Gets: IP in Form ("192.168.0.0/24")
-       #Gives: Broadcastaddress of network
-       my $ccdnet=$_;
-       my ($ccdip,$ccdsubnet) = split "/",$ccdnet;
-       my $ip_address_binary = inet_aton( $ccdip );
-       my $netmask_binary    = ~pack("N", (2**(32-$ccdsubnet))-1);
-       my $broadcast_address  = inet_ntoa( $ip_address_binary | ~$netmask_binary );
-       return $broadcast_address;
-}
-
 sub ip2dec  {
        return &Network::ip2bin(shift);
 }