Mercurial > ecos
comparison packages/net/common/current/src/getproto.c @ 235:f9db7cb0692e
Pedantic include of <errno.h>
| author | gthomas |
|---|---|
| date | Wed, 10 Jul 2002 15:26:27 +0000 |
| parents | e0c0827131d1 |
| children | db3e0a2fda2f |
comparison
equal
deleted
inserted
replaced
| 234:d397603b9e4b | 235:f9db7cb0692e |
|---|---|
| 29 // | 29 // |
| 30 //========================================================================== | 30 //========================================================================== |
| 31 | 31 |
| 32 #include <sys/param.h> | 32 #include <sys/param.h> |
| 33 #include <netdb.h> | 33 #include <netdb.h> |
| 34 #include <errno.h> | |
| 34 | 35 |
| 35 static struct protoent protocols[] = { | 36 static struct protoent protocols[] = { |
| 36 { "ip", 0}, // internet protocol, pseudo protocol number | 37 { "ip", 0}, // internet protocol, pseudo protocol number |
| 37 { "icmp", 1}, // internet control message protocol | 38 { "icmp", 1}, // internet control message protocol |
| 38 { "igmp", 2}, // Internet Group Management | 39 { "igmp", 2}, // Internet Group Management |
