Fixed the build of our netstack.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8857 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -14,6 +14,25 @@ typedef struct iovec {
|
|||||||
} iovec;
|
} iovec;
|
||||||
|
|
||||||
|
|
||||||
|
enum uio_rw { UIO_READ, UIO_WRITE };
|
||||||
|
|
||||||
|
/* Segment flag values. */
|
||||||
|
enum uio_seg {
|
||||||
|
UIO_USERSPACE, /* from user data space */
|
||||||
|
UIO_SYSSPACE /* from system space */
|
||||||
|
};
|
||||||
|
|
||||||
|
struct uio {
|
||||||
|
struct iovec *uio_iov; /* pointer to array of iovecs */
|
||||||
|
int uio_iovcnt; /* number of iovecs in array */
|
||||||
|
off_t uio_offset; /* offset into file this uio corresponds to */
|
||||||
|
size_t uio_resid; /* residual i/o count */
|
||||||
|
enum uio_seg uio_segflg; /* see above */
|
||||||
|
enum uio_rw uio_rw; /* see above */
|
||||||
|
// struct proc *uio_procp; /* process if UIO_USERSPACE */
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -3,6 +3,9 @@
|
|||||||
|
|
||||||
|
|
||||||
struct ifnet;
|
struct ifnet;
|
||||||
|
struct uio;
|
||||||
|
|
||||||
|
int uiomove(char *cp, int n, struct uio *uio);
|
||||||
|
|
||||||
void in_if_detach(struct ifnet *ifp);
|
void in_if_detach(struct ifnet *ifp);
|
||||||
// this removes all IP related references for this interface (route, address)
|
// this removes all IP related references for this interface (route, address)
|
||||||
|
|||||||
Reference in New Issue
Block a user