Sponsored Content
Top Forums Programming Host to IP Source Code in C - Questions! Please Help Post 302246604 by MrC on Tuesday 14th of October 2008 03:25:35 AM
Old 10-14-2008
If the library name is not listed in

man getaddrinfo

you can dump the symbol table of libraries to find what you are looking for. In this case, libc shows:

Code:
$ nm /lib/libc.so|grep getaddrinfo
00089a30 T _getaddrinfo
00089a30 W getaddrinfo

which tells us getaddrinfo is in the Text section of libc.
MrC
 

9 More Discussions You Might Find Interesting

1. Solaris

Tar files, transfer to remote host and delelte source

Hi, I´m having a problem here. I have a directory that holds many subdirs and files (by many I mean MANY thousands). What I want to do is make blocks of these files and transfer them block by block to a remote host; but once a given file is already placed in the remote host, the script must... (0 Replies)
Discussion started by: Dago
0 Replies

2. Linux

source code for linux

Hi , where can i get free source code for LINUX commands , OS , system calls etc. Thanks Naren (2 Replies)
Discussion started by: naren_chella
2 Replies

3. Programming

New to C... questions about this code... ADTs...

Hi, In a file called itemADT.c I have specified the itemType data type to contain a listADT (having already written this library) and an integer, which will eventually represent the no. of times the word that is stored in the listADT has occurred (when I do this, and write code to insert... (2 Replies)
Discussion started by: eva
2 Replies

4. Shell Programming and Scripting

Linux source code

Unix is written in C. From where u can see the source code of unix or linux (1 Reply)
Discussion started by: pritish.sas
1 Replies

5. UNIX for Dummies Questions & Answers

Where can i get unix source code?

Sir please tell me where can i get source code for some unix kernal and shell also. (1 Reply)
Discussion started by: VIPUL15
1 Replies

6. Shell Programming and Scripting

Block of code replacement in Java source code through Unix script

Hi, I want to remove the following code from Source files (or replace the code with empty.) from all the source files in given directory. finally { if (null != hibernateSession && hibernateSession.isOpen()) { //hibernateSession.close(); } } It would be great if the script has... (2 Replies)
Discussion started by: hareeshram
2 Replies

7. Linux

Source code

I need the source code of fedora. plz plz plz help me........... (1 Reply)
Discussion started by: neh
1 Replies

8. Shell Programming and Scripting

Connect to target host from Source host.

Hi All, Need to connect to target host and execute a command and connect back to source host to continue with next set of command execution. Is there a utility/command using which we can connect to target host ? Please suggest. Note: Netezza database is instaled on Linux server. ... (4 Replies)
Discussion started by: Nagaraja Akkiva
4 Replies

9. UNIX for Dummies Questions & Answers

Source code

hii... i am a biginner....and i have linux source code ,downloaded from some website ,a compressed file on windows and dont know how do compile them..... (4 Replies)
Discussion started by: M K Raju
4 Replies
gai.conf(5)							File Formats Manual						       gai.conf(5)

NAME
gai.conf - getaddrinfo(3) configuration file DESCRIPTION
A call to getaddrinfo(3) might return multiple answers. According to RFC 3484 these answers must be sorted so that the answer with the highest success rate is first in the list. The RFC provides an algorithm for the sorting. The static rules are not always adequate, though. For this reason the RFC also requires that system administrators get the chance to dynamically change the sorting. For the glibc implementation this can be achieved with the /etc/gai.conf file. Each line in the configuration file consists of a keyword and its parameters. White spaces in any place are ignored. Lines starting with `#' are comments and are ignored. The keywords currently recognized are: label netmask precedence The value is added to the label table used in the RFC 3484 sorting. If any label definition is present in the configuration file is present the default table is not used. All the label definitions of the default table which are to be maintained have to be dupli- cated. Following the keyword the line has to contain a network mask and a label value. precedence netmask precedence This keyword is similar to label but instead the value is added to the precedence table as specified in RFC 3484. Once again, the presence of a single precedence line in the configuration file causes the default table to not be used. reload <yes|no> This keyword control whether a process checks whether the configuration file has been changes since the last time it was read. If the value is `yes' the file is re-read. This might cause problems in multi-threaded applications and is generally a bad idea. The default is `no'. scopev4 mask value Add another rule to the RFC 3484 scope table for IPv4 address. By default the scope IDs described in section 3.2 in RFC 3438 are used. Changing these defaults should hardly ever be necessary. EXAMPLE
The default table according to RFC 3484 would be specified with the following configuration file: label ::1/128 0 label ::/0 1 label 2002::/16 2 label ::/96 3 label ::ffff:0:0/96 4 precedence ::1/128 50 precedence ::/0 40 precedence 2002::/16 30 precedence ::/96 20 precedence ::ffff:0:0/96 10 FILES
/etc/gai.conf AUTHOR
Ulrich Drepper <drepper redhat com> SEE ALSO
getaddrinfo(3), RFC 3484 gai.conf May 2006 gai.conf(5)
All times are GMT -4. The time now is 11:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy