Find the answer to your Linux question:
Results 1 to 3 of 3
What includes are required to add a TCP socket to a kernel module? We need an existing kernel module to connect a listening TCP port, and need to use the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2010
    Location
    The Sillicon Valley, California
    Posts
    28

    [SOLVED] need TCP networking in a kernel module


    What includes are required to add a TCP socket to a kernel module?

    We need an existing kernel module to connect a listening TCP port,
    and need to use the functions:
    socket(), listen(), bind(), and accept()
    ..inside our module's init_module() function.

  2. #2
    Just Joined!
    Join Date
    Jan 2010
    Location
    The Sillicon Valley, California
    Posts
    28
    Quote Originally Posted by douglaskbell View Post
    What includes are required to add a TCP socket to a kernel module?

    We need an existing kernel module to connect a listening TCP port,
    and need to use the functions:
    socket(), listen(), bind(), and accept()
    ..inside our module's init_module() function.
    Also, this is form compiling a module to run on a power PC Linux,
    am using:
    powerpc-linux-gcc

    thanks

  3. #3
    Just Joined!
    Join Date
    Jan 2010
    Location
    The Sillicon Valley, California
    Posts
    28
    I got it working.

    My Linuxgropin has turned to Linuxgroovin.

  4. $spacer_open
    $spacer_close

Posting Permissions

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