From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jonas.Furrer@BIT.admin.ch Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Kill TCP/IP Connections Date: Mon, 13 Jan 2003 14:09:21 +0100 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <08CC1787EEE6D311804A0008C72813EA067DAD48@bfi0001.bfi.admin.ch> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: main.gmane.org 1042463315 13883 80.91.224.249 (13 Jan 2003 13:08:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 13 Jan 2003 13:08:35 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18Y4KP-0003bW-00 for ; Mon, 13 Jan 2003 14:08:33 +0100 Original-Received: (qmail 14173 invoked by uid 5); 13 Jan 2003 13:09:34 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 14164 invoked by uid 49493); 13 Jan 2003 13:09:34 -0000 Original-Received: from Jonas.Furrer@BIT.admin.ch by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(0.8/5.0):. Processed in 0.452994 secs); 13 Jan 2003 13:09:34 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 13 Jan 2003 13:09:33 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #30669) with ESMTP id <0H8N00MF3LVV1D@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 13 Jan 2003 08:09:33 -0500 (EST) Original-Received: from mag05.bb.admin.ch (fwigk1.admin.ch [193.5.216.70]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #30669) with ESMTP id <0H8N00I81LVSRK@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 13 Jan 2003 08:09:30 -0500 (EST) Original-Received: from mar01.bb.admin.ch (mar01.bb.admin.ch [193.5.222.71]) by mag05.bb.admin.ch (8.11.2/8.11.2) with ESMTP id h0DD9R206587 for ; Mon, 13 Jan 2003 14:09:27 +0100 (MET) Original-Received: from mas21.bb.admin.ch (mas21.bb.admin.ch [193.5.222.82]) by mar01.bb.admin.ch (8.11.2/8.11.2) with SMTP id h0DD9Rf27709 for ; Mon, 13 Jan 2003 14:09:27 +0100 (MET) Original-Received: by ad01007exc.ad.admin.ch with Internet Mail Service (5.5.2653.19) id ; Mon, 13 Jan 2003 14:09:26 +0100 Original-To: tru64-unix-managers@ornl.gov X-Mailer: Internet Mail Service (5.5.2653.19) Xref: main.gmane.org gmane.os.tru64.managers:2937 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2937 Hi, I received answers from: Arrigo Triluzi arrigo( @ )albourne.com Nikolai BldrxJ( @ )netscape.net Thanks a lot Arrigo and Nikolai, but I couldn't compile libnet, libnids and dsniff. I'm not experienced enough in this field. Regards, .. Jonas ---------------------------------------------------------------------------- ---- Original question: -------------------------- I searching for a possibility to kill TCP/IP connection. So that IP-connections can be kill form a defined client on a specified service port without killing the server process. I saw that dsniff (http://naughty.monkey.org/~dugsong/dsniff/) includes a command named tcpkill. But I can't compile dsniff on a Tru64 V5.1 system. The story: - Installing libpcap form Tru64 OpenSource CD -> ok - Installing gcc from Tru64 OpenSource CD -> ok - Downloading libnet / libnids from http://www.packetfactory.net -> ok - Compiling libnet without success: -> nok gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c libnet_link_pf.c libnet_link_pf.c:36: ../include/low_libnet.h: No such file or directory *** Exit 1 Stop. *** Exit 1 Stop. - Compiling libnids without success -> nok gcc -c -g -O2 -D_BSD_SOURCE -Wall -DHAVE_ICMPHDR=0 -DHAVE_TCP_STATES=0 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/local/include ip_fragment.c ip_fragment.c: In function `ip_create': ip_fragment.c:408: structure has no member named `ip_hl' ip_fragment.c:397: warning: `ihlen' might be used uninitialized in this function ip_fragment.c: In function `ip_glue': ip_fragment.c:522: structure has no member named `ip_hl' ip_fragment.c: In function `ip_defrag': ip_fragment.c:565: structure has no member named `ip_hl' ip_fragment.c:538: warning: `ihl' might be used uninitialized in this function *** Exit 1 Stop. *** Exit 1 Stop. - No chance to compile dnsniff :-( Is there anybody out there who knows what I can do now. Maybe there is another tool for my purpose. Any help is welcome. Thanks .. Jonas ---------------------------------------------------------------------------- ---- Answer from arrigo@albourne.com: First mail: There is a chance... what you are looking at is BSD-style (OpenBSD to be precise) naming conventions for the IP header structures. ip_hl under SysV is called something different. Go and have a look at /usr/include/netinet and friends (in particular ip.h) and translate the fields into SysV names. Then it will all work. Second mail: The directory is /usr/include/netinet and the file is ip.h. In it you will find the following: struct ip { #if defined(_KERNEL) || defined(_NO_BITFIELDS) || (__STDC__ == 1) u_char ip_vhl; /* version and header length */ #else #if BYTE_ORDER == LITTLE_ENDIAN u_char ip_hl:4, /* header length */ ip_v:4; /* version */ #endif #if BYTE_ORDER == BIG_ENDIAN u_char ip_v:4, /* version */ ip_hl:4; /* header length */ #endif #endif etc. These are the definitions that you should be using. For some reason libnet is not finding them so you need to find out which include files are being used by libnet. You should be able to hack it to work, since Tru64 is not too bad w.r.t. TCP/IP programming. ---------------------------------------------------------------------------- ---- Answer from BldrxJ@netscape.net You might need to use GNU make as well as GNU automake and GNU autoconfig for this. Leave the system make in place if you do, and just tell the compiler to use GNU make. hope this helps,