a few more additions for the RESTART Message
This commit is contained in:
parent
618cd071d2
commit
7b172e73f0
|
@ -563,10 +563,10 @@ check_infoelements(l3_process_t *pc, struct sk_buff *skb, int *checklist)
|
|||
else
|
||||
oldpos = newpos;
|
||||
} else {
|
||||
printk(KERN_NOTICE "ie_in_set resturned <0 [%d] ie:[%x]\n",newpos,ie);
|
||||
printk(KERN_NOTICE "ie_in_set returned <0 [%d] ie:[%x]\n",newpos,ie);
|
||||
}
|
||||
} else {
|
||||
printk(KERN_NOTICE "Found ie in set which we do not support ie [%x]\n",ie);
|
||||
if (debug) printk(KERN_NOTICE "Found ie in set which we do not support ie [%x]\n",ie);
|
||||
if (ie_in_set(pc, ie, comp_required))
|
||||
err_compr++;
|
||||
else
|
||||
|
@ -1786,6 +1786,13 @@ l3dss1_global_restart(l3_process_t *pc, u_char pr, void *arg)
|
|||
kfree_skb(skb);
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
l3dss1_restart_ack(l3_process_t *pc, u_char pr, void *arg)
|
||||
{
|
||||
printk(KERN_NOTICE "Restart Acknowledge\n");
|
||||
}
|
||||
|
||||
static void
|
||||
l3dss1_dummy(l3_process_t *pc, u_char pr, void *arg)
|
||||
{
|
||||
|
@ -2500,9 +2507,8 @@ static struct stateentry globalmes_list[] =
|
|||
MT_STATUS, l3dss1_status},
|
||||
{SBIT(0),
|
||||
MT_RESTART, l3dss1_global_restart},
|
||||
/* {SBIT(1),
|
||||
{SBIT(1),
|
||||
MT_RESTART_ACKNOWLEDGE, l3dss1_restart_ack},
|
||||
*/
|
||||
};
|
||||
#define GLOBALM_LEN \
|
||||
(sizeof(globalmes_list) / sizeof(struct stateentry))
|
||||
|
@ -2642,12 +2648,17 @@ dss1_fromdown(layer3_t *l3, struct sk_buff *skb, mISDN_head_t *hh)
|
|||
if (l3->debug & L3_DEB_STATE)
|
||||
l3_debug(l3, "dss1up cr %d", qi->cr);
|
||||
if (qi->crlen == 0) { /* Dummy Callref */
|
||||
if (qi->type == MT_FACILITY) {
|
||||
l3dss1_facility(l3->dummy, hh->prim, skb);
|
||||
switch(qi->type) {
|
||||
case MT_FACILITY:
|
||||
l3dss1_facility(l3->dummy, hh->prim, skb);
|
||||
return(0);
|
||||
} else if (l3->debug & L3_DEB_WARN)
|
||||
l3_debug(l3, "dss1up dummy Callref (no facility msg or ie)");
|
||||
dev_kfree_skb(skb);
|
||||
default:
|
||||
if (l3->debug & L3_DEB_WARN)
|
||||
l3_debug(l3, "dss1up dummy Callref (no facility msg or ie)");
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
return(0);
|
||||
} else if ((qi->cr & 0x7fff) == 0) { /* Global CallRef */
|
||||
if (l3->debug & L3_DEB_STATE)
|
||||
|
@ -2802,8 +2813,9 @@ dss1_fromup(layer3_t *l3, struct sk_buff *skb, mISDN_head_t *hh)
|
|||
return(ret);
|
||||
}
|
||||
|
||||
if (!proc && hh->dinfo == MISDN_ID_DUMMY) {
|
||||
if (!proc && hh->dinfo == MISDN_ID_GLOBAL) {
|
||||
if (hh->prim == (CC_RESTART | REQUEST)) {
|
||||
printk(KERN_NOTICE "Global Restart Req\n");
|
||||
l3dss1_restart_req(l3->dummy, hh->prim, skb->len ? skb : NULL);
|
||||
ret = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue