mirror of
https://github.com/xcat2/xNBA.git
synced 2025-01-11 10:17:49 +00:00
Moved the basic struct sockaddr out of in.h.
This commit is contained in:
parent
467e9627cc
commit
e24a6cb525
31
src/include/gpxe/socket.h
Normal file
31
src/include/gpxe/socket.h
Normal 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 */
|
Loading…
x
Reference in New Issue
Block a user