Univention Bugzilla – Attachment 6533 Details for
Bug 37326
Umrechnung Netzmaske --> CIDR falsch in UMC Network settings angezeigt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for CIDR calculation
37326.patch (text/plain), 709 bytes, created by
Florian Best
on 2014-12-15 18:54:00 CET
(
hide
)
Description:
patch for CIDR calculation
Filename:
MIME Type:
Creator:
Florian Best
Created:
2014-12-15 18:54:00 CET
Size:
709 bytes
patch
obsolete
>diff --git a/ucs-4.0-0/base/univention-system-setup/umc/js/setup/types.js b/ucs-4.0-0/base/univention-system-setup/umc/js/setup/types.js >index b94510f..bf0c9b6 100644 >--- a/ucs-4.0-0/base/univention-system-setup/umc/js/setup/types.js >+++ b/ucs-4.0-0/base/univention-system-setup/umc/js/setup/types.js >@@ -41,7 +41,13 @@ define([ > return parseInt(nm, 10); > } > var num = 0; >- array.forEach(array.map(nm.split('.'), function(i) { return parseInt((parseInt(i, 10) + 1) / 32, 10); }), function(x) { num += x; }); >+ array.forEach(nm.split('.'), function(i) { >+ i = parseInt(i, 10); >+ for (;i> 0; i = (i <<1) % 256) { >+ num++; >+ } >+ }); >+ > return num; > }, > interfaceTypeLabels: {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 37326
: 6533