aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/datalink.h
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1998-04-30 23:53:56 +0000
committerBrian Somers <brian@FreeBSD.org>1998-04-30 23:53:56 +0000
commit6f38457323b5d63cb4b6cf0459fa3a2c721b0d10 (patch)
tree7c37ecbe36841a82aa8b5e8c8af66e8a0b8b8cd4 /usr.sbin/ppp/datalink.h
parent9c281ab21bdef48b9019209705fbdcd51bb7e2a3 (diff)
downloadsrc-6f38457323b5d63cb4b6cf0459fa3a2c721b0d10.tar.gz
src-6f38457323b5d63cb4b6cf0459fa3a2c721b0d10.zip
o Create a new ``timer'' log level. This lets us ``set
log debug'' without filling our filesystem/screen with junk that we don't really want to see. o change PHYS_STDIN to PHYS_DIRECT - we can handle incoming connections that aren't on STDIN_FILENO now. o Allow return values from our FSM LayerUp functions. If LayerUp() fails, the FSM does an immediate FsmDown() without calling the fsm_parent's Layer{Up,Down} functions. o Clear the close-on-exec flag of file descriptor 3 when executing chat programs so that our documented ability to communicate with /dev/tty via that descriptor works. Also document it as descriptor 3, not 4 :-O o Allow a ``rm'' command as an alias for ``remove''. o Fix the bind()/connect()/accept() calls made by the MP server. o Create bundle_SendDatalink() and bundle_ReceiveDatalink(). This allows `struct datalink's to flatten themselves, pass through a pipe (read: the eye of a needle !) and come alive at the other end. The donator then fork()s & exec()s pppmpipe, ``passing'' the connection to another ppp instance. *** PPP NOW TALKS MULTILINK :-))) *** Our link utilization is hideous, and lots of code needs tidying still. It's also probably riddled with bugs ! It's been tested against itself only, and has hung once, so confidence isn't high....
Notes
Notes: svn path=/cvs2svn/branches/MP/; revision=35568
Diffstat (limited to 'usr.sbin/ppp/datalink.h')
-rw-r--r--usr.sbin/ppp/datalink.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/ppp/datalink.h b/usr.sbin/ppp/datalink.h
index 4600a1720ecd..c8172c0297dd 100644
--- a/usr.sbin/ppp/datalink.h
+++ b/usr.sbin/ppp/datalink.h
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: datalink.h,v 1.1.2.18 1998/04/18 01:01:20 brian Exp $
+ * $Id: datalink.h,v 1.1.2.19 1998/04/24 19:16:02 brian Exp $
*/
#define DATALINK_CLOSED (0)
@@ -104,9 +104,10 @@ struct datalink {
#define descriptor2datalink(d) \
((d)->type == DATALINK_DESCRIPTOR ? (struct datalink *)(d) : NULL)
-extern struct datalink *datalink_Create(const char *name, struct bundle *,
- const struct fsm_parent *, int);
+extern struct datalink *datalink_Create(const char *name, struct bundle *, int);
extern struct datalink *datalink_Clone(struct datalink *, const char *);
+extern struct datalink *datalink_FromBinary(struct bundle *, int);
+extern int datalink_ToBinary(struct datalink *, int);
extern struct datalink *datalink_Destroy(struct datalink *);
extern void datalink_GotAuthname(struct datalink *, const char *, int);
extern void datalink_Up(struct datalink *, int, int);
@@ -119,3 +120,4 @@ extern int datalink_Show(struct cmdargs const *);
extern int datalink_SetRedial(struct cmdargs const *);
extern int datalink_SetReconnect(struct cmdargs const *);
extern const char *datalink_State(struct datalink *);
+extern void datalink_Rename(struct datalink *);