ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Valery V. Inozemtsev" <shrek@freesource.info>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: Re: [devel] Re: черешневые мысли
Date: Mon, 11 Jul 2005 23:05:40 +0400
Message-ID: <200507112305.47473.shrek@freesource.info> (raw)
In-Reply-To: <20050711162031.629effbf.pilot@altlinux.ru>

[-- Attachment #1: Type: text/plain, Size: 3143 bytes --]

В сообщении от 11 Июль 2005 16:20 Denis Ovsienko написал(a):
> > Собсно "проблема" скорее эстетическая -- нафига мне libwireless
> > и ifrename, если WiFi нет и переименовывать интерфейсы тоже не
> > надо? :)
>
> Если вспомнить, что у тебя на ноутбуке два слота с сетевыми картами, то как
> раз нужно. libwireless востребован ifrename, обоснованность не проверял.

$ gcc -o ifrename ifrename.c
/tmp/.private/shrek/ccZ9DBYt.o(.text+0x424): In function `mapping_addmac':
ifrename.c: undefined reference to `iw_ether_aton'
/tmp/.private/shrek/ccZ9DBYt.o(.text+0x594): In function `mapping_getmac':
ifrename.c: undefined reference to `iw_get_mac_addr'
/tmp/.private/shrek/ccZ9DBYt.o(.text+0x602):ifrename.c: undefined reference to 
`iw_ether_ntop'
/tmp/.private/shrek/ccZ9DBYt.o(.text+0x1c02): In function `probe_mappings':
ifrename.c: undefined reference to `iw_get_mac_addr'
/tmp/.private/shrek/ccZ9DBYt.o(.text+0x1d34): In function `probe_debian':
ifrename.c: undefined reference to `iw_get_mac_addr'
/tmp/.private/shrek/ccZ9DBYt.o(.text+0x2131): In function `main':
ifrename.c: undefined reference to `iw_sockets_open'
/tmp/.private/shrek/ccZ9DBYt.o(.text+0x2233): In function `process_iflist':
ifrename.c: undefined reference to `iw_enum_devices'
/tmp/.private/shrek/ccZ9DBYt.o(.text+0x225b):ifrename.c: undefined reference 
to `iw_enum_devices'
collect2: ld returned 1 exit status

$ gcc -o ifrename ifrename.c -liw -L/lib
все ок. 

$ grep iw ifrename.c
 * You need to link this code against "iwlib.c" and "-lm".
#include "iwlib.h"              /* Wireless Tools library */
  char                  iwproto[IFNAMSIZ + 1];  /* Wireless/protocol name */
        mapping_addiwproto(struct if_mapping *  ifnode,
        mapping_cmpiwproto(struct if_mapping *  ifnode,
        mapping_getiwproto(int                  skfd,
  /* Wireless Protocol from iwconfig */
  { "iwproto", &mapping_addiwproto, &mapping_cmpiwproto, 
&mapping_getiwproto },
      if(iw_ether_aton(ifnode->mac_filter, &ifnode->mac) != 1)
  ret = iw_get_mac_addr(skfd, ifname, &target->mac, &target->hw_type);
      iw_ether_ntop(&target->mac, target->mac_filter);
mapping_addiwproto(struct if_mapping *  ifnode,
  if(len >= sizeof(ifnode->iwproto))
  memcpy(ifnode->iwproto, string, len + 1);
            ifnode->iwproto, linenum);
mapping_cmpiwproto(struct if_mapping *  ifnode,
  return(fnmatch(ifnode->iwproto, target->iwproto, FNM_CASEFOLD));
mapping_getiwproto(int                  skfd,
  struct iwreq          wrq;
  if(iw_get_ext(skfd, ifname, SIOCGIWNAME, &wrq) < 0)
  strncpy(target->iwproto, wrq.u.name, IFNAMSIZ);
  target->iwproto[IFNAMSIZ] = '\0';
            ifname, target->iwproto);
      iw_get_mac_addr(skfd, ifnode->ifname, &mac, &hw_type);
              iw_get_mac_addr(skfd, p, &mac, &hw_type);
  iw_enum_devices(skfd, &process_ifname, args, count);
   * iw_enum_devices() may get out of sync with the real interfaces,
    iw_enum_devices(skfd, &process_ifname, args, count);
  if((skfd = iw_sockets_open()) < 0)
  iw_sockets_close(skfd);

обоснованность на лицо

-- 
Valery V. Inozemtsev

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

  parent reply	other threads:[~2005-07-11 19:05 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-11  9:49 [devel] " Michael Shigorin
2005-07-11 10:03 ` Denis Ovsienko
2005-07-11  9:56   ` [devel] " Michael Shigorin
2005-07-11 12:20     ` Denis Ovsienko
2005-07-11 12:17       ` [devel] etcnet, ifrename, libwireless Michael Shigorin
2005-07-11 16:18         ` Alexander Bokovoy
2005-07-11 18:47           ` [devel] " Michael Shigorin
2005-07-12  6:09             ` Anton Farygin
2005-07-11 19:05       ` Valery V. Inozemtsev [this message]
2005-07-11 10:11 ` [devel] черешневые мысли Sergey V Turchin
2005-07-11 10:53   ` [devel] " Michael Shigorin
2005-07-11 10:13 ` Anton Farygin
2005-07-11 11:15   ` [devel] разметка диска (was: черешневые мысли) Michael Shigorin
2005-07-11 11:33     ` [devel] разметка диска Andrei Bulava
2005-07-11 11:47       ` [devel] /etc/modutils.d/alsa-modindex Michael Shigorin
2005-07-11 14:11   ` [devel] Re: черешневые мысли Stanislav Ievlev
2005-07-11 14:24     ` [devel] alterator backend libraries Michael Shigorin
2005-07-11 14:36       ` Stanislav Ievlev
2005-07-11 10:40 ` [devel] черешневые мысли Вячеслав Диконов
2005-07-11 13:11   ` Andrey Rahmatullin
2005-07-11 13:21   ` Sergey Vlasov
2005-07-11 13:44     ` [devel] freetype vs freetype2 Michael Shigorin
2005-07-11 11:33       ` Вячеслав Диконов
2005-07-11 14:10         ` Serge Ryabchun
2005-07-11 14:30           ` Вячеслав Диконов
2005-07-11 15:46             ` Вячеслав Диконов
2005-07-11 18:12               ` Valery V. Inozemtsev
2005-07-11 16:56                 ` Вячеслав Диконов
2005-07-11 22:42             ` Vitaly Lipatov
2005-07-11 11:24 ` [devel] ...и прочая луна Michael Shigorin
2005-07-13 22:46 ` [devel] Re: черешневые мысли Alexey Tourbin
2005-07-14  6:20   ` [devel] запылившиеся пакеты (was: черешневые мысли) Michael Shigorin

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=200507112305.47473.shrek@freesource.info \
    --to=shrek@freesource.info \
    --cc=devel@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 Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

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


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