Skip to contentSkip to conversation

two questions

DISCUSSION kartikey bhatt 2 participants 2 messages Jul 3, 2004

lore
Share & tools
lore
#0 lore raw

i have two questions if anyone can help me out?

(1) in bsd when a socket is created, the process creating the socket is passed as a structure to so_create call. in linux how can we have this mechanism by which when a socket is created we can access the task_t of the process creating the socket?

(2) given the sk_buff* how to lookup the associated socket?

please help me out.

--kartikey

_________________________________________________________________
Get FREE unlimited Citibank ATM transactions! http://go.msnserver.com/IN/52040.asp Discover real-value banking here.

#1 lore raw
Quoted 10 lines · kartikey bhatt

(1) in bsd when a socket is created, the process creating the socket is passed as a structure to so_create call. in linux how can we have this mechanism by which when a socket is created we can access the task_t of the process creating the socket?

(2) given the sk_buff* how to lookup the associated socket?

Those questions imply that you want to do "something". Please tell us what that "something" is.

Signature · 1 line
Matthias Urlichs