Commit Graph

272 Commits

Author SHA1 Message Date
bjh21 913037a61e When checking that a potentially-unsigned enum is >= 0, assign it to an int
first.  This is necessary to avoid warnings with -fshort-enums.  Casting
to an int really should be enough, but turns out not to be.

This change will be documented in doc/HACKS.
2002-03-18 20:26:50 +00:00
bjh21 ad4b72abb9 Check isc_result_t values with != ISC_R_SUCCESS, rather than < 0.
Suggested by Ted Lemon, but not yet in an ISC DHCP release.
This is necessary to avoid warning with -fshort-enums.
2002-03-18 20:25:58 +00:00
bjh21 76b77c2c35 When checking that a potentially-unsigned enum is >= 0, assign it to an int
first.  This is necessary to avoid warnings with -fshort-enums.  Casting
to an int really should be enough, but turns out not to be.

This change will be documented in doc/HACKS.
2002-03-18 20:16:49 +00:00
bjh21 6047cf765e Another change from 3.0.1rc7:
- Fix a bug in ns_parserr(), where it was returning the wrong sort
  of result code in some cases.

This is required to allow some -fshort-enums warnings to be fixed.
2002-03-18 20:13:53 +00:00
bjh21 a4f14f6e11 Pull down change from 3.0.1rc7:
- Fix a bug in is_identifier(), where it was checking against EOF
  instead of the END_OF_FILE token.

This is required to eliminate a warning with -fshort-enums.
2002-03-18 19:54:11 +00:00
hannken 5a142891ab Make it compile on sparc (size_t != int). 2002-03-15 08:54:40 +00:00
mjl 8a74697e3d Make it compile w/ our standard warning level by adding prototypes. 2002-03-15 01:54:19 +00:00
mjl 3cc43a5f0b Resolve conflict 2002-03-15 01:44:24 +00:00
mjl 3849fd5579 Import bzip2 1.0.2 2002-03-15 01:35:17 +00:00
martin 58d564bc8c Add MSS clamping to the IP Filter NAT subsystem.
Configured by a new option "mssclamp" in NAT rules, like:

 map pppoe0 192.168.1.0/24 -> 0/32 mssclamp 1452

This is based on work by Xiaodan Tang <xtang@qnx.com>.
2002-03-14 21:46:54 +00:00
martti 83b3487b70 Upgraded IPFilter to 3.4.25 2002-03-14 12:32:36 +00:00
martti a79df224af Import IPFilter 3.4.25 2002-03-14 12:30:07 +00:00
martti 27df1070c7 Don't import ip_h323_pxy.c (license issues) 2002-03-14 08:07:06 +00:00
simonb 6b078ef993 Fix gcc 3.x "operation on `foo' may be undefined" warnings when using
constructs like "tptr+=*tptr++;".

Itojun will forward these changes to tcpdump.org.
2002-03-11 10:43:33 +00:00
bjh21 dca4ae94d6 When checking that a potentially-unsigned enum is >= 0, assign it to an int
first.  This is necessary to avoid warnings with -fshort-enums.  Casting
to an int really should be enough, but turns out not to be.

This change will be documented in doc/HACKS.
2002-03-09 13:22:52 +00:00
wiz 53036766b1 Drop trailing spaces after section names. 2002-03-06 14:20:34 +00:00
sommerfeld 3e18fc136f More ipip references 2002-03-04 15:15:39 +00:00
mason be7a76e49f document -i and -u in the man page 2002-02-21 17:10:14 +00:00
itojun d52aa152c7 sync with 3.7.1 2002-02-18 09:37:05 +00:00
itojun 1ad208fce4 tcpdump 3.7.1 from tcpdump.org 2002-02-18 09:06:51 +00:00
martin 3a47d27d5d Fix two LP64/be bugs, patch from ura@hiru.aoba.yokohama.jp in PR 15641. 2002-02-17 20:18:52 +00:00
ross 8bd7cb6a69 Edit -mdoc usage.
* There is no -indent option to .Bd or .Bl, although you would
  never know that from its frequent use in this tree. There is a
  "-offset indent" combination that makes sense, and you can certainly
  say "-width indent".

* Also, you can't markup the -width option argument, tho you CAN
  use a callable macro. So "-width Ar filename" doesn't make sense,
  but either "-width Ar" or "-width filename" does, as might something
  like "-width xxfilename" for a little extra space.

* There are a lot of needlessly complex hanging tag macros in man4 used
  to create simple item lists. Those should be simplified one of these
  days before someone copies and edits yet another man4 page.
