[tcpdump-workers] Automatic report from sources (tcpdump libpcap htdocs) between 28.07.2004 - 29.07.2004 GMT

2004-07-29 Thread Automatic cvs log generator /tcpdump/bin/makelog
CVS log entries from 28.07.2004 (Wed) 09:04:04 - 29.07.2004 (Thu) 09:04:06 GMT
=
Summary by authors
=
Author: guy
File: tcpdump/print-tcp.c; Revisions: 1.107.2.5
File: tcpdump/print-icmp6.c; Revisions: 1.78, 1.72.2.6

=
Combined list of identical log entries
=
Description:
From Shinsuke Suzuki: fix a boundary check, and add some additional
boundary checks.
Modified files:
File: tcpdump/print-icmp6.c; Revision: 1.78;
Date: 2004/07/28 19:59:24; Author: guy; Lines: (+4 -2)
File: tcpdump/print-icmp6.c; Revision: 1.72.2.6;
Date: 2004/07/28 20:09:17; Author: guy; Lines: (+4 -2)
=
Log entries
=
Description:
Propagate from the main branch

revision 1.117
date: 2004/07/15 00:13:01;  author: guy;  state: Exp;  lines: +3 -3
sizeof() could be unsigned long or unsigned int; cast it to
unsigned long and print it with %lu, so it works in either case,
regardless of whether long is the same size as int or not.
Modified files:
File: tcpdump/print-tcp.c; Revision: 1.107.2.5;
Date: 2004/07/28 20:11:31; Author: guy; Lines:  (+3 -3)
=
Summary of modified files
=
File: tcpdump/print-icmp6.c
Revisions: 1.78, 1.72.2.6
Authors: guy (+4 -2), guy (+4 -2)
---
File: tcpdump/print-tcp.c
Revisions: 1.107.2.5
Authors: guy (+3 -3)
-- 
Automatic cron job from /tcpdump/bin/makelog
-
This is the tcpdump-workers list.
Visit https://lists.sandelman.ca/ to unsubscribe.


[tcpdump-workers] libpcap and ppp inbound/outbound on Kernel 2.6.6

2004-07-29 Thread daschi
Hi everyone,

I'm trying to set up my linux-box (kernel 2.6.6) to use ppp with
active-filter, but everytime I try to call my provider an error occurs:

pppd: error in active-filter expression: inbound/outbound not supported by
linktype 0

When I start the connection with a filter not containing in-/outbound
everything works fine and I can capture packets with tcpdump as well with
in-/outbound as without. When I use tcpdump on my ppp Device the used
linktype is DLT_LINUX_SLL (113) and everything ist just fine.

Has anyone of you an idea why the linktype is 0 when I'm trying to connect?
I've allready tried modifying the options.c settig the linetype to 113 but
it didn't work :(
Adding 0 to the devices which  can make use of inbound/outbound wasn't
successful, either. Seems like the linetype of the ppp connections changes
during call.

Regards and tia,
Daniel

-- 
NEU: WLAN-Router für 0,- EUR* - auch für DSL-Wechsler!
GMX DSL = supergünstig  kabellos http://www.gmx.net/de/go/dsl

-
This is the tcpdump-workers list.
Visit https://lists.sandelman.ca/ to unsubscribe.


Re: [tcpdump-workers] libpcap on AIX 5.2

2004-07-29 Thread alex medvedev
hi,

not sure this will help, but try adding -lodm to your cc command.
the libpcap should have been already compiled with -lodm...

-alexm
13:37 29/07/2004

On Thu, 29 Jul 2004, Lowrie, Tom wrote:

 Greetings,

 I have a 43P Model 150 rs/6000 running AIX 5.2.0.0 ML 03, using C For AIX 6.0
 with the latest (April 2004) PTF applied.

 I installed from the source code libpcap 0.8.3 with no problems. I used:

  ./configure
   make
   make install

 and noticed no problems. I then used the sample test from Tim Carstons document
 with the following results:

 Test code:

 #include stdio.h
 #include pcap.h

 int main()
 {
  char *dev, errbuf[PCAP_ERRBUF_SIZE];
  dev = pcap_lookupdev(errbuf);
  printf(Device is: %s\n, dev);
  return(0);
 }

 # cc -bnoquiet -lpcap -L/usr/local/lib -I/usr/local/include -o get_dev get_dev.c

 (ld): halt 4
 (ld): lrgpage 0
 (ld): savename get_dev
 (ld): filelist 5 1
 (ld): i /lib/crt0.o
 (ld): lib /usr/local/lib/libpcap.a
 (ld): i get_dev.o
 (ld): lib /usr/lib/libxlopt.a
 (ld): lib /usr/lib/libc.a
 LIBRARY: Shared object libc.a[shr.o]: 2526 symbols imported.
 LIBRARY: Shared object libc.a[meth.o]: 2 symbols imported.
 LIBRARY: Shared object libc.a[posix_aio.o]: 17 symbols imported.
 LIBRARY: Shared object libc.a[aio.o]: 11 symbols imported.
 LIBRARY: Shared object libc.a[pse.o]: 5 symbols imported.
 LIBRARY: Shared object libc.a[dl.o]: 4 symbols imported.
 LIBRARY: Shared object libc.a[pty.o]: 1 symbols imported.
 FILELIST: Number of previously inserted files processed: 5
 (ld): resolve
 RESOLVE: 450 of 4316 symbols were kept.
 (ld): addgl /usr/lib/glink.o
 ADDGL: Glink code added for 57 symbols.
 (ld): er full
 ld: 0711-318 ERROR: Undefined symbols were found.
 The following symbols are in error:
  SymbolInpndx  TY CL Source-File(Object-File) OR 
 Import-File{Shared-object}
   RLD: Address  Section  Rld-type Referencing Symbol
  
 --
  .genmajor [104]   ER PR 
 ./pcap-bpf.c(/usr/local/lib/libpcap.a[pcap-bpf.o])
