当前位置: 首页>>代码示例>>C++>>正文


C++ L3DelTimer函数代码示例

本文整理汇总了C++中L3DelTimer函数的典型用法代码示例。如果您正苦于以下问题:C++ L3DelTimer函数的具体用法?C++ L3DelTimer怎么用?C++ L3DelTimer使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了L3DelTimer函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: l3_1tr6_t305

static void
l3_1tr6_t305(struct l3_process *pc, u_char pr, void *arg)
{
	struct sk_buff *skb;
	u_char tmp[16];
	u_char *p = tmp;
	int l;
	u_char cause = 0x90;
	u_char clen = 1;

	L3DelTimer(&pc->timer);
	if (pc->para.cause != NO_CAUSE)
		cause = pc->para.cause;
	/* Map DSS1 causes */
	switch (cause & 0x7f) {
		case 0x10:
			clen = 0;
			break;
		case 0x15:
			cause = CAUSE_CallRejected;
			break;
	}
	MsgHead(p, pc->callref, MT_N1_REL, PROTO_DIS_N1);
	*p++ = WE0_cause;
	*p++ = clen;		/* Laenge */
	if (clen)
		*p++ = cause;
	newl3state(pc, 19);
	l = p - tmp;
	if (!(skb = l3_alloc_skb(l)))
		return;
	memcpy(skb_put(skb, l), tmp, l);
	l3_msg(pc->st, DL_DATA | REQUEST, skb);
	L3AddTimer(&pc->timer, T308, CC_T308_1);
}
开发者ID:Medvedroid,项目名称:OT_903D-kernel-2.6.35.7,代码行数:35,代码来源:l3_1tr6.c

示例2: l3_1tr6_t308_2

static void
l3_1tr6_t308_2(struct l3_process *pc, u_char pr, void *arg)
{
	L3DelTimer(&pc->timer);
	pc->st->l3.l3l4(pc->st, CC_RELEASE_ERR, pc);
	release_l3_process(pc);
}
开发者ID:Medvedroid,项目名称:OT_903D-kernel-2.6.35.7,代码行数:7,代码来源:l3_1tr6.c

示例3: l3_1tr6_call_sent

static void
l3_1tr6_call_sent(struct l3_process *pc, u_char pr, void *arg)
{
    u_char *p;
    struct sk_buff *skb = arg;

    L3DelTimer(&pc->timer);
    p = skb->data;
    if ((p = findie(p, skb->len, WE0_chanID, 0))) {
        if (p[1] != 1) {
            l3_1tr6_error(pc, "call sent wrong chanID len", skb);
            return;
        }
        if ((p[2] & 0xf4) != 0x80) {
            l3_1tr6_error(pc, "call sent wrong WE0_chanID", skb);
            return;
        }
        if ((pc->state == 2) && (pc->para.bchannel != (p[2] & 0x3))) {
            l3_1tr6_error(pc, "call sent wrong chanID value", skb);
            return;
        }
        pc->para.bchannel = p[2] & 0x3;
    } else {
        l3_1tr6_error(pc, "missing call sent WE0_chanID", skb);
        return;
    }
    dev_kfree_skb(skb);
    L3AddTimer(&pc->timer, T310, CC_T310);
    newl3state(pc, 3);
    pc->st->l3.l3l4(pc->st, CC_PROCEEDING | INDICATION, pc);
}
开发者ID:Berrrry,项目名称:SPH-L710_NA_Kernel,代码行数:31,代码来源:l3_1tr6.c

示例4: l3_1tr6_t305

static void
l3_1tr6_t305(struct PStack *st, u_char pr, void *arg)
{
	struct sk_buff *skb;
	u_char tmp[16];
	u_char *p = tmp;
	int l;
	u_char cause = 0x90;
	u_char clen = 1;

	L3DelTimer(&st->l3.timer);
	if (st->pa->cause > 0)
		cause = st->pa->cause;
	/* Map DSS1 causes */
	switch (cause & 0x7f) {
		case 0x10:
			clen = 0;
			break;
		case 0x15:
			cause = CAUSE_CallRejected;
			break;
	}
	MsgHead(p, st->l3.callref, MT_N1_REL, PROTO_DIS_N1);
	*p++ = WE0_cause;
	*p++ = clen;		/* Laenge */
	if (clen)
		*p++ = cause;
	newl3state(st, 19);
	l = p - tmp;
	if (!(skb = l3_alloc_skb(l)))
		return;
	memcpy(skb_put(skb, l), tmp, l);
	st->l3.l3l2(st, DL_DATA, skb);
	L3AddTimer(&st->l3.timer, st->l3.t308, CC_T308_1);
}
开发者ID:rohsaini,项目名称:mkunity,代码行数:35,代码来源:l3_1tr6.c

