LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 05-20-2012, 07:13 AM   #1
Yaphet
LQ Newbie
 
Registered: Feb 2012
Posts: 8

Rep: Reputation: Disabled
Network connection at kernel level


Hey, folks,

I have no resemblance of experience with kernel,
but I can cope with the references you may give.

I need to open a network connection between two
computers -- send and receive files --, but I've
got to do it within a kernel module.

I want to write -- or change, for my needs -- a
kernel module that sends and receives files from
a computer to another.

The interface would be built by system calls; they'd
reference the methods written in the kernel module,
passing file paths, or descriptors, as parameters.

The choice between paths and descriptors is merely
an implementation decision, and the easiest to be
treated at kernel level will be definitely chosen.

There's no concern about security issues here, as
this is only experimental; the configuration for
the network connection shall be as simple as
possible -- just send and receive files.

Hope you got my point, and have a solution for it.


Best,
Rubens.

Last edited by Yaphet; 05-20-2012 at 07:19 AM.
 
Old 05-20-2012, 08:16 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by Yaphet View Post
There's no concern about security issues here, as this is only experimental
Famous last words...


Quote:
Originally Posted by Yaphet View Post
I want to write -- or change, for my needs -- a kernel module that sends and receives files from a computer to another.
There are valid reasons why some things are and some things are not implemented at the kernel level. The most basic reasoning for not implementing something at the kernel level can be found in any discussion about making the kernel read something as opposed to the safe practice of writing like for instance the userland 'iptables' binary does when it comes to managing Netfilter.
As for the kernel server part kernel version 2.6 did have an in-kernel HTTP daemon for a while. Check the source?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
for help about network traffic in kernel-level programe xswang_usa Linux - Networking 2 01-22-2011 04:55 AM
for help about network traffic in kernel-level programe xswang_usa Programming 1 01-21-2011 01:05 AM
accessing SPI from kernel level and user level ramya_ts Programming 1 01-06-2009 07:30 AM
no network connection after kernel update spAwNY Debian 2 10-04-2007 10:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 07:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration