SCCS-vsn: sys/net/if_sl.c 7.22
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)if_sl.c 7.21 (Berkeley) %G%
+ * @(#)if_sl.c 7.22 (Berkeley) %G%
#if NSL > 0
#include "param.h"
#if NSL > 0
#include "param.h"
#include "mbuf.h"
#include "buf.h"
#include "dk.h"
#include "mbuf.h"
#include "buf.h"
#include "dk.h"
#include "tty.h"
#include "kernel.h"
#include "conf.h"
#include "tty.h"
#include "kernel.h"
#include "conf.h"
#include "if.h"
#include "if_types.h"
#include "netisr.h"
#include "route.h"
#if INET
#include "if.h"
#include "if_types.h"
#include "netisr.h"
#include "route.h"
#if INET
-#include "../netinet/in.h"
-#include "../netinet/in_systm.h"
-#include "../netinet/in_var.h"
-#include "../netinet/ip.h"
+#include "netinet/in.h"
+#include "netinet/in_systm.h"
+#include "netinet/in_var.h"
+#include "netinet/ip.h"
+#else
+Huh? Slip without inet?
#endif
#include "machine/mtpr.h"
#endif
#include "machine/mtpr.h"
dev_t dev;
register struct tty *tp;
{
dev_t dev;
register struct tty *tp;
{
+ struct proc *p = curproc; /* XXX */
register struct sl_softc *sc;
register int nsl;
int error;
register struct sl_softc *sc;
register int nsl;
int error;
- if (error = suser(u.u_cred, &u.u_acflag))
+ if (error = suser(p->p_ucred, &p->p_acflag))
return (error);
if (tp->t_line == SLIPDISC)
return (error);
if (tp->t_line == SLIPDISC)
- case TIOCGETD: /* XXX */
- case SLIOGUNIT:
*(int *)data = sc->sc_if.if_unit;
break;
*(int *)data = sc->sc_if.if_unit;
break;