示例5: l3_1tr6_setup_ack

static void
l3_1tr6_setup_ack(struct l3_process *pc, u_char pr, void *arg)
{
    u_char *p;
    struct sk_buff *skb = arg;

    L3DelTimer(&pc->timer);
    p = skb->data;
    newl3state(pc, 2);
    if ((p = findie(p, skb->len, WE0_chanID, 0))) {
        if (p[1] != 1) {
            l3_1tr6_error(pc, "setup_ack wrong chanID len", skb);
            return;
        }
        if ((p[2] & 0xf4) != 0x80) {
            l3_1tr6_error(pc, "setup_ack wrong WE0_chanID", skb);
            return;
        }
        pc->para.bchannel = p[2] & 0x3;
    } else {
        l3_1tr6_error(pc, "missing setup_ack WE0_chanID", skb);
        return;
    }
    dev_kfree_skb(skb);
    L3AddTimer(&pc->timer, T304, CC_T304);
    pc->st->l3.l3l4(pc->st, CC_MORE_INFO | INDICATION, pc);
}
开发者ID:Berrrry,项目名称:SPH-L710_NA_Kernel,代码行数:27,代码来源:l3_1tr6.c

示例6: l3_1tr6_t308_2

static void
l3_1tr6_t308_2(struct PStack *st, u_char pr, void *arg)
{
	L3DelTimer(&st->l3.timer);
	st->l3.l3l4(st, CC_RELEASE_ERR, NULL);
	newl3state(st, 0);
}
开发者ID:rohsaini,项目名称:mkunity,代码行数:7,代码来源:l3_1tr6.c

示例7: l3_1tr6_setup_rsp

static void
l3_1tr6_setup_rsp(struct PStack *st, u_char pr, void *arg)
{
	struct sk_buff *skb;
	u_char tmp[24];
	u_char *p = tmp;
	int l;

	MsgHead(p, st->l3.callref, MT_N1_CONN, PROTO_DIS_N1);
	if (st->pa->spv) {	/* SPV ? */
		/* NSF SPV */
		*p++ = WE0_netSpecFac;
		*p++ = 4;	/* Laenge */
		*p++ = 0;
		*p++ = FAC_SPV;	/* SPV */
		*p++ = st->pa->setup.si1;
		*p++ = st->pa->setup.si2;
		*p++ = WE0_netSpecFac;
		*p++ = 4;	/* Laenge */
		*p++ = 0;
		*p++ = FAC_Activate;	/* aktiviere SPV */
		*p++ = st->pa->setup.si1;
		*p++ = st->pa->setup.si2;
	}
	newl3state(st, 8);
	l = p - tmp;
	if (!(skb = l3_alloc_skb(l)))
		return;
	memcpy(skb_put(skb, l), tmp, l);
	st->l3.l3l2(st, DL_DATA, skb);
	L3DelTimer(&st->l3.timer);
	L3AddTimer(&st->l3.timer, st->l3.t313, CC_T313);
}
开发者ID:rohsaini,项目名称:mkunity,代码行数:33,代码来源:l3_1tr6.c

示例8: l3_1tr6_setup_rsp

static void
l3_1tr6_setup_rsp(struct l3_process *pc, u_char pr, void *arg)
{
    struct sk_buff *skb;
    u_char tmp[24];
    u_char *p = tmp;
    int l;

    MsgHead(p, pc->callref, MT_N1_CONN, PROTO_DIS_N1);
    if (pc->para.spv) {	/* SPV ? */
        /* NSF SPV */
        *p++ = WE0_netSpecFac;
        *p++ = 4;	/* Laenge */
        *p++ = 0;
        *p++ = FAC_SPV;	/* SPV */
        *p++ = pc->para.setup.si1;
        *p++ = pc->para.setup.si2;
        *p++ = WE0_netSpecFac;
        *p++ = 4;	/* Laenge */
        *p++ = 0;
        *p++ = FAC_Activate;	/* aktiviere SPV */
        *p++ = pc->para.setup.si1;
        *p++ = pc->para.setup.si2;
    }
    newl3state(pc, 8);
    l = p - tmp;
    if (!(skb = l3_alloc_skb(l)))
        return;
    memcpy(skb_put(skb, l), tmp, l);
    l3_msg(pc->st, DL_DATA | REQUEST, skb);
    L3DelTimer(&pc->timer);
    L3AddTimer(&pc->timer, T313, CC_T313);
}
开发者ID:Berrrry,项目名称:SPH-L710_NA_Kernel,代码行数:33,代码来源:l3_1tr6.c

