~didier-barvaux/+junk/rohc-tcp

« back to all changes in this revision

Viewing changes to app/sniffer/sniffer.c

  • Committer: Didier Barvaux
  • Date: 2013-06-30 16:02:22 UTC
  • mfrom: (535.1.234 rohc-main)
  • Revision ID: didier@barvaux.org-20130630160222-2yb025uez8jcymvl
Sync with main branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
721
721
                goto destroy_comp;
722
722
        }
723
723
 
724
 
        /* enable profiles */
725
 
        rohc_activate_profile(comp, ROHC_PROFILE_UNCOMPRESSED);
726
 
        rohc_activate_profile(comp, ROHC_PROFILE_UDP);
727
 
        rohc_activate_profile(comp, ROHC_PROFILE_IP);
728
 
        rohc_activate_profile(comp, ROHC_PROFILE_UDPLITE);
729
 
        rohc_activate_profile(comp, ROHC_PROFILE_RTP);
730
 
        rohc_activate_profile(comp, ROHC_PROFILE_ESP);
731
 
        rohc_activate_profile(comp, ROHC_PROFILE_TCP);
 
724
        /* enable the compression profiles */
 
725
        if(!rohc_comp_enable_profiles(comp, ROHC_PROFILE_UNCOMPRESSED,
 
726
                                      ROHC_PROFILE_RTP, ROHC_PROFILE_UDP,
 
727
                                      ROHC_PROFILE_IP, ROHC_PROFILE_UDPLITE,
 
728
                                      ROHC_PROFILE_ESP, ROHC_PROFILE_TCP, -1))
 
729
        {
 
730
                fprintf(stderr, "failed to enable the compression profiles\n");
 
731
                goto destroy_comp;
 
732
        }
732
733
 
733
734
        /* configure SMALL_CID / LARGE_CID and MAX_CID */
734
735
        rohc_c_set_large_cid(comp, use_large_cid);