Menu

Packet truncation

Julien
2018-03-14
2018-03-28
  • Julien

    Julien - 2018-03-14

    Hi,

    I would like to truncate packets before send it via gre tunnel.
    But I have this message :
    rcdcap:/etc/RCDCap/src/sink.cc:374: Invalid length; the complete packet must be captured in order to output it to a TAP device.
    Original length: 1506; the length of the received packet: 1472.

    Is it something that can be improved ?

    Best regards,

     
    • Zero effect

      Zero effect - 2018-03-14

      Hello, I can probably add a force flag which avoids the check. Would this be sufficient?

      Sent from my Samsung Galaxy smartphone.
      -------- Original message --------From: Julien nirlya@users.sourceforge.net Date: 3/14/18 21:45 (GMT+01:00) To: "[rcdcap:discussion]" general@discussion.rcdcap.p.re.sourceforge.net Subject: [rcdcap:discussion] Packet truncation
      Hi,
      I would like to truncate packets before send it via gre tunnel.

      But I have this message :

      rcdcap:/etc/RCDCap/src/sink.cc:374: Invalid length; the complete packet must be captured in order to output it to a TAP device.

      Original length: 1506; the length of the received packet: 1472.
      Is it something that can be improved ?
      Best regards,

      Packet truncation

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/rcdcap/discussion/general/
      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       
  • Julien

    Julien - 2018-03-14

    Thx for your quick answer :)
    If you able to truncate properly packet like tcpdump or tshark - and not dropping packets like -y arg - I think it will be sufficient!

    Here is my command line :
    rcdcap -i ens192 -s 1462 --tap-persist -t gretap1

    Ready to test !

     
  • Julien

    Julien - 2018-03-20

    Hi,
    I just try your last commit but still have :

    terminate called after throwing an instance of 'RCDCap::Exception'
    what(): /tmp/RCDcap/src/sink.cc:310: Invalid length; the complete packet must be captured in order to output it to a TAP device.
    Original length: 1434; the length of the received packet: 1000.

     
    • Zero effect

      Zero effect - 2018-03-25

      The build was broken on linux - it should work fine now

      Sent from my Samsung Galaxy smartphone.
      -------- Original message --------From: Julien nirlya@users.sourceforge.net Date: 3/20/18 11:44 (GMT+01:00) To: "[rcdcap:discussion]" general@discussion.rcdcap.p.re.sourceforge.net Subject: [rcdcap:discussion] Packet truncation
      Hi,

      I just try your last commit but still have :

      terminate called after throwing an instance of 'RCDCap::Exception'

      what(): /tmp/RCDcap/src/sink.cc:310: Invalid length; the complete packet must be captured in order to output it to a TAP device.

      Original length: 1434; the length of the received packet: 1000.

      Packet truncation

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/rcdcap/discussion/general/
      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       
  • Julien

    Julien - 2018-03-27

    Hi,

    I still have a problem with compilation :

    [ 85%] Building CXX object src/CMakeFiles/rcdcap.dir/rcdcap-main.cc.o
    cd /tmp/rcdcap-code/source/build-make/src && /usr/bin/c++ -DLINUX -I/tmp/rcdcap-code/source/build-make/include -I/tmp/rcdcap-code/source/include -pedantic -Wall -Wno-long-long -std=c++0x -mcx16 -msse -msse2 -mssse3 -pthread -o CMakeFiles/rcdcap.dir/rcdcap-main.cc.o -c /tmp/rcdcap-code/source/src/rcdcap-main.cc
    In file included from /tmp/rcdcap-code/source/include/rcdcap/sink.hh:25:0,
    from /tmp/rcdcap-code/source/src/rcdcap-main.cc:18:
    /tmp/rcdcap-code/source/include/rcdcap/packet-headers.hh:47:18: attention : ISO C++ does not support ‘int128’ for ‘int128’ [-Wpedantic]
    typedef
    int128 int128;
    ^
    Linking CXX executable rcdcap
    cd /tmp/rcdcap-code/source/build-make/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/rcdcap.dir/link.txt --verbose=1
    /usr/bin/c++ CMakeFiles/rcdcap.dir/rcdcap-main.cc.o -o rcdcap -rdynamic librcdcap_core.so -lpcap -lsupc++ -ldl -lpthread -Wl,-rpath,/tmp/rcdcap-code/source/build-make/src:
    CMakeFiles/rcdcap.dir/rcdcap-main.cc.o: dans la fonction « RCDCap::RCDCapApplication::RCDCapApplication() »:
    rcdcap-main.cc:(.text+0x8a7): référence indéfinie vers « boost::program_options::options_description::m_default_line_length »
    rcdcap-main.cc:(.text+0x8b2): référence indéfinie vers « boost::program_options::options_description::m_default_line_length »
    rcdcap-main.cc:(.text+0x8fb): référence indéfinie vers « boost::program_options::options_description::options_description(std::string const&, unsigned int, unsigned int) »
    rcdcap-main.cc:(.text+0xbb9): référence indéfinie vers « boost::program_options::options_description::add_options() »
    rcdcap-main.cc:(.text+0xbd3): référence indéfinie vers « boost::program_options::options_description_easy_init::operator()(char const, char const) »
    [...]

    Regards,

     
    • Zero effect

      Zero effect - 2018-03-27

      What is your version of cmake?

      Sent from my Samsung Galaxy smartphone.
      -------- Original message --------From: Julien nirlya@users.sourceforge.net Date: 3/27/18 15:06 (GMT+01:00) To: "[rcdcap:discussion]" general@discussion.rcdcap.p.re.sourceforge.net Subject: [rcdcap:discussion] Packet truncation
      Hi,
      I still have a problem with compilation :

      [ 85%] Building CXX object src/CMakeFiles/rcdcap.dir/rcdcap-main.cc.o

      cd /tmp/rcdcap-code/source/build-make/src && /usr/bin/c++ -DLINUX -I/tmp/rcdcap-code/source/build-make/include -I/tmp/rcdcap-code/source/include -pedantic -Wall -Wno-long-long -std=c++0x -mcx16 -msse -msse2 -mssse3 -pthread -o CMakeFiles/rcdcap.dir/rcdcap-main.cc.o -c /tmp/rcdcap-code/source/src/rcdcap-main.cc

      In file included from /tmp/rcdcap-code/source/include/rcdcap/sink.hh:25:0,

                   from /tmp/rcdcap-code/source/src/rcdcap-main.cc:18:
      

      /tmp/rcdcap-code/source/include/rcdcap/packet-headers.hh:47:18: attention : ISO C++ does not support ‘int128’ for ‘int128’ [-Wpedantic]

      typedef int128 int128;

                    ^
      

      Linking CXX executable rcdcap

      cd /tmp/rcdcap-code/source/build-make/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/rcdcap.dir/link.txt --verbose=1

      /usr/bin/c++ CMakeFiles/rcdcap.dir/rcdcap-main.cc.o -o rcdcap -rdynamic librcdcap_core.so -lpcap -lsupc++ -ldl -lpthread -Wl,-rpath,/tmp/rcdcap-code/source/build-make/src:

      CMakeFiles/rcdcap.dir/rcdcap-main.cc.o: dans la fonction « RCDCap::RCDCapApplication::RCDCapApplication() »:

      rcdcap-main.cc:(.text+0x8a7): référence indéfinie vers « boost::program_options::options_description::m_default_line_length »

      rcdcap-main.cc:(.text+0x8b2): référence indéfinie vers « boost::program_options::options_description::m_default_line_length »

      rcdcap-main.cc:(.text+0x8fb): référence indéfinie vers « boost::program_options::options_description::options_description(std::string const&, unsigned int, unsigned int) »

      rcdcap-main.cc:(.text+0xbb9): référence indéfinie vers « boost::program_options::options_description::add_options() »

      rcdcap-main.cc:(.text+0xbd3): référence indéfinie vers « boost::program_options::options_description_easy_init::operator()(char const, char const) »

      [...]

      Regards,

      Packet truncation

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/rcdcap/discussion/general/
      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       
  • Julien

    Julien - 2018-03-28

    Hi,

    cmake version 2.8.12.2

    regards,

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.