Type ... removed
FossilOrigin-Name: 12ed73bee0c35e2bff14d14e6bd489b52c789ae85b137c1abc72906e9c740028
This commit is contained in:
parent
045df10d6d
commit
8cc016239a
@ -1,24 +0,0 @@
|
||||
|
||||
|
||||
int cisco_in_telnet_ssh(struct conn *conn, struct cw_action_in *a, uint8_t * data, int len,
|
||||
struct sockaddr *from)
|
||||
{
|
||||
int enable=lw_get_byte(data);
|
||||
int type = lw_get_byte(data+1);
|
||||
|
||||
|
||||
switch (type){
|
||||
case 0:
|
||||
mbag_set_byte(conn->incomming,CIPWAP_ITEM_TELNET_ENABLE,enable);
|
||||
break;
|
||||
case 1:
|
||||
mbag_set_byte(conn->incomming,CIPWAP_ITEM_SSH_ENABLE,enable);
|
||||
break;
|
||||
default:
|
||||
cw_dbg(DBG_ELEM_ERR,"Unknown Telnet/SSH Type: %d",type);
|
||||
break;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user