physical.h (78410) | physical.h (93418) |
---|---|
1/* 2 * Written by Eivind Eklund <eivind@yes.no> 3 * for Yes Interactive 4 * 5 * Copyright (C) 1998, Yes Interactive. All rights reserved. 6 * 7 * Redistribution and use in any form is permitted. Redistribution in 8 * source form should include the above copyright and this set of 9 * conditions, because large sections american law seems to have been 10 * created by a bunch of jerks on drugs that are now illegal, forcing 11 * me to include this copyright-stuff instead of placing this in the 12 * public domain. The name of of 'Yes Interactive' or 'Eivind Eklund' 13 * may not be used to endorse or promote products derived from this 14 * software without specific prior written permission. 15 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 16 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 17 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 18 * | 1/* 2 * Written by Eivind Eklund <eivind@yes.no> 3 * for Yes Interactive 4 * 5 * Copyright (C) 1998, Yes Interactive. All rights reserved. 6 * 7 * Redistribution and use in any form is permitted. Redistribution in 8 * source form should include the above copyright and this set of 9 * conditions, because large sections american law seems to have been 10 * created by a bunch of jerks on drugs that are now illegal, forcing 11 * me to include this copyright-stuff instead of placing this in the 12 * public domain. The name of of 'Yes Interactive' or 'Eivind Eklund' 13 * may not be used to endorse or promote products derived from this 14 * software without specific prior written permission. 15 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 16 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 17 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 18 * |
19 * $FreeBSD: head/usr.sbin/ppp/physical.h 78410 2001-06-18 14:59:36Z brian $ | 19 * $FreeBSD: head/usr.sbin/ppp/physical.h 93418 2002-03-30 12:30:09Z brian $ |
20 * 21 */ 22 23struct datalink; 24struct bundle; 25struct iovec; 26struct physical; 27struct bundle; 28struct ccp; 29struct cmdargs; 30 31/* Device types (don't use zero, it'll be confused with NULL in physical2iov */ 32#define I4B_DEVICE 1 33#define TTY_DEVICE 2 34#define TCP_DEVICE 3 35#define UDP_DEVICE 4 36#define ETHER_DEVICE 5 37#define EXEC_DEVICE 6 38#define ATM_DEVICE 7 | 20 * 21 */ 22 23struct datalink; 24struct bundle; 25struct iovec; 26struct physical; 27struct bundle; 28struct ccp; 29struct cmdargs; 30 31/* Device types (don't use zero, it'll be confused with NULL in physical2iov */ 32#define I4B_DEVICE 1 33#define TTY_DEVICE 2 34#define TCP_DEVICE 3 35#define UDP_DEVICE 4 36#define ETHER_DEVICE 5 37#define EXEC_DEVICE 6 38#define ATM_DEVICE 7 |
39#define NG_DEVICE 8 |
|
39 40/* Returns from awaitcarrier() */ 41#define CARRIER_PENDING 1 42#define CARRIER_OK 2 43#define CARRIER_LOST 3 44 45/* A cd ``necessity'' value */ 46#define CD_VARIABLE 0 --- 12 unchanged lines hidden (view full) --- 59 u_short mtu; 60 struct cd cd; 61 62 int (*awaitcarrier)(struct physical *); 63 int (*removefromset)(struct physical *, fd_set *, fd_set *, fd_set *); 64 int (*raw)(struct physical *); 65 void (*offline)(struct physical *); 66 void (*cooked)(struct physical *); | 40 41/* Returns from awaitcarrier() */ 42#define CARRIER_PENDING 1 43#define CARRIER_OK 2 44#define CARRIER_LOST 3 45 46/* A cd ``necessity'' value */ 47#define CD_VARIABLE 0 --- 12 unchanged lines hidden (view full) --- 60 u_short mtu; 61 struct cd cd; 62 63 int (*awaitcarrier)(struct physical *); 64 int (*removefromset)(struct physical *, fd_set *, fd_set *, fd_set *); 65 int (*raw)(struct physical *); 66 void (*offline)(struct physical *); 67 void (*cooked)(struct physical *); |
68 void (*setasyncparams)(struct physical *, u_int32_t, u_int32_t); |
|
67 void (*stoptimer)(struct physical *); 68 void (*destroy)(struct physical *); 69 ssize_t (*read)(struct physical *, void *, size_t); 70 ssize_t (*write)(struct physical *, const void *, size_t); 71 void (*device2iov)(struct device *, struct iovec *, int *, int, int *, int *); 72 int (*speed)(struct physical *); 73 const char *(*openinfo)(struct physical *); 74}; --- 86 unchanged lines hidden (view full) --- 161 fd_set *); 162extern int physical_SetMode(struct physical *, int); 163extern void physical_DeleteQueue(struct physical *); 164extern void physical_SetupStack(struct physical *, const char *, int); 165extern void physical_StopDeviceTimer(struct physical *); 166extern int physical_MaxDeviceSize(void); 167extern int physical_AwaitCarrier(struct physical *); 168extern void physical_SetDescriptor(struct physical *); | 69 void (*stoptimer)(struct physical *); 70 void (*destroy)(struct physical *); 71 ssize_t (*read)(struct physical *, void *, size_t); 72 ssize_t (*write)(struct physical *, const void *, size_t); 73 void (*device2iov)(struct device *, struct iovec *, int *, int, int *, int *); 74 int (*speed)(struct physical *); 75 const char *(*openinfo)(struct physical *); 76}; --- 86 unchanged lines hidden (view full) --- 163 fd_set *); 164extern int physical_SetMode(struct physical *, int); 165extern void physical_DeleteQueue(struct physical *); 166extern void physical_SetupStack(struct physical *, const char *, int); 167extern void physical_StopDeviceTimer(struct physical *); 168extern int physical_MaxDeviceSize(void); 169extern int physical_AwaitCarrier(struct physical *); 170extern void physical_SetDescriptor(struct physical *); |
171extern void physical_SetAsyncParams(struct physical *, u_int32_t, u_int32_t); |
|