示例9: l3_1tr6_t308_1

static void
l3_1tr6_t308_1(struct PStack *st, u_char pr, void *arg)
{
	L3DelTimer(&st->l3.timer);
	l3_1TR6_message(st, MT_N1_REL, PROTO_DIS_N1);
	L3AddTimer(&st->l3.timer, st->l3.t308, CC_T308_2);
	newl3state(st, 19);
}
开发者ID:rohsaini,项目名称:mkunity,代码行数:8,代码来源:l3_1tr6.c

示例10: l3_1tr6_t313

static void
l3_1tr6_t313(struct PStack *st, u_char pr, void *arg)
{
	L3DelTimer(&st->l3.timer);
	st->pa->cause = 0xE6;
	l3_1tr6_disconnect_req(st, pr, NULL);
	st->l3.l3l4(st, CC_CONNECT_ERR, NULL);
}
开发者ID:rohsaini,项目名称:mkunity,代码行数:8,代码来源:l3_1tr6.c

示例11: StopAllL3Timer

void
StopAllL3Timer(l3_process_t *pc)
{
	L3DelTimer(&pc->timer);
	if (pc->t303skb) {
		dev_kfree_skb(pc->t303skb);
		pc->t303skb = NULL;
	}
}
开发者ID:BackupTheBerlios,项目名称:tuxap,代码行数:9,代码来源:layer3.c

示例12: l3_1tr6_alert

static void
l3_1tr6_alert(struct PStack *st, u_char pr, void *arg)
{
	struct sk_buff *skb = arg;

	SET_SKB_FREE(skb);
	dev_kfree_skb(skb, FREE_READ);
	L3DelTimer(&st->l3.timer);	/* T304 */
	newl3state(st, 4);
	st->l3.l3l4(st, CC_ALERTING_IND, NULL);
}
开发者ID:rohsaini,项目名称:mkunity,代码行数:11,代码来源:l3_1tr6.c

示例13: l3_1tr6_connect_ack

static void
l3_1tr6_connect_ack(struct PStack *st, u_char pr, void *arg)
{
	struct sk_buff *skb = arg;

	SET_SKB_FREE(skb);
	dev_kfree_skb(skb, FREE_READ);
	newl3state(st, 10);
	st->pa->chargeinfo = 0;
	L3DelTimer(&st->l3.timer);
	st->l3.l3l4(st, CC_SETUP_COMPLETE_IND, NULL);
}
开发者ID:rohsaini,项目名称:mkunity,代码行数:12,代码来源:l3_1tr6.c

示例14: l3_1tr6_call_sent

static void
l3_1tr6_call_sent(struct PStack *st, u_char pr, void *arg)
{
	u_char *p;
	struct sk_buff *skb = arg;

	L3DelTimer(&st->l3.timer);
	p = skb->data;
	if ((p = findie(p, skb->len, WE0_chanID, 0))) {
		st->pa->bchannel = p[2] & 0x3;
	} else if (st->l3.debug & L3_DEB_WARN)
		l3_debug(st, "setup answer without bchannel");
	SET_SKB_FREE(skb);
	dev_kfree_skb(skb, FREE_READ);
	L3AddTimer(&st->l3.timer, st->l3.t310, CC_T310);
	newl3state(st, 3);
	st->l3.l3l4(st, CC_PROCEEDING_IND, NULL);
}
开发者ID:rohsaini,项目名称:mkunity,代码行数:18,代码来源:l3_1tr6.c

示例15: StopAllL3Timer

void
StopAllL3Timer(struct l3_process *pc)
{
	L3DelTimer(&pc->timer);
}
开发者ID:jameshilliard,项目名称:actiontec_opensrc_mi424wr-rev-ef_fw-20-19-8,代码行数:5,代码来源:isdnl3.c


注:本文中的L3DelTimer函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。