🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: it.comp.os.unix
Article #8

connessioni in TIME_WAIT

#8
From: Mauro Tognoni
Date: Wed, 28 Nov 2001 08:25
41 lines
2237 bytes
ciao,


sto cercando di intercettare e chiudere delle connessioni che rimangono in
TIME_WAIT su un sistema Solaris 2.6.

Ho fatto un programmino semplice:


struct nlist nl[] = {
#define N_TCB          0
           { "_tcb" },
           ""
};
.................

            if(!(kd = kvm_open(NULL, NULL, NULL, O_RDWR, NULL))) {
                perror("kvm_open");
               /* printf("%s", argv[0]);*/
               exit(1);
            }
	if (kvm_nlist(kd, namelist)) {
		nlisterr(namelist);
		return(0);
	}
	if (namelist[X_TCBTABLE].n_value == 0) {
		error("No symbols in namelist");
		return(0);
	}
.................

quando lo eseguo esce sempre l'errore "No symbols in namelist", perch� ?

Ti ringrazio se riesci ad aiutarmi perch� son bloccato.

Ciao.


-- 
Posted from  [217.59.81.40] 
via Mailgate.ORG Server - http://www.Mailgate.ORG
Technical Details
Message-ID: <e07f5c9643a4cc7bcef7b98b4078d8ae.22221@mygate.mailgate.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.infostrada.it!bofh.it!robomod

Show Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII
X-Google-Thread: f939e,b3d04bcc0518adf7,start
X-Google-Attributes: gidf939e,public
X-Google-Thread: 10f67c,b3d04bcc0518adf7,start
X-Google-Attributes: gid10f67c,public
X-Google-ArrivalTime: 2001-11-28 00:55:06 PST
From: "Mauro Tognoni" <m_tognoni@libero.it>
Newsgroups: it.comp.os.unix,it.comp.lang.c
Subject: connessioni in TIME_WAIT
Date: Wed, 28 Nov 2001 08:25:05 +0000 (UTC)
Organization: Mailgate.ORG Server - http://www.Mailgate.ORG
Message-ID: <e07f5c9643a4cc7bcef7b98b4078d8ae.22221@mygate.mailgate.org>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injector-Info: news.mailgate.org; posting-host=217.59.81.40; posting-account=22221; posting-date=1006927122
User-Agent: Mailgate Web Server
X-URL: http://www.Mailgate.ORG
Approved: robomod@news.nic.it (1.22)
Sender: robomod@news.nic.it
X-Mail-Path: newsserver.inwind.it!mail.mailgate.org!news@mailgate.org
X-Original-NNTP-Posting-Host: 217.59.81.40
X-Original-X-Complaints-To: abuse@mailgate.org
X-Original-X-Trace: news.mailgate.org 1006927122 7255 217.59.81.40 (Wed Nov 28 09:25:05 2001)
NNTP-Posting-Host: a.976.anti-phl.bofh.it
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.infostrada.it!bofh.it!robomod
Lines: 41