lkml.org 
[lkml]   [1999]   [Apr]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectHelp . . . I can't open raw socket in the kernel
a conf deadline is rapidly approaching, and I am stuck trying to 
open a raw socket in the kernel. I did build a small program to
open a raw socket using socket(AF_INET,SOCK_RAW,IPPROTO_RAW)
this seems to work and gives me the deisred behavior in the context
of my program. i want this same function basically in the kernel.
I tried sys_socket with the same parameters (and even placed some
printks in the kernel to see what my app did), but i still can't
get it to even create the socket.

when i run my app, i find that sys_socket(2,3,255) is what is called
eventually. but i tried that to no avail.

Is there something else i need to do to get the raw socket. -OR-
is there any other way to send a IP packet that i have populated
myself?

thanks
- ayman


--
----------------------------------------------------------------------
Ayman El-Khashab <ayman@ccwf.cc.utexas.edu> PGP key available from
The University of Texas at Austin keyserver or by finger
Key Fingerprint: 42 D3 22 E6 D1 73 45 09 DA AE 60 DE 24 CB 71 18
----------------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.037 / U:22.716 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site