* Removed superfluous prototypes from in.h. Minor cleanup.
* Fixed in6.h header. to be able to be compiled. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19552 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
da758f9fce
commit
c2c739ce33
@ -155,19 +155,8 @@ struct sockaddr_in {
|
|||||||
#define satosin(sa) ((struct sockaddr_in *)(sa))
|
#define satosin(sa) ((struct sockaddr_in *)(sa))
|
||||||
#define sintosa(sin) ((struct sockaddr *)(sin))
|
#define sintosa(sin) ((struct sockaddr *)(sin))
|
||||||
|
|
||||||
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*);
|
|
||||||
/* uint16 in_cksum (struct mbuf *, int); */
|
|
||||||
struct mbuf;
|
|
||||||
uint16_t in_cksum(struct mbuf *m, int len, int off);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif /* __cplusplus */
|
#endif
|
||||||
|
|
||||||
#endif /* NETINET_IN_H */
|
#endif /* NETINET_IN_H */
|
||||||
|
@ -20,8 +20,8 @@ struct in6_addr {
|
|||||||
|
|
||||||
struct sockaddr_in6 {
|
struct sockaddr_in6 {
|
||||||
uint8_t sin6_len;
|
uint8_t sin6_len;
|
||||||
sa_family_t sin6_family;
|
uint8_t sin6_family;
|
||||||
in_port_t sin6_port
|
uint16_t sin6_port;
|
||||||
uint32_t sin6_flowinfo;
|
uint32_t sin6_flowinfo;
|
||||||
struct in6_addr sin6_addr;
|
struct in6_addr sin6_addr;
|
||||||
uint32_t sin6_scope_id;
|
uint32_t sin6_scope_id;
|
||||||
|
Loading…
Reference in New Issue
Block a user