/*
* port constructor
*/
-Port::Port(int type, const char *portname, struct port_settings *settings)
+Port::Port(int type, const char *portname, struct port_settings *settings, struct interface *interface)
{
class Port *temp, **tempp;
memset(&p_settings, 0, sizeof(p_settings));
}
SCPY(p_name, portname);
+ if (interface)
+ SCPY(p_interface_name, interface->name);
p_tone_dir[0] = '\0';
p_type = type;
p_serial = port_serial++;
/* call recording */
p_record = NULL;
+ p_tap = 0;
p_record_type = 0;
p_record_length = 0;
p_record_skip = 0;
classuse++;
- PDEBUG(DEBUG_PORT, "new port (%d) of type 0x%x, name '%s'\n", p_serial, type, portname);
+ PDEBUG(DEBUG_PORT, "new port (%d) of type 0x%x, name '%s' interface '%s'\n", p_serial, type, portname, p_interface_name);
}
class Port *temp, **tempp;
struct lcr_msg *message;
- PDEBUG(DEBUG_PORT, "removing port (%d) of type 0x%x, name '%s'\n", p_serial, p_type, p_name);
+ PDEBUG(DEBUG_PORT, "removing port (%d) of type 0x%x, name '%s' interface '%s'\n", p_serial, p_type, p_name, p_interface_name);
if (p_bridge) {
PDEBUG(DEBUG_PORT, "Removing us from bridge %u\n", p_bridge->bridge_id);
char filename[256];
time_t now;
struct tm *now_tm;
- int ret;
+ int __attribute__((__unused__)) ret;
if (!extension) {
PERROR("Port(%d) not an extension\n", p_serial);
char *p;
struct caller_info callerinfo;
const char *valid_chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890_.-!$%&/()=+*;~";
- int ret;
+ int __attribute__((__unused__)) ret;
if (!p_record)
return;
signed short *s;
int free, i, ii;
signed int sample;
- int ret;
+ int __attribute__((__unused__)) ret;
/* no recording */
if (!p_record || !length)
}
+void Port::tap(unsigned char *data, int length, int dir_fromup)
+{
+}
+
void Port::update_rxoff(void)
{
}