summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2010-05-02 22:34:32 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2010-05-02 22:34:32 +0000
commit1f354f91e54f36c5b79aaccca230ccb889166079 (patch)
treed9800a8964afac509264a218f186cf163dd2d25c /sys/net
parent463582c1d2af352c0fc668f518d76a4291997276 (diff)
The line-discipline-specific ioctls return -1 to indicate that
the non-line-discipline-specific ioctl handler should be tried. So changing these to return ENOTTY was wrong. Noted on misc@ because of resulting pppd log spam (but it didn't break anything serious): http://marc.info/?l=openbsd-misc&m=127258856501621&w=2 ok sthen@, miod@
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_ppp.c4
-rw-r--r--sys/net/if_sl.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c
index 28122b3d8e4..38aec598592 100644
--- a/sys/net/if_ppp.c
+++ b/sys/net/if_ppp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ppp.c,v 1.57 2010/05/01 08:14:26 mk Exp $ */
+/* $OpenBSD: if_ppp.c,v 1.58 2010/05/02 22:34:31 stsp Exp $ */
/* $NetBSD: if_ppp.c,v 1.39 1997/05/17 21:11:59 christos Exp $ */
/*
@@ -605,7 +605,7 @@ pppioctl(sc, cmd, data, flag, p)
#endif
default:
- return (ENOTTY);
+ return (-1);
}
return (0);
}
diff --git a/sys/net/if_sl.c b/sys/net/if_sl.c
index 4199087222b..96013ab0151 100644
--- a/sys/net/if_sl.c
+++ b/sys/net/if_sl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_sl.c,v 1.41 2010/05/01 08:14:26 mk Exp $ */
+/* $OpenBSD: if_sl.c,v 1.42 2010/05/02 22:34:31 stsp Exp $ */
/* $NetBSD: if_sl.c,v 1.39.4.1 1996/06/02 16:26:31 thorpej Exp $ */
/*
@@ -391,7 +391,7 @@ sltioctl(tp, cmd, data, flag)
break;
default:
- return (ENOTTY);
+ return (-1);
}
return (0);
}