home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / nmap254b.zip / protocols.h < prev    next >
C/C++ Source or Header  |  2001-08-10  |  4KB  |  73 lines

  1.  
  2. /***********************************************************************/
  3. /* protocols.h -- Functions relating to the protocol scan and mapping  */
  4. /* between IPproto Number <-> name.                                    */
  5. /*                                                                     */
  6. /***********************************************************************/
  7. /*  The Nmap Security Scanner is (C) 1995-2001 Insecure.Com LLC. This  */
  8. /*  program is free software; you can redistribute it and/or modify    */
  9. /*  it under the terms of the GNU General Public License as published  */
  10. /*  by the Free Software Foundation; Version 2.  This guarantees your  */
  11. /*  right to use, modify, and redistribute this software under certain */
  12. /*  conditions.  If this license is unacceptable to you, we may be     */
  13. /*  willing to sell alternative licenses (contact sales@insecure.com). */
  14. /*                                                                     */
  15. /*  If you received these files with a written license agreement       */
  16. /*  stating terms other than the (GPL) terms above, then that          */
  17. /*  alternative license agreement takes precendence over this comment. */
  18. /*                                                                     */
  19. /*  Source is provided to this software because we believe users have  */
  20. /*  a right to know exactly what a program is going to do before they  */
  21. /*  run it.  This also allows you to audit the software for security   */
  22. /*  holes (none have been found so far).                               */
  23. /*                                                                     */
  24. /*  Source code also allows you to port Nmap to new platforms, fix     */
  25. /*  bugs, and add new features.  You are highly encouraged to send     */
  26. /*  your changes to fyodor@insecure.org for possible incorporation     */
  27. /*  into the main distribution.  By sending these changes to Fyodor or */
  28. /*  one the insecure.org development mailing lists, it is assumed that */
  29. /*  you are offering Fyodor the unlimited, non-exclusive right to      */
  30. /*  reuse, modify, and relicense the code.  This is important because  */
  31. /*  the inability to relicense code has caused devastating problems    */
  32. /*  for other Free Software projects (such as KDE and NASM).  Nmap     */
  33. /*  will always be available Open Source.  If you wish to specify      */
  34. /*  special license conditions of your contributions, just say so      */
  35. /*  when you send them.                                                */
  36. /*                                                                     */
  37. /*  This program is distributed in the hope that it will be useful,    */
  38. /*  but WITHOUT ANY WARRANTY; without even the implied warranty of     */
  39. /*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU  */
  40. /*  General Public License for more details (                          */
  41. /*  http://www.gnu.org/copyleft/gpl.html ).                            */
  42. /*                                                                     */
  43. /***********************************************************************/
  44.  
  45. /* $Id: protocols.h,v 1.8 2001/08/10 05:53:08 fyodor Exp $ */
  46.  
  47. #ifndef PROTOCOLS_H
  48. #define PROTOCOLS_H
  49.  
  50. #if HAVE_NETDB_H
  51. #include <netdb.h>
  52. #endif
  53.  
  54. #include "nmap.h"
  55. #include "global_structures.h"
  56. #include "charpool.h"
  57. #include "nmap_error.h"
  58. #include "utils.h"
  59.  
  60. #define PROTOCOL_TABLE_SIZE 256
  61.  
  62. struct protocol_list {
  63.   struct protoent *protoent;
  64.   struct protocol_list *next;
  65. };
  66.  
  67. struct protoent *nmap_getprotbynum(int num);
  68. struct scan_lists *getfastprots(void);
  69. struct scan_lists *getdefaultprots(void);
  70.  
  71.  
  72. #endif
  73.