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 294388 Details for
Bug 432070
bad definition of ServerIPAddress makes setup-ds-admin.pl segfault
[?]
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.
program to reproduce the problem
mytest.c (text/plain), 962 bytes, created by
Rich Megginson
on 2008-02-08 18:00:32 UTC
(
hide
)
Description:
program to reproduce the problem
Filename:
MIME Type:
Creator:
Rich Megginson
Created:
2008-02-08 18:00:32 UTC
Size:
962 bytes
patch
obsolete
>#include <stdio.h> >#include <nspr.h> >#include <prnetdb.h> > >int >main(int argc, char *argv[]) >{ > char *ip = argv[1]; > char systemInfo[SYS_INFO_BUFFER_LENGTH]; > char buf[PR_NETDB_BUF_SIZE]; > PRIntn index; > PRNetAddr netaddr, netaddr1; > PRStatus pr_st; > PRHostEnt hostentry; > > printf("Given IP address is [%s]\n", ip); > PR_StringToNetAddr(ip, &netaddr); > printf("Netaddr is [%d]\n", netaddr.inet.ip); > pr_st = PR_GetSystemInfo(PR_SI_HOSTNAME, systemInfo, SYS_INFO_BUFFER_LENGTH); > > printf("Hostname is [%s]\n", systemInfo); > pr_st = PR_GetHostByName(systemInfo, buf, PR_NETDB_BUF_SIZE, &hostentry); > > printf("buf is [%s] h_name is [%s]\n", buf, hostentry.h_name); > index = 0; > while (index = PR_EnumerateHostEnt(index, &hostentry, 8000, &netaddr1)) { > printf("Netaddr1 is [%d]\n", netaddr1.inet.ip); > printf("buf is [%s] h_name is [%s]\n", buf, hostentry.h_name); > if (netaddr1.inet.ip == netaddr.inet.ip) return 1; > } > > return 0; >} >
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 Raw
Actions:
View
Attachments on
bug 432070
: 294388