Skip to content

Instantly share code, notes, and snippets.

View dyp2000's full-sized avatar
🏠
Working from home

Dennis Y. Parygin dyp2000

🏠
Working from home
  • RUSSIA, Yekaterinburg
View GitHub Profile
@jcomellas
jcomellas / netutil.erl
Created February 22, 2011 23:17
Functions to obtain IP addresses from subnets in Erlang.
-module(netutil).
-author('Juan Jose Comellas <juanjo@comellas.org>').
%% API
-export([get_local_ip_from_subnet/1, get_ip_from_subnet/2,
cidr_network/1, cidr_netmask/1]).
%% @type ipv4() = {integer(), integer(), integer(), integer()}