00a4 .textR_RBR[14].bpf_load
  .getminor [110]   ER PR 
 ./pcap-bpf.c(/usr/local/lib/libpcap.a[pcap-bpf.o])
0100 .textR_RBR[14].bpf_load
  .genminor [112]   ER PR 
 ./pcap-bpf.c(/usr/local/lib/libpcap.a[pcap-bpf.o])
0128 .textR_RBR[14].bpf_load
  .odm_unlock   [126]   ER PR 
 ./pcap-bpf.c(/usr/local/lib/libpcap.a[pcap-bpf.o])
0480 .textR_RBR[16]
 .bpf_odmcleanup
  odmerrno  [52]ER UA 
 ./pcap-bpf.c(/usr/local/lib/libpcap.a[pcap-bpf.o])
13c8 .dataR_POS[54]odmerrno
  .odm_err_msg  [128]   ER PR 
 ./pcap-bpf.c(/usr/local/lib/libpcap.a[pcap-bpf.o])
049c .textR_RBR[16]
 .bpf_odmcleanup
0518 .textR_RBR[16]
 .bpf_odmcleanup
05d4 .textR_RBR[18].bpf_odminit
065c .textR_RBR[18].bpf_odminit
  .odm_terminate[130]   ER PR 
 ./pcap-bpf.c(/usr/local/lib/libpcap.a[pcap-bpf.o])
04fc .textR_RBR[16]
 .bpf_odmcleanup
  .odm_initialize   [132]   ER PR 
 ./pcap-bpf.c(/usr/local/lib/libpcap.a[pcap-bpf.o])
05b4 .textR_RBR[18].bpf_odminit
  .odm_lock [134]   ER PR 
 ./pcap-bpf.c(/usr/local/lib/libpcap.a[pcap-bpf.o])
063c .textR_RBR[18].bpf_odminit
 ER: The return code is 8.


 Can someone point me in the direction I need to go to fix this?

 Thanks,

 Tom

-
This is the tcpdump-workers list.
Visit https://lists.sandelman.ca/ to unsubscribe.


Re: [tcpdump-workers] libpcap on AIX 5.2

2004-07-29 Thread Lowrie, Tom
Alex,

Adding -lcfg along with -lodm solves my problem. Thanks for the
push in the right direction.

Next step will be to figure how to compile the libpcap source so
that these libraries are included.

Thanks again.

Tom


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of alex
medvedev
Sent: Thursday, July 29, 2004 1:46 PM
To: [EMAIL PROTECTED]
Subject: Re: [tcpdump-workers] libpcap on AIX 5.2


hi,

not sure this will help, but try adding -lodm to your cc command.
the libpcap should have been already compiled with -lodm...

-alexm
13:37 29/07/2004