2002-02-07 03:15:06 +00:00
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
martti 6ffd37ccd1 Back out version 1.8 as it fixes the display BUT breaks the icmp-type rules:
ROOT localhost:~> /etc/rc.d/ipfilter reload
  Reloading ipfilter rules.
  22: Invalid icmp-type (echo) specified

With version 1.7 everything works just fine:

  ROOT localhost:~> /etc/rc.d/ipfilter reload
  Reloading ipfilter rules.
  Set 1 now inactive
2002-02-04 12:00:52 +00:00
martti bfc0fa18e9 Fixed display of "proto ipv6-icmp ... icmp-type ..." rule. Before
this fix ipfstat reported:

  0 pass in quick proto ipv6-icmp from any to any

while after this fix:

  0 pass in quick proto ipv6-icmp from any to any icmp-type 8

This was just a display bug, the rule worked as expected.
2002-02-01 11:31:56 +00:00
martin d4e37ff89e Add a missing "else". 2002-01-24 10:40:12 +00:00
martti 5ecddfad8c Fixed return value (I was unable to compile this on sparc64 before
this fix).
2002-01-24 08:30:27 +00:00
martti 7421720886 This file is not needed 2002-01-24 08:25:37 +00:00
martti e6acaff1c5 This file is in /sys/netinet 2002-01-24 08:25:21 +00:00
martti a0dddbc807 Manual page fixes regarding IPv6 2002-01-24 08:24:14 +00:00
martti b9920d0f43 Upgraded IPFilter to 3.4.23 2002-01-24 08:21:30 +00:00
martti b0499f9062 Import IPFilter 3.4.23 2002-01-24 08:18:28 +00:00
martti 14b3179d7c Added ip_netbios_pxy.c and ip_ipsec_pxy.c 2002-01-23 11:03:19 +00:00
thorpej 7ff92fc079 PTRSIZE_64BIT on x86_64, too. 2002-01-23 02:37:39 +00:00
wiz 78cb877358 Try to remove some more unnecessary whitespace when converting. 2002-01-19 11:43:47 +00:00
martin 114dbddbad Make ntpd use the getifaddrs interface, thus avoiding alignement
problems (see port-sparc64/15112).

This change will be submitted to the NTP maintainers as well.
2002-01-05 13:24:40 +00:00
martin 6db2d4b116 Back out previous change - turns out to be a sparc64 toolchain problem
(surprise!)
2002-01-03 11:22:07 +00:00
martin 357b95fa25 Replace a structure copy (dereferencing a pointer received from an ioctl)
by a memcpy, similar to the patch suggested by jarle@uninett.no in PR 15112.
I'm not sure if the ioctl code should be fixed to deliver this pointer
properly aligned, but this change should not cause any problem and it is
safer this way.
2002-01-02 20:47:37 +00:00
wiz 546fc71d49 Pull over fixes from rev. 1.5-1.7 of basesrc/usr.sbin/ntp/ntpd/ntpd.8. 2001-12-26 15:14:59 +00:00
wiz b444acb911 Sort SEE ALSO sections, and fix xrefs (commenting out some which
point to non-existing man pages). Fixes misc/14970.
2001-12-18 09:31:47 +00:00
wiz 78e040dc00 Check for '-' as first character only after we checked all recognized
options. Problem report and fix by Tero Kivinen in bin/14935.
2001-12-14 15:20:17 +00:00
wiz a3de79a4f7 Fn argument doesn't need (), add space between macro name and argument. 2001-12-07 19:18:14 +00:00
wiz 6f171e404b Misc formatting fixes. 2001-12-07 19:14:08 +00:00
wiz b4371d47f5 Replace some misuses of "then" with "than". 2001-12-04 17:56:30 +00:00
wiz 1fd7eeefcd "than" instead of "then". 2001-11-21 19:14:19 +00:00
christos a9add05994 s/%%m/%m/ 2001-11-12 03:06:44 +00:00
manu 22376d8b65 Fixed a small bug in -u option parsing (it only worked if you supplied a
user *and* a group)
2001-11-08 20:06:22 +00:00
itojun 50c48d717f SIGALRM code around gethostbyaddr() can leak memory.
sync with tcpdump.org, found by openbsd guys
2001-11-05 02:12:47 +00:00
itojun b912944434 copyright clarification, from tcpdump.org 2001-10-22 06:59:26 +00:00
itojun eed0c2daad copyright clarification, from tcpdump.org 2001-10-22 04:29:06 +00:00