1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

bring the netnatm usrreq's also up to speed on the addition of the

struct proc argument to the usrreq's routines...
This commit is contained in:
thib 2008-05-27 19:57:45 +00:00
parent 2792bd1355
commit 9f6c2f975f
2 changed files with 5 additions and 19 deletions

View File

@ -1,4 +1,4 @@
/* $OpenBSD: natm.c,v 1.9 2007/12/09 21:36:40 hshoexer Exp $ */
/* $OpenBSD: natm.c,v 1.10 2008/05/27 19:57:45 thib Exp $ */
/*
*
@ -67,17 +67,8 @@ u_long natm0_recvspace = 16*1024;
* user requests
*/
#if defined(__NetBSD__)
int natm_usrreq(so, req, m, nam, control)
#elif defined(__OpenBSD__) || defined(__FreeBSD__)
int natm_usrreq(so, req, m, nam, control)
#endif
struct socket *so;
int req;
struct mbuf *m, *nam, *control;
#if defined(__NetBSD__)
struct proc *p;
#endif
int natm_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam,
struct mbuf *control, struct proc *p)
{
int error = 0, s, s2;
struct natmpcb *npcb;

View File

@ -1,4 +1,4 @@
/* $OpenBSD: natm.h,v 1.6 2002/03/14 01:27:12 millert Exp $ */
/* $OpenBSD: natm.h,v 1.7 2008/05/27 19:57:45 thib Exp $ */
/*
*
@ -138,13 +138,8 @@ void npcb_free(struct natmpcb *, int);
struct natmpcb *npcb_add(struct natmpcb *, struct ifnet *, int, int);
/* natm.c */
#if defined(__NetBSD__)
int natm_usrreq(struct socket *, int, struct mbuf *,
struct mbuf *, struct mbuf *, struct proc *);
#elif defined(__OpenBSD__) || defined(FreeBSD)
int natm_usrreq(struct socket *, int, struct mbuf *,
struct mbuf *, struct mbuf *);
#endif
struct mbuf *, struct mbuf *, struct proc *);
int natm0_sysctl(int *, u_int, void *, size_t *, void *, size_t);
int natm5_sysctl(int *, u_int, void *, size_t *, void *, size_t);
void natmintr(void);