Check for the function proc_net_create(...) for the netstat part. Thanks, Partha x3025 -----Original Message----- From: Partha Chatterjee Sent: Tuesday, September 13, 2005 3:23 PM To: 'yenganti pradeep' Cc: 'linux-net@xxxxxxxxxxxxxxx' Subject: RE: How to find if there are any open streams netstat -na might be reading from some /proc file. You can just find out the kernel module that registers for writing to that /proc file and refer to the data structure that it traverses while writing to /proc. Thanks, Partha x3025 -----Original Message----- From: yenganti pradeep [mailto:pradeepls143@xxxxxxxxxxx] Sent: Tuesday, September 13, 2005 3:11 PM To: Partha Chatterjee Cc: linux-net@xxxxxxxxxxxxxxx Subject: RE: How to find if there are any open streams <partha.chatterjee@xxxxxxxxxxxxxxxxx> wrote: > Doesn't netstat -na show all sort of open net > handles? I think u didn't get me. We r developing a kernel module( we r working at network layer) n want to find whether there r any open streams from kernel code itself. > > -----Original Message----- > From: linux-net-owner@xxxxxxxxxxxxxxx > [mailto:linux-net-owner@xxxxxxxxxxxxxxx] On Behalf Of yenganti pradeep > Sent: Tuesday, September 13, 2005 12:06 PM > To: linux-net@xxxxxxxxxxxxxxx > Subject: How to find if there are any open streams > > > Hi All, > We are implementing a protocol for our small > wireless > custom network. We have a few different subnets in > our > network. So, when a node from one of these subnets > moves to a different subnet, we want the address to > time out. We arrived at this using dhcp, which > automatically times out. Our problem is that we > should > not time out the previous address if there are any > open streams. > 1.How could we know if there are any open streams? > 2.How to change the lease time at dhcp client on the > run so that it wouldnt timeout? > I'd be glad to find notes on this. > Thanks in advance. > regards, > pradeep > > > > __________________________________________________________ > > Yahoo! India Matrimony: Find your partner now. Go to > http://yahoo.shaadi.com > - > : send the line > "unsubscribe linux-net" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info > at http://vger.kernel.org/majordomo-info.html > __________________________________________________________ Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com - : send the line "unsubscribe linux-net" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html