Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 604365 Details for
Bug 847376
nm_utils_ip4_prefix_to_netmask fails to work with 24
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
[PATCH] integer out of range for L format code
0001-integer-out-of-range-for-L-format-code.patch (text/plain), 1.30 KB, created by
Mark Hamzy
on 2012-08-14 16:40:27 UTC
(
hide
)
Description:
[PATCH] integer out of range for L format code
Filename:
MIME Type:
Creator:
Mark Hamzy
Created:
2012-08-14 16:40:27 UTC
Size:
1.30 KB
patch
obsolete
>From 262bbc3085ea3779428940b82425acc605f40c87 Mon Sep 17 00:00:00 2001 >From: Mark Hamzy <hamzy@us.ibm.com> >Date: Tue, 14 Aug 2012 10:56:36 -0500 >Subject: [PATCH] integer out of range for L format code > >http://docs.python.org/library/ctypes.html#specifying-the-required-argument-types-function-prototypes >and http://docs.python.org/library/ctypes.html#return-types need to be followed for the call to >nm_utils.nm_utils_ip4_prefix_to_netmask. > >--- > pyanaconda/ui/gui/spokes/network.py | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/pyanaconda/ui/gui/spokes/network.py b/pyanaconda/ui/gui/spokes/network.py >index e0f3792..329be82 100644 >--- a/pyanaconda/ui/gui/spokes/network.py >+++ b/pyanaconda/ui/gui/spokes/network.py >@@ -619,6 +619,8 @@ class NetworkControlBox(): > self._set_device_info_value(dt, "route", gateway) > if dt == "wired": > prefix = ipv4cfg.get_addresses()[0].get_prefix() >+ nm_utils.nm_utils_ip4_prefix_to_netmask.argtypes = [ctypes.c_uint32] >+ nm_utils.nm_utils_ip4_prefix_to_netmask.restype = ctypes.c_uint32 > netmask = nm_utils.nm_utils_ip4_prefix_to_netmask(prefix) > netmask = socket.inet_ntoa(struct.pack('=L', netmask)) > self._set_device_info_value(dt, "subnet", netmask) >-- >1.7.10.4 >
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 847376
: 604365