Bootstrap   发布时间:2022-04-18  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了Let kannel 1.4.3 support the bootstrap of the WiMAX大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

Let kAnnel 1.4.3 support the bootstrap of the WiMAX

1.If kAnnel is runing,stop it first.@H_874_7@

wget http://localhost:13000/shutdown?password=bar

2.Modify the pack_accept() function for the Bootstrap of the WiMAX in the wsp_header.c.
  
static int pack_accept(Octstr *packed,Octstr *value)
{
    List *parms;
    long media;
    char *wi_bootstrap;
    char wb_buf[50];

    parms = wsp_Strip_parameters(value);
    /* XXX we need to obey which WSP encoding-version to use */
    media = wsp_String_to_content_type(value);
    /* media = wsp_String_to_versioned_content_type(value,WSP_1_2);*/

    /* added by javen for wimax bootstrap */
    wi_bootstrap = "application/vnd.wmf.bootstrap";       
    octstr_get_many_chars(wb_buf,value,strlen(wi_bootstrap)); 
    //printf("buf is:/n");
    //printf("%s/n",buf);            
    wb_buf[strlen(wi_bootstrap)] = '/0';
    if (strcmp(wb_buf,wi_bootstrap) == 0){
         media = 0x0318;
    }
    //printf("strcmp(a,b): %d/n",strcmp(wb_buf,wi_bootstrap));
    //printf("media is:/n");//=792
    //printf("%d/n",media); 
 
    /* See if we can fit this in a ConsTrained-media encoding */
    if (parms == NULL && media <= MAX_SHORT_IntegeR) {
        wsp_pack_consTrained_value(packed,media);
        //printf("parms == NULL && media <= MAX_SHORT_IntegeR");
    } else {
        Octstr *encoding = octstr_create("");

        if (media >= 0)
            wsp_pack_Integer_value(encoding,media);
        else
            wsp_pack_text(encoding,value);

        wsp_pack_parameters(encoding,parms);
        wsp_pack_value(packed,encoding);
        octstr_destroy(encoding);
    }

    gwlist_destroy(parms,parm_destroy_item);
    return 0;
}

3.Compile the kAnnel 1.4.3 again
@H_790_5@make@H_790_5@make bindir=/OneMS/gateway-1.4.3/bin install

4.Run the the kAnnel 1.4.3 again@H_874_7@

./bearerBox -v 1 pushkAnnel.conf &./wapBox -v 1 pushkAnnel.conf &@H_874_7@

大佬总结

以上是大佬教程为你收集整理的Let kannel 1.4.3 support the bootstrap of the WiMAX全部内容,希望文章能够帮你解决Let kannel 1.4.3 support the bootstrap of the WiMAX所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。