Re: Посоветyйте сетевyхy под VLAN-ы...

From
Alexey Kouznetsov (2:5020/400)
To
Dmitry Zubov (2:5054/37.63)
Date
2006-11-14T12:36:56Z
Area
RU.UNIX.BSD
From: "Alexey Kouznetsov" <testmail@kouznetsov.com>

"Dmitry Zubov" <Dmitry.Zubov@p186.f186.n465.z2.fidonet.org> wrote in message news:1163421295@p186.f186.n465.z2.ftn...

> В общем, в данном слyчае пpомиск не нyжен, только чем заменить не знаю.

*** arpwatch.c.orig     Tue Nov 14 12:23:28 2006
- --- arpwatch.c  Tue Nov 14 12:23:51 2006
***************
*** 275,281 ****
                snaplen = max(sizeof(struct ether_header),
                    sizeof(struct fddi_header)) + sizeof(struct ether_arp);
                timeout = 1000;
!               pd = pcap_open_live(interface, snaplen, 1, timeout, errbuf);
                if (pd == NULL) {
                        syslog(LOG_ERR, "pcap open %s: %s", interface, errbuf);
                        exit(1);
- --- 275,281 ----
                snaplen = max(sizeof(struct ether_header),
                    sizeof(struct fddi_header)) + sizeof(struct ether_arp);
                timeout = 1000;
!               pd = pcap_open_live(interface, snaplen, 0, timeout, errbuf);
                if (pd == NULL) {
                        syslog(LOG_ERR, "pcap open %s: %s", interface, errbuf);
                        exit(1);

И не будет Вам промиска.

--- ifmail v.2.15dev5.3
 * Origin: Gamma NNTP server Moscow Russia (2:5020/400)
SEEN-BY: 50/12 400/814 450/159 1024 461/43 132 640 469/999 4616/3 4625/8
SEEN-BY: 4641/444 5000/76 5000 5006/1 5007/1 5010/70 5011/13 5012/46 5015/28
SEEN-BY: 5019/31 5020/18 175 194 400 545 982 1057 1909 1922 2238 2395 2871
SEEN-BY: 5020/4441 5021/29 5025/3 5026/14 45 5027/12 5030/1080 1957 5034/10 13
SEEN-BY: 5035/3 38 5036/1 5045/7 5049/1 5051/15 5054/1 4 8 9 11 28 35 36 37 45
SEEN-BY: 5054/63 66 67 70 75 84 85 5059/9 5060/88 5061/15 5062/10 5063/3
SEEN-BY: 5064/7 5066/18 5075/5 5076/1 5077/70 5080/1003 5084/9 5085/13 5095/20
SEEN-BY: 5096/18 6001/10
PATH: 5020/400 545 5054/1 37