On Thu, 29 Jul 2004, Lowrie, Tom wrote:

 Greetings,

 I have a 43P Model 150 rs/6000 running AIX 5.2.0.0 ML 03, using C For AIX 6.0
 with the latest (April 2004) PTF applied.

 I installed from the source code libpcap 0.8.3 with no problems. I used:

  ./configure
   make
   make install

 and noticed no problems. I then used the sample test from Tim Carstons document
 with the following results:

 Test code:

 #include stdio.h
 #include pcap.h

 int main()
 {
  char *dev, errbuf[PCAP_ERRBUF_SIZE];
  dev = pcap_lookupdev(errbuf);
  printf(Device is: %s\n, dev);
  return(0);
 }

 # cc -bnoquiet -lpcap -L/usr/local/lib -I/usr/local/include -o get_dev get_dev.c

 (ld): halt 4
 (ld): lrgpage 0
 (ld): savename get_dev
 (ld): filelist 5 1
 (ld): i /lib/crt0.o
 (ld): lib /usr/local/lib/libpcap.a
 (ld): i get_dev.o
 (ld): lib /usr/lib/libxlopt.a
 (ld): lib /usr/lib/libc.a
 LIBRARY: Shared object libc.a[shr.o]: 2526 symbols imported.
 LIBRARY: Shared object libc.a[meth.o]: 2 symbols imported.
 LIBRARY: Shared object libc.a[posix_aio.o]: 17 symbols imported.
 LIBRARY: Shared object libc.a[aio.o]: 11 symbols imported.
 LIBRARY: Shared object libc.a[pse.o]: 5 symbols imported.
 LIBRARY: Shared object libc.a[dl.o]: 4 symbols imported.
 LIBRARY: Shared object libc.a[pty.o]: 1 symbols imported.
 FILELIST: Number of previously inserted files processed: 5
 (ld): resolve
 RESOLVE: 450 of 4316 symbols were kept.
 (ld): addgl /usr/lib/glink.o
 ADDGL: Glink code added for 57 symbols.
 (ld): er full
 ld: 0711-318 ERROR: Undefined symbols were found.
 The following symbols are in error:
  SymbolInpndx  TY CL Source-File(Object-File) OR 
 Import-File{Shared-object}
   RLD: Address  Section  Rld-type Referencing Symbol
  
 --
  .genmajor [104]   ER PR 
 ./pcap-bpf.c(/usr/local/lib/libpcap.a[pcap-bpf.o])
00a4 .textR_RBR[14].bpf_load
  .getminor [110]   ER PR 
 ./pcap-bpf.c(/usr/local/lib/libpcap.a[pcap-bpf.o])
0100 .textR_RBR[14].bpf_load
  .genminor [112]   ER PR 
 ./pcap-bpf.c(/usr/local/lib/libpcap.a[pcap-bpf.o])
0128 .textR_RBR[14].bpf_load
  .odm_unlock   [126]   ER PR 
 ./pcap-bpf.c(/usr/local/lib/libpcap.a[pcap-bpf.o])
0480 .textR_RBR[16]
 .bpf_odmcleanup
  odmerrno  [52]ER UA 
 ./pcap-bpf.c(/usr/local/lib/libpcap.a[pcap-bpf.o])
13c8 .dataR_POS[54]odmerrno
  .odm_err_msg  [128]   ER PR 
 ./pcap-bpf.c(/usr/local/lib/libpcap.a[pcap-bpf.o])
049c .textR_RBR[16]
 .bpf_odmcleanup
0518 .textR_RBR[16]
 .bpf_odmcleanup
05d4 .textR_RBR[18].bpf_odminit
065c .textR_RBR[18].bpf_odminit
  .odm_terminate[130]   ER PR 
 ./pcap-bpf.c(/usr/local/lib/libpcap.a[pcap-bpf.o])
04fc .textR_RBR[16]
 .bpf_odmcleanup
  .odm_initialize   [132]   ER PR 
 ./pcap-bpf.c(/usr/local/lib/libpcap.a[pcap-bpf.o])
05b4 .textR_RBR[18].bpf_odminit
  .odm_lock [134]   ER PR 
 ./pcap-bpf.c(/usr/local/lib/libpcap.a[pcap-bpf.o])
063c .textR_RBR[18].bpf_odminit
 ER: The return code is 8.


 Can someone point me in the direction I need to go to fix this?

 Thanks,

 Tom

-
This is the tcpdump-workers list.
Visit https://lists.sandelman.ca/ to unsubscribe.
-
This is the tcpdump-workers list.
Visit https://lists.sandelman.ca/ to unsubscribe.


Re: [tcpdump-workers] libpcap on AIX 5.2

2004-07-29 Thread Guy Harris
On Jul 29, 2004, at 1:11 PM, Lowrie, Tom wrote:
Adding -lcfg along with -lodm solves my problem. Thanks for the
push in the right direction.
Next step will be to figure how to compile the libpcap source so
that these libraries are included.
The standard libpcap build procedure in the main CVS branch supports 
shared libraries only on:

platforms using the GNU linker;
Mac OS X;
because it hasn't been libtoolized, and the 0.8 and earlier build 
procedures don't support it at all.

This means that, unless building a library with ar produces a shared 
library on AIX (which it might do), you only get an archive library.  I 
don't know whether an archive library on AIX can be linked with other 
libraries, and don't know whether building a shared library in AIX and 
linking it with other libraries means you can link an application with 
that library and automatically get it linked with the libraries with 
which that library was linked (that works in, as I remember, the SunOS 
4.x shared library mechanism, and thus it might also work with the SVR4 
shared library mechanism, derived from the SunOS 4.x one, and used in 
Linux and the ELF-based BSDs as well).

-
This is the tcpdump-workers list.
Visit https://lists.sandelman.ca/ to unsubscribe.