version 1.1.1.1, 2013/07/22 08:44:29
|
version 1.1.1.3, 2021/03/17 00:39:23
|
Line 64
|
Line 64
|
/* returns the calling number (IP, MAC, whatever) */ |
/* returns the calling number (IP, MAC, whatever) */ |
int (*callednum)(Link l, void *buf, size_t buf_len); |
int (*callednum)(Link l, void *buf, size_t buf_len); |
/* returns the called number (IP, MAC, whatever) */ |
/* returns the called number (IP, MAC, whatever) */ |
|
u_short (*getmtu)(Link l, int conf); /* returns actual MTU */ |
|
u_short (*getmru)(Link l, int conf); /* returns actual MRU */ |
}; |
}; |
typedef struct phystype *PhysType; |
typedef struct phystype *PhysType; |
|
|
Line 71
|
Line 73
|
* VARIABLES |
* VARIABLES |
*/ |
*/ |
|
|
extern const PhysType gPhysTypes[]; | extern const struct phystype *gPhysTypes[]; |
extern const char *gPhysStateNames[]; |
extern const char *gPhysStateNames[]; |
|
|
/* |
/* |
Line 99
|
Line 101
|
extern int PhysGetPeerIface(Link l, char *buf, size_t buf_len); |
extern int PhysGetPeerIface(Link l, char *buf, size_t buf_len); |
extern int PhysGetCallingNum(Link l, char *buf, size_t buf_len); |
extern int PhysGetCallingNum(Link l, char *buf, size_t buf_len); |
extern int PhysGetCalledNum(Link l, char *buf, size_t buf_len); |
extern int PhysGetCalledNum(Link l, char *buf, size_t buf_len); |
|
extern u_short PhysGetMtu(Link l, int conf); |
|
extern u_short PhysGetMru(Link l, int conf); |
extern int PhysIsBusy(Link l); |
extern int PhysIsBusy(Link l); |
|
|
extern int PhysInit(Link l); |
extern int PhysInit(Link l); |
Line 108
|
Line 112
|
extern void PhysSetDeviceType(Link l, char *typename); |
extern void PhysSetDeviceType(Link l, char *typename); |
extern int PhysGetOriginate(Link l); |
extern int PhysGetOriginate(Link l); |
extern int PhysIsSync(Link l); |
extern int PhysIsSync(Link l); |
extern int PhysStat(Context ctx, int ac, char *av[], void *arg); | extern int PhysStat(Context ctx, int ac, const char *const av[], const void *arg); |
|
|
#endif |
#endif |
|
|