X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/0b4e3aa066abc0728aacb4bbeb86f53f9737156e..c0fea4742e91338fffdcf79f86a7c1d5e2b97eb1:/bsd/net/raw_cb.h diff --git a/bsd/net/raw_cb.h b/bsd/net/raw_cb.h index 3224741d2..478cdd571 100644 --- a/bsd/net/raw_cb.h +++ b/bsd/net/raw_cb.h @@ -56,9 +56,11 @@ #ifndef _NET_RAW_CB_H_ #define _NET_RAW_CB_H_ +#include #include +#ifdef PRIVATE /* * Raw protocol interface control block. Used * to tie a socket to the generic raw interface. @@ -79,19 +81,20 @@ struct rawcb { */ #define RAWSNDQ 8192 #define RAWRCVQ 8192 +#endif /* PRIVATE */ -#ifdef KERNEL +#ifdef KERNEL_PRIVATE extern LIST_HEAD(rawcb_list_head, rawcb) rawcb_list; -int raw_attach __P((struct socket *, int)); -void raw_ctlinput __P((int, struct sockaddr *, void *)); -void raw_detach __P((struct rawcb *)); -void raw_disconnect __P((struct rawcb *)); -void raw_init __P((void)); -void raw_input __P((struct mbuf *, - struct sockproto *, struct sockaddr *, struct sockaddr *)); +int raw_attach(struct socket *, int); +void raw_ctlinput(int, struct sockaddr *, void *); +void raw_detach(struct rawcb *); +void raw_disconnect(struct rawcb *); +void raw_init(void); +void raw_input(struct mbuf *, + struct sockproto *, struct sockaddr *, struct sockaddr *); extern struct pr_usrreqs raw_usrreqs; -#endif +#endif KERNEL_PRIVATE #endif