included more header files in nwad-skad.c

This commit is contained in:
hyung-hwan 2018-03-07 13:26:21 +00:00
parent 9d87420bf6
commit 598f4f0457

View File

@ -64,6 +64,12 @@
# if defined(HAVE_SYS_UN_H) # if defined(HAVE_SYS_UN_H)
# include <sys/un.h> # include <sys/un.h>
# endif # endif
# if defined(HAVE_NETPACKET_PACKET_H)
# include <netpacket/packet.h>
# endif
# if defined(HAVE_NET_IF_DL_H)
# include <net/if_dl.h>
# endif
# if defined(QSE_SIZEOF_STRUCT_SOCKADDR_IN6) && (QSE_SIZEOF_STRUCT_SOCKADDR_IN6 <= 0) # if defined(QSE_SIZEOF_STRUCT_SOCKADDR_IN6) && (QSE_SIZEOF_STRUCT_SOCKADDR_IN6 <= 0)
# undef AF_INET6 # undef AF_INET6
@ -286,6 +292,14 @@ int qse_skadsize (const qse_skad_t* skad)
} }
#endif #endif
#if defined(AF_PACKET)
case AF_PACKET:
{
struct sockaddr_ll ll;
return QSE_SIZEOF(ll);
}
#endif
#if defined(AF_UNIX) #if defined(AF_UNIX)
case AF_UNIX: case AF_UNIX:
{ {