patch for IP protocol display bug

Peter Van Epp vanepp at sfu.ca
Fri Jan 14 18:36:31 EST 2005


	There is a missing protocol in include/argus_util.h which causes an 
error wben the protocol type is fc (133). Below is first a patch which only
adds the missing protocol followed by a patch that updates the list to match
the current http://www.iana.org/assignments/protocol-numbers list. If there
isn't something special about the current setup the second patch is probably
the one to use.

Peter Van Epp / Operations and Technical Support 
Simon Fraser University, Burnaby, B.C. Canada

--- cut here --- (this one that only adds the missing sm):

*** include/argus_util.h.orig	Thu Jan 13 09:37:34 2005
--- include/argus_util.h	Fri Jan 14 08:54:49 2005
***************
*** 164,171 ****
     "aes-sp3-d", "etherip", "encap", "pri-enc", "gmtp", "ifmp", "pnni",
     "pim", "aris", "scps", "qnx", "a/n", "ipcomp", "snp", "compaq-peer",
     "ipx-n-ip", "vrrp", "pgm", "zero", "l2tp", "ddx", "iatp", "stp", "srp",
!    "uti", "smp", "ptp", "isis", "fire", "crtp", "crudp", "sccopmce", "iplt",
!    "sps", "pipe", "sctp", "fc",
  };
  
  #if defined(__OpenBSD__)
--- 164,171 ----
     "aes-sp3-d", "etherip", "encap", "pri-enc", "gmtp", "ifmp", "pnni",
     "pim", "aris", "scps", "qnx", "a/n", "ipcomp", "snp", "compaq-peer",
     "ipx-n-ip", "vrrp", "pgm", "zero", "l2tp", "ddx", "iatp", "stp", "srp",
!    "uti", "smp", "sm", "ptp", "isis", "fire", "crtp", "crudp", "sccopmce", 
!    "iplt", "sps", "pipe", "sctp", "fc",
  };
  
  #if defined(__OpenBSD__)

--- cut here --- (fully updated list of protocol numbers):

*** include/argus_util.h.orig	Thu Jan 13 09:37:34 2005
--- include/argus_util.h	Fri Jan 14 14:51:45 2005
***************
*** 142,171 ****
  
  #define TSEQ_HASHSIZE	9029
  #define HASHNAMESIZE	4096
! #define IPPROTOSTR	134
  
  #define ipaddr_string(p) getname((u_char *)(p))
  
  #ifdef ArgusUtil
  
! char *ip_proto_string [IPPROTOSTR] = {"ip", "icmp", "igmp", "ggp",
!    "ipnip", "st", "tcp", "ucl", "egp", "igp", "bbn-rcc-mon", "nvp-ii",
     "pup", "argus", "emcon", "xnet", "chaos", "udp", "mux", "dcn-meas",
     "hmp", "prm", "xns-idp", "trunk-1", "trunk-2", "leaf-1", "leaf-2",
     "rdp", "irtp", "iso-tp4", "netblt", "mfe-nsp", "merit-inp", "sep",
     "3pc", "idpr", "xtp", "ddp", "idpr-cmtp", "tp++", "il", "ipv6",
     "sdrp", "ipv6-route", "ipv6-frag", "idrp", "rsvp", "gre", "mhrp", "bna",
     "esp", "ah", "i-nlsp", "swipe", "narp", "mobile", "tlsp", "skip",
!    "ipv6-icmp", "ipv6-no", "ipv6-opts", "any", "cftp", "any", "sat-expak", "kryptolan",
!    "rvd", "ippc", "any", "sat-mon", "visa", "ipcv", "cpnx", "cphb", "wsn",
!    "pvp", "br-sat-mon", "sun-nd", "wb-mon", "wb-expak", "iso-ip", "vmtp",
!    "secure-vmtp", "vines", "ttp", "nsfnet-igp", "dgp", "tcf", "igrp",
!    "ospfigp", "sprite-rpc", "larp", "mtp", "ax.25", "ipip", "micp",
!    "aes-sp3-d", "etherip", "encap", "pri-enc", "gmtp", "ifmp", "pnni",
!    "pim", "aris", "scps", "qnx", "a/n", "ipcomp", "snp", "compaq-peer",
     "ipx-n-ip", "vrrp", "pgm", "zero", "l2tp", "ddx", "iatp", "stp", "srp",
!    "uti", "smp", "ptp", "isis", "fire", "crtp", "crudp", "sccopmce", "iplt",
!    "sps", "pipe", "sctp", "fc",
  };
  
  #if defined(__OpenBSD__)
--- 142,172 ----
  
  #define TSEQ_HASHSIZE	9029
  #define HASHNAMESIZE	4096
! #define IPPROTOSTR	138
  
  #define ipaddr_string(p) getname((u_char *)(p))
  
  #ifdef ArgusUtil
  
! char *ip_proto_string [IPPROTOSTR] = {"hopopt", "icmp", "igmp", "ggp",
!    "ipnip", "st", "tcp", "cbt", "egp", "igp", "bbn-rcc-mon", "nvp-ii",
     "pup", "argus", "emcon", "xnet", "chaos", "udp", "mux", "dcn-meas",
     "hmp", "prm", "xns-idp", "trunk-1", "trunk-2", "leaf-1", "leaf-2",
     "rdp", "irtp", "iso-tp4", "netblt", "mfe-nsp", "merit-inp", "sep",
     "3pc", "idpr", "xtp", "ddp", "idpr-cmtp", "tp++", "il", "ipv6",
     "sdrp", "ipv6-route", "ipv6-frag", "idrp", "rsvp", "gre", "mhrp", "bna",
     "esp", "ah", "i-nlsp", "swipe", "narp", "mobile", "tlsp", "skip",
!    "ipv6-icmp", "ipv6-noinxt", "ipv6-opts", "any-p", "cftp", "any-n",
!    "sat-expak", "kryptolan", "rvd", "ippc", "any-dfs", "sat-mon", "visa", 
!    "ipcv", "cpnx", "cphb", "wsn", "pvp", "br-sat-mon", "sun-nd", "wb-mon",
!    "wb-expak", "iso-ip", "vmtp", "secure-vmtp", "vines", "ttp", "nsfnet-igp",
!    "dgp", "tcf", "eigrp", "ospfigp", "sprite-rpc", "larp", "mtp", "ax.25",
!    "ipip", "micp", "scc-sp", "etherip", "encap", "pri-enc", "gmtp", "ifmp",
!    "pnni", "pim", "aris", "scps", "qnx", "a/n", "ipcomp", "snp", "compaq-peer",
     "ipx-n-ip", "vrrp", "pgm", "zero", "l2tp", "ddx", "iatp", "stp", "srp",
!    "uti", "smp", "sm", "ptp", "isis", "fire", "crtp", "crudp", "sccopmce", 
!    "iplt", "sps", "pipe", "sctp", "fc", "rsvp-e2e", "mobility", "udplite",
!    "mpls-n-ip",
  };
  
  #if defined(__OpenBSD__)




More information about the argus mailing list