Forgot to commit these... Should fix network stuff build issues.
Add again the load_driver_symbols() export into our KernelExport.h, as it's expected by many kernel add-ons (drivers, modules)... the network ones, for a start. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2672 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
+12
-21
@@ -99,11 +99,7 @@ struct sockaddr_in {
|
||||
#define IP_ADD_MEMBERSHIP 12 /* ip_mreq; add an IP group membership */
|
||||
#define IP_DROP_MEMBERSHIP 13 /* ip_mreq; drop an IP group membership */
|
||||
|
||||
#ifdef _KERNEL_MODE
|
||||
#define __IPADDR(x) ((uint32) htonl((uint32)(x)))
|
||||
#else
|
||||
#define __IPADDR(x) ((uint32)(x))
|
||||
#endif
|
||||
|
||||
#define INADDR_ANY __IPADDR(0x00000000)
|
||||
#define INADDR_LOOPBACK __IPADDR(0x7f000001)
|
||||
@@ -116,9 +112,7 @@ struct sockaddr_in {
|
||||
|
||||
#define IN_LOOPBACKNET 127 /* official! */
|
||||
|
||||
#ifndef _KERNEL_MODE
|
||||
#define INADDR_NONE __IPADDR(0xffffffff)
|
||||
#endif
|
||||
|
||||
#define IN_CLASSA(i) (((uint32)(i) & __IPADDR(0x80000000)) == \
|
||||
__IPADDR(0x00000000))
|
||||
@@ -154,25 +148,22 @@ struct sockaddr_in {
|
||||
|
||||
#define IP_MAX_MEMBERSHIPS 20
|
||||
|
||||
#ifdef _KERNEL_MODE
|
||||
/* some helpful macro's :) */
|
||||
#define in_hosteq(s,t) ((s).s_addr == (t).s_addr)
|
||||
#define in_nullhost(x) ((x).s_addr == INADDR_ANY)
|
||||
#define satosin(sa) ((struct sockaddr_in *)(sa))
|
||||
#define sintosa(sin) ((struct sockaddr *)(sin))
|
||||
/* some helpful macro's :) */
|
||||
#define in_hosteq(s,t) ((s).s_addr == (t).s_addr)
|
||||
#define in_nullhost(x) ((x).s_addr == INADDR_ANY)
|
||||
#define satosin(sa) ((struct sockaddr_in *)(sa))
|
||||
#define sintosa(sin) ((struct sockaddr *)(sin))
|
||||
|
||||
struct ifnet; // forward declaration
|
||||
struct ifnet; // forward declaration
|
||||
|
||||
/* Prototypes... */
|
||||
int in_broadcast (struct in_addr, struct ifnet *);
|
||||
int in_canforward (struct in_addr);
|
||||
int in_localaddr (struct in_addr);
|
||||
void in_socktrim (struct sockaddr_in*);
|
||||
/* Prototypes... */
|
||||
int in_broadcast (struct in_addr, struct ifnet *);
|
||||
int in_canforward (struct in_addr);
|
||||
int in_localaddr (struct in_addr);
|
||||
void in_socktrim (struct sockaddr_in*);
|
||||
/* uint16 in_cksum (struct mbuf *, int); */
|
||||
uint16 in_cksum(struct mbuf *m, int len, int off);
|
||||
uint16 in_cksum(struct mbuf *m, int len, int off);
|
||||
|
||||
#endif /* _KERNEL_MODE */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
Reference in New Issue
Block a user