projects
/
gapil.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Varie correzioni da Fabio Rossi, e relative aggiunte nei ringrazimenti per
[gapil.git]
/
sources
/
mygethost.c
diff --git
a/sources/mygethost.c
b/sources/mygethost.c
index 76cf84477eb5edd568c52c40bf3d6199b30dfb1a..11ae1cef264f4bbbfd36d9c071ccf3b9713af635 100644
(file)
--- a/
sources/mygethost.c
+++ b/
sources/mygethost.c
@@
-36,7
+36,7
@@
extern int h_errno;
#include "Gapil.h"
/*
#include "Gapil.h"
/*
- * Program myhost
+ * Program my
get
host
*
* Use gethostbyname and print results
*/
*
* Use gethostbyname and print results
*/
@@
-50,6
+50,18
@@
int main(int argc, char *argv[])
*/
int i;
struct hostent *data;
*/
int i;
struct hostent *data;
+
+ struct sock_level {
+ int level;
+ char * name;
+ } sock_level[] = {
+ SOL_SOCKET, "SOL_SOCKET",
+ SOL_IP, "SOL_IP",
+ SOL_TCP, "SOL_TCP",
+ SOL_IPV6, "SOL_IPV6",
+ SOL_ICMPV6, "SOL_ICMPV6"
+ };
+
char **alias;
char *addr;
char buffer[INET6_ADDRSTRLEN];
char **alias;
char *addr;
char buffer[INET6_ADDRSTRLEN];