david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

Moved the basic struct sockaddr out of in.h.

This commit is contained in:
Michael Brown 2006-08-02 00:06:30 +00:00
parent 467e9627cc
commit e24a6cb525
1 changed files with 31 additions and 0 deletions

31
src/include/gpxe/socket.h Normal file
View File

@ -0,0 +1,31 @@
#ifndef _GPXE_SOCKET_H
#define _GPXE_SOCKET_H
/** @file
*
* Socket addresses
*
*/
/* Network address family numbers */
#define AF_INET 1
#define AF_INET6 2
/** A socket address family */
typedef uint16_t sa_family_t;
/**
* Generalized socket address structure
*
* This contains the fields common to socket addresses for all address
* families.
*/
struct sockaddr {
/** Socket address family
*
* This is an AF_XXX constant.
*/
sa_family_t sa_family;
};
#endif /* _GPXE_SOCKET_H */