0

can linux ip stack handle non standard protocols? i.e protocol field has values 143-252.

Linux build: Yocto Project - Poky

2
  • If you have any particular uncommon protocol in mind, it would be better to mention it and/or its characteristics. – Kusalananda Aug 17 '17 at 5:59
  • Due to some limitations, I'd like to discard UDP header and would like to have only the data (which comes in some specific format). – user1977050 Aug 17 '17 at 6:49
1

You can use raw sockets for this. See raw(7). With raw sockets you send and receive non-standard transport level protocol data in IP packets instead of TCP, UDP, etc.

2
  • Thank you. I'm aware of raw sockets. However, don't know if there is some limitation in the linux build I've specified. – user1977050 Aug 17 '17 at 7:48
  • @user1977050 If you have IP, you have raw IP sockets. – Gilles 'SO- stop being evil' Aug 17 '17 at 22:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.