-----BEGIN PGP SIGNED MESSAGE-----

  I wanted to use the tcpdump dissector in another program.
  (User-Mode-Linux networking tool)

  I just finished putting all of print-*.c into a library: libipdisect.a.

  I then moved all of the Xflag variables and the other globals defined
in interface.h to a structure... hardest part was going through and adding
a parameter to half the functions to include that structure.

  I have not yet committed anything. I could do so on a branch.

  Or, we could cut 3.6.3 branch immediately and call this 3.7. 

struct ipdisect_options {
  int ipdo_aflag;               /* translate network and broadcast addresses */
  int ipdo_dflag;               /* print filter code */
  int ipdo_eflag;               /* print ethernet header */
  int ipdo_fflag;               /* don't translate "foreign" IP address */
  int ipdo_nflag;               /* leave addresses as numbers */
  int ipdo_Nflag;               /* remove domains from printed host names */
  int ipdo_qflag;               /* quick (shorter) output */
  int ipdo_Rflag;               /* print sequence # field in AH/ESP*/
  int ipdo_sflag;               /* use the libsmi to translate OIDs */
  int ipdo_Sflag;               /* print raw TCP sequence numbers */
  int ipdo_tflag;               /* print packet arrival time */
  int ipdo_uflag;               /* Print undecoded NFS handles */
  int ipdo_vflag;               /* verbose */
  int ipdo_xflag;               /* print packet in hex */
  int ipdo_Xflag;               /* print packet in hex/ascii */

  char *ipdo_espsecret;
  int   ipdo_packettype;        /* as specified by -T */

  char *ipdo_program_name;      /*used to generate self-identifying messages */

  int32_t ipdo_thiszone;        /* seconds offset from gmt to local time */

  int   ipdo_snaplen;

  /*global pointers to beginning and end of current packet (during printing) */
  const u_char *ipdo_packetp;
  const u_char *ipdo_snapend;

  /* pointer to void function to output stuff */
  void (*ipdo_default_print)(struct ipdisect_options *,
                             register const u_char *bp, register u_int length);
  void (*ipdo_default_print_unaligned)(struct ipdisect_options *,
                             register const u_char *bp, register u_int length);
};


]       ON HUMILITY: to err is human. To moo, bovine.           |  firewalls  [
]   Michael Richardson, Sandelman Software Works, Ottawa, ON    |net architect[
] [EMAIL PROTECTED] http://www.sandelman.ottawa.on.ca/ |device driver[
] panic("Just another NetBSD/notebook using, kernel hacking, security guy");  [

  
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: latin1
Comment: Finger me for keys

iQCVAwUBO7eICYqHRg3pndX9AQHPmwP/Zd3LvGDMxQ+SNssWWYO6xrGAcR2UgTC8
Fodb5uAG4o9RBC2yA/cVxuSXRUnaHF5Q/Sjroh29Z/P1Mq7mTnjY7wmypMtMDBB5
tPRmyqAWhhZxqez2OyJen3Qekq+nXVmYsiR3nsSeSEYE5SfyW1vGY8VFACWIhFae
wqp2ouYsyAQ=
=Q+KM
-----END PGP SIGNATURE-----
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe

Reply via email to