Skip to content

Instantly share code, notes, and snippets.

Johannes Petz PetzJohannes

Block or report user

Report or block PetzJohannes

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
PetzJohannes / ipnet-valid.js
Created Dec 22, 2015
IP-Network validation scripts
View ipnet-valid.js
// Der Parameter muss das Netz mit "/" als Trennung zur Subnetmask haben, Subnetmask in Binaer angeben
// String des Net Parameter ohne Leerzeichen uebergeben!!!
function ipnetworkvalid (net) {
// Trennen von Netz-IP und Subnetmask
net = net.split("/");
// Netzwerk-IP
netip = net[0];
// Subnetmask
mask = net[1];
// Segmente aufteilen
You can’t perform that action at this time.