2009-04-19T00:54:10 *** kristoffer has quit IRC 2009-04-19T00:59:44 !seen KillerX 2009-04-19T00:59:44 Murmuria: KillerX was last seen in #glendix 4 days, 13 hours, 3 minutes, and 32 seconds ago: Awesome! 2009-04-19T00:59:57 hmm 2009-04-19T01:15:37 Ironical that KillerX says "Awesome" in response to that :P 2009-04-19T02:03:20 *** less1 has quit IRC 2009-04-19T03:55:01 *** Murmuria has quit IRC 2009-04-19T05:01:20 *** jorgeangelini has joined #glendix 2009-04-19T05:04:01 *** jorgeangelini has quit IRC 2009-04-19T05:50:31 *** Murmuria has joined #glendix 2009-04-19T05:50:51 thedoctor, ping 2009-04-19T05:51:41 have you been experiencing a sudden surge of spam on your GMail id? jrm8005 ? 2009-04-19T05:52:11 I think the glendix commit logs are cause of spam... 2009-04-19T05:52:35 http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=W0i&q=%22rahul%40murmuria.in%22&btnG=Search 2009-04-19T05:52:36 Title: "rahul@murmuria.in" - Google Search (at www.google.com) 2009-04-19T05:52:59 :-( 2009-04-19T06:00:38 *** henry_huang has joined #glendix 2009-04-19T06:32:24 *** Murmuria has quit IRC 2009-04-19T07:01:31 *** henry_huang has quit IRC 2009-04-19T09:10:06 *** thedoctor has quit IRC 2009-04-19T09:20:06 *** kristoffer has joined #glendix 2009-04-19T14:16:01 *** KillerX has joined #glendix 2009-04-19T14:39:20 *** Murmuria has joined #glendix 2009-04-19T14:44:03 KillerX: ping 2009-04-19T14:44:24 http://www.google.com/search?q=%22rahul%40murmuria.in%22&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a 2009-04-19T14:44:25 Title: "rahul@murmuria.in" - Google-Suche (at www.google.com) 2009-04-19T14:44:39 I thik that is causing lotsa spam for me :-| 2009-04-19T15:41:30 Murmuria: let's discuss now? 2009-04-19T15:41:42 ok 2009-04-19T15:41:58 but I have to go to Linux 2009-04-19T15:42:04 Oki Doki 2009-04-19T15:42:12 5 min... (I just got back from DotA night) 2009-04-19T15:42:25 and guess whom I bumped into! 2009-04-19T15:42:32 during one of the games!! 2009-04-19T15:42:39 tg_gladiator ! 2009-04-19T15:42:58 I am like, tg?! 2009-04-19T15:43:04 he is like, NIT Jaipur?! 2009-04-19T15:43:07 lol 2009-04-19T15:43:40 this is Glendix channel so I'll stop... brb in 5 mins 2009-04-19T15:43:47 *** Murmuria has quit IRC 2009-04-19T15:47:08 *** Murmuria has joined #glendix 2009-04-19T15:51:34 *** henry_huang has joined #glendix 2009-04-19T15:51:39 Murmuria: alright we're in business 2009-04-19T15:51:42 what's up 2009-04-19T15:52:59 ok... 2009-04-19T15:53:25 I have written some more skeleton code... but lets start http://slashnet.wordpress.com/2009/03/25/fsnet_create-a-good-plan/ 2009-04-19T15:53:26 Title: fsnet_create a good plan? « /net in Linux: project log (at slashnet.wordpress.com) 2009-04-19T15:54:08 KillerX, actually, I only want you to see the link at the bottom 2009-04-19T15:54:11 http://fxr.watson.org/fxr/source/net/ipv4/af_inet.c?v=linux-2.6#L264 2009-04-19T15:54:13 Title: fxr.watson.org: linux-2.6 sys/net/ipv4/af_inet.c (at fxr.watson.org) 2009-04-19T15:54:16 wtf why is that blog not on my reading list yet :-/ 2009-04-19T15:54:19 * KillerX adds it now 2009-04-19T15:55:17 aah, well, I thought I told you about that blog... 2009-04-19T15:55:24 yep you did 2009-04-19T15:55:24 anyway.. good :) 2009-04-19T15:55:36 Ok, so you are creating a fsnet_create similar to inet_create 2009-04-19T15:55:43 with mostly the same stuff inside? 2009-04-19T15:55:55 if so, why not just use inet_create (other than the question of overhead) 2009-04-19T15:56:06 so see this int inet_stream_connect() 2009-04-19T15:56:12 well, its totally different 2009-04-19T15:56:31 I go the same direction as earlier only below this function 2009-04-19T15:56:41 as in, I use the sk structure 2009-04-19T15:56:50 but not the socket structure 2009-04-19T15:57:01 I dont want to set and maintain a socket structure 2009-04-19T15:57:31 inet_stream_connet is here --> http://fxr.watson.org/fxr/source/net/ipv4/af_inet.c?v=linux-2.6#L564 2009-04-19T15:57:32 Title: fxr.watson.org: linux-2.6 sys/net/ipv4/af_inet.c (at fxr.watson.org) 2009-04-19T15:58:15 Yep, saw it 2009-04-19T15:58:17 so what about it 2009-04-19T15:59:21 so, one thing , what is that EXPORT_SYMBOL at the bottom... 2009-04-19T15:59:40 they do it for this functin I am implementing too... 2009-04-19T16:00:56 also, in the whole of the linux kernel the only place the inet_stream_connect is called is here --> http://fxr.watson.org/fxr/source/net/ipv4/af_inet.c?v=linux-2.6#L841 2009-04-19T16:00:57 Title: fxr.watson.org: linux-2.6 sys/net/ipv4/af_inet.c (at fxr.watson.org) 2009-04-19T16:01:10 for structure proto_ops 2009-04-19T16:01:34 now, here is what I am working with.... http://pastebin.com/d3598c293 2009-04-19T16:01:35 Title: C pastebin - collaborative debugging tool (at pastebin.com) 2009-04-19T16:02:17 I plan to directly call the slashnet_stream_connect() function 2009-04-19T16:02:36 for the "connect ip!port" command to the ctl file 2009-04-19T16:03:05 so can you read all this stuff and through more light on everything? 2009-04-19T16:03:16 and comment on my approach 2009-04-19T16:07:30 I dont plan on using anything like struct proto_ops 2009-04-19T16:08:12 so the diagram I drew has a slight change... now I must point fsnet_create directly to the sk_prot , instead of via proto_ops 2009-04-19T16:08:25 also, what is inet_create? 2009-04-19T16:08:35 I did not understand that code... 2009-04-19T16:09:02 if stream_connect does the connection, inet_create comes before that? it creates a Socket? 2009-04-19T16:09:43 so then, when inet_stream_connect is called, the sock->sk structure already has data... 2009-04-19T16:09:54 ? 2009-04-19T16:22:20 Murmuria: inet_create initialises the data structures 2009-04-19T16:22:39 then inet_stream_connect actually performs the connect 2009-04-19T16:22:51 EXPORT_SYMBOL is there so that modules can use that function 2009-04-19T16:23:44 and as far as what we should be doing for /net, stick with the model that inet uses, because a single connection may be used for multiple 'connect' calls 2009-04-19T16:24:10 so allocating data structures (and consequently freeing them) is a separate step from connection (and disconnection) 2009-04-19T16:24:26 for example, it is possible to call tcp_close() on a tcp connection but still read() data out of it 2009-04-19T16:25:22 *** henry_huang has quit IRC 2009-04-19T16:26:07 so then my slashnet_stream_connect() is in exactly the right direction? 2009-04-19T16:26:30 KillerX, I should continue with that pastebin code? 2009-04-19T16:26:38 which I have written so far 2009-04-19T16:27:42 it is different from the inet as in, I dont give it a struct socket *sock 2009-04-19T16:28:12 hmm 2009-04-19T16:28:14 I give it a struct sock *sk, maybe through the filp? 2009-04-19T16:28:17 looks good on first go 2009-04-19T16:28:33 I think you can continue in this direction for now 2009-04-19T16:28:45 so I need to know what that sk = sock->sk gives us... 2009-04-19T16:29:09 first line in the inet_stream_connect() 2009-04-19T16:29:50 it gives whatever inet_create set it to 2009-04-19T16:30:28 how do I print/predict the contents of sk? How do I provide the same using my tcp_clone_process() ---> http://hg.glendix.org/glendix/rev/6fdffc287daf 2009-04-19T16:30:29 Title: glendix: changeset 6fdffc287daf (at hg.glendix.org) 2009-04-19T16:30:57 inet_create I dont really understand... 2009-04-19T16:31:54 It does sk = sk_alloc(net, PF_INET, GFP_KERNEL, answer_prot); 2009-04-19T16:32:37 and err = sk->sk_prot->init(sk); 2009-04-19T16:40:16 KillerX were you giving more comments? 2009-04-19T16:40:41 check the code for sk_alloc? 2009-04-19T17:59:08 *** thedoctor has joined #glendix 2009-04-19T18:03:33 Murmuria: no, not a surge in spam, but a couple. 2009-04-19T19:50:19 *** thedoctor has quit IRC 2009-04-19T20:21:09 *** thedoctor has joined #glendix 2009-04-19T20:51:33 *** thedoctor has quit IRC 2009-04-19T21:03:24 *** thedoctor has joined #glendix 2009-04-19T22:25:17 *** kristoffer has quit IRC 2009-04-19T23:39:18 *** thedoctor is now known as jrm8005 2009-07-19T02:03:06 *** KillerX has quit IRC 2009-07-19T02:39:10 *** synchris has joined #glendix 2009-07-19T05:20:34 *** Liu-Yuan has joined #glendix 2009-07-19T06:23:58 *** KillerX has joined #glendix 2009-07-19T07:05:04 *** KillerX has quit IRC 2009-07-19T08:57:47 *** Liu-Yuan` has joined #glendix 2009-07-19T08:57:48 *** Liu-Yuan has quit IRC 2009-07-19T10:43:21 *** KillerX has joined #glendix 2009-07-19T10:53:00 *** KillerX has quit IRC 2009-07-19T11:57:17 *** Liu-Yuan` has quit IRC 2009-07-19T18:33:31 *** KillerX has joined #glendix 2009-07-19T20:50:34 *** solidsnack has joined #glendix 2009-07-19T22:05:09 *** solidsnack has quit IRC 2009-07-19T22:05:53 *** solidsnack has joined #glendix 2009-07-19T22:23:13 *** KillerX has quit IRC 2009-07-19T23:14:51 *** solidsnack has quit IRC