Find the answer to your Linux question:
Results 1 to 8 of 8
hi all, I am currently working in the compression of IP header packets I use a library which is called RoHC ( Robust Header Compression) well, I want to create ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2011
    Location
    France
    Posts
    3

    Question how to create a linux kernel module that intercepts outgoingIP packets


    hi all,

    I am currently working in the compression of IP header packets
    I use a library which is called RoHC ( Robust Header Compression)

    well, I want to create a 2.6 Linux kernel module that inetercepts outgoing packets in order to compress them using RoHC and then resent them


    Please anybody can help me or send me a source code of kernel module which intercepts IP packets ??
    I can't find many things in nthe net about how to proceed !!
    I hope you can help me
    my email is medaliziedi(at)hotmail.com

    Thanks a lot
    Regards

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,380
    IPv4 or IPv6? You can find this stuff in the kernel source/net/ipv4 or ipv6 directories.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    May 2011
    Location
    France
    Posts
    3
    Thanks Rubberman for response,
    In fact i Want to compress an IPv6 header packet
    I used RoHC library ( see launchpad.net/rohc ) and it works well but it works only in userland
    so i need to convert all its code to a kernel code
    that 's why i want to know how to proceed to create a kernel module that intercepts outgoing packets and uses the RoHC ( after being transformed into kernel)
    any help ??
    regards

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,380
    It's possible, but not trivial. You really should read up on kernel module programming before you start. The O'Reilly book "Linux Device Drivers, 3rd Edition" - it's available freely online. Here is a link to the PDF: http://www.davehylands.com/Misc/Linu...rd-Edition.pdf

    or here: Linux Device Drivers, Third Edition [LWN.net]
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  5. #5
    Just Joined!
    Join Date
    May 2011
    Location
    France
    Posts
    3
    Thanksssss Robberman for your help !!!

  6. #6
    Linux Newbie nplusplus's Avatar
    Join Date
    Apr 2010
    Location
    Charlotte, NC, USA
    Posts
    106
    You might also check out the Netfilter/Iptables project.

    netfilter/iptables project homepage - The netfilter.org project

  7. #7
    Just Joined!
    Join Date
    Sep 2013
    Posts
    1
    hello,i am now want to create a linux kernel module using a library which is called RoHC.
    can you tell me how to compile the source code.
    thank you

  8. #8
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,380
    Quote Originally Posted by szw_spencer View Post
    hello,i am now want to create a linux kernel module using a library which is called RoHC.
    can you tell me how to compile the source code.
    thank you
    Please don't hijack another person's thread, especially one that is over 2 years old! So, please create a new thread with your question.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •