FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian dpkg

 
 
LinkBack Thread Tools
 
Old 09-22-2011, 11:59 AM
Radek Vykydal
 
Default Accept dotted-quad netmask for IPv4 in loader UI (#719578)

Resolves: rhbz#719578

Port from master.
---
loader2/net.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/loader2/net.c b/loader2/net.c
index dc84983..7769191 100644
--- a/loader2/net.c
+++ b/loader2/net.c
@@ -91,11 +91,15 @@ char *nfsServerPrompt =
static void cidrCallback(newtComponent co, void * dptr) {
struct intfconfig_s * data = dptr;
int cidr, upper = 0;
+ struct in_addr addr;

if (co == data->cidr4Entry) {
if (data->cidr4 == NULL && data->ipv4 == NULL)
return;

+ if (inet_pton(AF_INET, data->cidr4, &addr) >= 1)
+ return;
+
cidr = atoi(data->cidr4);
upper = 32;
} else if (co == data->cidr6Entry) {
--
1.7.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 07:27 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org