NetBSD/dist
martti c6a4a9d33a Fixed Darren's original IPv6 icmp-type patch (rev 1.8) to display
better error messages if the user tries to use symbolic names such
as "echo" and "echorep" in "ipv6-icmp ... icmp-type ..." rules.

Consider the following rules:

  # cat /etc/ipf6.conf
  pass in quick proto ipv6-icmp from any to any icmp-type 128
  pass in quick proto ipv6-icmp from any to any icmp-type echo

Use of symbolic names give now the following error:

  # ipf -Fa -6f /etc/ipf6.conf
  2: Unknown ICMPv6 type (echo) specified (use numeric value instead)

The first rule with numeric value will work as expected:

  # ipfstat -6hi
  0 pass in quick proto ipv6-icmp from any to any icmp-type 128

NOTE: You MUST use numerical values for ICMPv6 types. See
      /sys/netinet/icmp6.h for available codes!
2002-02-04 19:07:47 +00:00
..
am-utils Sort SEE ALSO sections, and fix xrefs (commenting out some which 2001-12-18 09:31:47 +00:00
bind Fn argument doesn't need (), add space between macro name and argument. 2001-12-07 19:18:14 +00:00
bzip2 Add prototypes so this builds with the standard NetBSD warnings enabled. 2001-06-03 13:39:38 +00:00
cdk Replace some misuses of "then" with "than". 2001-12-04 17:56:30 +00:00
dhcp PTRSIZE_64BIT on x86_64, too. 2002-01-23 02:37:39 +00:00
ipf Fixed Darren's original IPv6 icmp-type patch (rev 1.8) to display 2002-02-04 19:07:47 +00:00
nawk
ntp Try to remove some more unnecessary whitespace when converting. 2002-01-19 11:43:47 +00:00
tcpdump SIGALRM code around gethostbyaddr() can leak memory. 2001-11-05 02:12:47 +00:00