ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@altlinux.ru>
To: community@altlinux.ru
Subject: [Comm] Re: ?: почему эта программа жрет swap w/ speed 1Mb/sec
Date: Thu, 21 Aug 2003 16:55:56 +0400
Message-ID: <20030821125556.GL1881@julia.office.altlinux.ru> (raw)
In-Reply-To: <20030821113056.GI1881@julia.office.altlinux.ru>


[-- Attachment #1.1: Type: text/plain, Size: 322 bytes --]

On Thu, Aug 21, 2003 at 03:30:56PM +0400, Alexey Tourbin wrote:
> Конечно.  Память выделяется в функции libnet_open_link_interface, а я
> зафиксил функцию libnet_close_link_interface.  В сущности, этого хорошо
> видно из двух предыдущих писем.

Вот testcase (пускать из-под рута).
В libnet2 aka libnet-1.x уже исправлено.

[-- Attachment #1.2: test-libnet1.c --]
[-- Type: text/plain, Size: 253 bytes --]

#include <stdio.h>
#include <libnet.h>

int main()
{
	while(1) {
		char buf[LIBNET_ERRBUF_SIZE];
        	struct libnet_link_int *network = 
			libnet_open_link_interface("eth0", buf);
		if (network)
        		libnet_close_link_interface(network);
	}
}

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2003-08-21 12:55 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-21  6:30 [Comm] " Oleg K. Artemjev
2003-08-21  6:37 ` [Comm] " Michael Shigorin
2003-08-21  8:13   ` Oleg K. Artemjev
2003-08-21 10:16     ` Michael Shigorin
2003-08-21 10:39       ` Oleg K. Artemjev
2003-08-21 11:01         ` Michael Shigorin
2003-08-21  7:12 ` [Comm] " Sasha Martsinuk
2003-08-21  8:10   ` Oleg K. Artemjev
2003-08-21  8:28     ` Alexey I. Froloff
2003-08-21 10:53 ` [Comm] " Alexey Tourbin
2003-08-21 11:04   ` Alexey Tourbin
2003-08-21 11:24     ` Alexey I. Froloff
2003-08-21 11:30       ` Alexey Tourbin
2003-08-21 12:55         ` Alexey Tourbin [this message]
2003-08-21 12:12   ` Oleg K. Artemjev
2003-08-21 12:46     ` Sergey Vlasov
2003-08-21 12:54     ` Alexey Tourbin
2003-08-21 13:17       ` Oleg K. Artemjev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030821125556.GL1881@julia.office.altlinux.ru \
    --to=at@altlinux.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git