The NetBSD Project

CVS log for src/usr.sbin/ypbind/ypbind.c

[BACK] Up to [cvs.NetBSD.org] / src / usr.sbin / ypbind

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.101: download - view: text, markup, annotated - select for diffs
Mon Apr 11 20:57:37 2022 UTC (4 years, 7 months ago) by andvar
Branches: MAIN
CVS tags: perseant-exfatfs-base-20261102, perseant-exfatfs-base-20250801, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-11-base, netbsd-11-1-RELEASE, netbsd-11-0-RELEASE, netbsd-11-0-RC7, netbsd-11-0-RC6, netbsd-11-0-RC5, netbsd-11-0-RC4, netbsd-11-0-RC3, netbsd-11-0-RC2, netbsd-11-0-RC1, netbsd-11, netbsd-10-base, netbsd-10-2-RELEASE, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, HEAD
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +3 -3 lines
s/serivce/service/ in comments.

Revision 1.99.2.1: download - view: text, markup, annotated - select for diffs
Thu Mar 15 09:12:08 2018 UTC (8 years, 8 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.99: preferred, colored; next MAIN 1.100: preferred, colored
Changes since revision 1.99: +5 -5 lines
Synch with HEAD

Revision 1.100: download - view: text, markup, annotated - select for diffs
Thu Mar 15 02:25:31 2018 UTC (8 years, 8 months ago) by ginsbach
Branches: MAIN
CVS tags: phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, netbsd-9-base, netbsd-9-5-RELEASE, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +5 -5 lines
Initialize ypbind_resp before first possible error return condition.

Revision 1.99: download - view: text, markup, annotated - select for diffs
Wed Aug 9 01:56:42 2017 UTC (9 years, 3 months ago) by ginsbach
Branches: MAIN
CVS tags: pgoyette-compat-base
Branch point for: pgoyette-compat
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +42 -29 lines
Make use of the defined YP errors when ypbind encounters one rather than
just returning an empty (successful) RPC result.

Don't exit when allocating memory for a new bound domain received via a RPC.

Revision 1.57.18.3: download - view: text, markup, annotated - select for diffs
Wed Nov 5 09:59:25 2014 UTC (12 years ago) by msaitoh
Branches: netbsd-5
Diff to: previous 1.57.18.2: preferred, colored; branchpoint 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57.18.2: +3 -3 lines
Fix compile error (s/__printf/__printf__/).

Revision 1.57.18.2: download - view: text, markup, annotated - select for diffs
Mon Nov 3 18:48:42 2014 UTC (12 years ago) by msaitoh
Branches: netbsd-5
Diff to: previous 1.57.18.1: preferred, colored; branchpoint 1.57: preferred, colored
Changes since revision 1.57.18.1: +1268 -742 lines
Pull up following revision(s) (requested by dholland in ticket #1925):
	usr.sbin/ypbind/ypbind.8	1.19-1.20
	usr.sbin/ypbind/ypbind.c	1.63-1.98

State handling fixes and cleanups in ypbind; it no longer churns the
disk, spams syslogd when the server goes down, or gets confused about
its binding state. Fixes PR#15355, PR#32519 and also PR#43900.

Revision 1.90.4.1: download - view: text, markup, annotated - select for diffs
Tue Sep 9 08:24:29 2014 UTC (12 years, 2 months ago) by msaitoh
Branches: netbsd-6
Diff to: previous 1.90: preferred, colored; next MAIN 1.91: preferred, colored
Changes since revision 1.90: +593 -67 lines
Pull up following revision(s) (requested by dholland in ticket #1083):
	usr.sbin/ypbind/ypbind.c: revision 1.91
	usr.sbin/ypbind/ypbind.c: revision 1.92
	usr.sbin/ypbind/ypbind.c: revision 1.93
	usr.sbin/ypbind/ypbind.c: revision 1.94
	usr.sbin/ypbind/ypbind.c: revision 1.95
	usr.sbin/ypbind/ypbind.c: revision 1.96
	usr.sbin/ypbind/ypbind.c: revision 1.97
	usr.sbin/ypbind/ypbind.c: revision 1.98
	usr.sbin/ypbind/ypbind.8: revision 1.20
	usr.sbin/ypbind/ypbind.8: revision 1.19
Don't store the default domain name in a global. While running we
really don't care which domain is the system's default domain.
Factor out some rpc validation code.
While there are times it's appropriate to call a state variable
"evil", this isn't one of them. Since the logic involved is to wait
until the default domain binds before backgrounding, call the variable
"started" instead.
Don't rake up the default domain until after processing arguments.
Processing arguments just sets flags -- may as well do it first, and
this way detection of silly errors isn't contingent on having things
fully configured and operating.
Load up with comments.
Instead of using magic numbers in what looks like a boolean
(dom_alive), create a state enumeration (domainstates) and use it
instead.
Instead of three states (new, alive, and, effectively, 'troubled') go
to five: new, alive, pinging, lost, and dead.
Domains start in the NEW state. When we get a reply from a server, the
state goes to ALIVE. The state is set to PINGING when we ping the
server (once a minute normally) and if the ping times out, it goes to
LOST. If we stay lost for a minute, go to DEAD, and in DEAD, do
exponential backoff of nag_servers calls.
Getting rid of the broken logic attached to the 'troubled' state fixes
PR 15355 (ypbind defeats disk idle spindown) -- it will now only
rewrite the binding file when the binding changes.
Also, fix the HEURISTIC code so it doesn't trigger except in ALIVE
state. I think this was the source of a lot of the spamming behavior
seen in PR 32519, which is now fixed.
Might also fix PR 23135 (broadcast ypbind sometimes fails to find
servers).
Add a SIGHUP handler; upon SIGHUP do an extra nag_servers on any
domain that's in DEAD state. This lets you explicitly rescue ypbind
from its exponential backoff when you know the world's back up.
Log state transitions.
Don't store the default domain name in a global. While running we
really don't care which domain is the system's default domain.
Factor out some rpc validation code.
While there are times it's appropriate to call a state variable
"evil", this isn't one of them. Since the logic involved is to wait
until the default domain binds before backgrounding, call the variable
"started" instead.
Don't rake up the default domain until after processing arguments.
Processing arguments just sets flags -- may as well do it first, and
this way detection of silly errors isn't contingent on having things
fully configured and operating.
Load up with comments.
Instead of using magic numbers in what looks like a boolean
(dom_alive), create a state enumeration (domainstates) and use it
instead.
Instead of three states (new, alive, and, effectively, 'troubled') go
to five: new, alive, pinging, lost, and dead.
Domains start in the NEW state. When we get a reply from a server, the
state goes to ALIVE. The state is set to PINGING when we ping the
server (once a minute normally) and if the ping times out, it goes to
LOST. If we stay lost for a minute, go to DEAD, and in DEAD, do
exponential backoff of nag_servers calls.
Getting rid of the broken logic attached to the 'troubled' state fixes
PR 15355 (ypbind defeats disk idle spindown) -- it will now only
rewrite the binding file when the binding changes.
Also, fix the HEURISTIC code so it doesn't trigger except in ALIVE
state. I think this was the source of a lot of the spamming behavior
seen in PR 32519, which is now fixed.
Might also fix PR 23135 (broadcast ypbind sometimes fails to find
servers).
Add a SIGHUP handler; upon SIGHUP do an extra nag_servers on any
domain that's in DEAD state. This lets you explicitly rescue ypbind
from its exponential backoff when you know the world's back up.
Log state transitions.
Document exponential backoff behavior and SIGHUP support, plus a couple
other minor edits.
Use more markup.

Revision 1.90.8.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:05:18 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.90: preferred, colored; next MAIN 1.91: preferred, colored
Changes since revision 1.90: +593 -67 lines
Rebase to HEAD as of a few days ago.

Revision 1.90.18.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 07:00:38 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.90: preferred, colored; next MAIN 1.91: preferred, colored
Changes since revision 1.90: +593 -67 lines
Rebase.

Revision 1.98: download - view: text, markup, annotated - select for diffs
Tue Jun 10 17:19:48 2014 UTC (12 years, 5 months ago) by dholland
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +14 -2 lines
Log state transitions.

Revision 1.97: download - view: text, markup, annotated - select for diffs
Tue Jun 10 17:19:36 2014 UTC (12 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +67 -4 lines
Add a SIGHUP handler; upon SIGHUP do an extra nag_servers on any
domain that's in DEAD state. This lets you explicitly rescue ypbind
from its exponential backoff when you know the world's back up.

Revision 1.96: download - view: text, markup, annotated - select for diffs
Tue Jun 10 17:19:22 2014 UTC (12 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +187 -47 lines
Instead of using magic numbers in what looks like a boolean
(dom_alive), create a state enumeration (domainstates) and use it
instead.

Instead of three states (new, alive, and, effectively, 'troubled') go
to five: new, alive, pinging, lost, and dead.

Domains start in the NEW state. When we get a reply from a server, the
state goes to ALIVE. The state is set to PINGING when we ping the
server (once a minute normally) and if the ping times out, it goes to
LOST. If we stay lost for a minute, go to DEAD, and in DEAD, do
exponential backoff of nag_servers calls.

Getting rid of the broken logic attached to the 'troubled' state fixes
PR 15355 (ypbind defeats disk idle spindown) -- it will now only
rewrite the binding file when the binding changes.

Also, fix the HEURISTIC code so it doesn't trigger except in ALIVE
state. I think this was the source of a lot of the spamming behavior
seen in PR 32519, which is now fixed.

Might also fix PR 23135 (broadcast ypbind sometimes fails to find
servers).

Revision 1.95: download - view: text, markup, annotated - select for diffs
Tue Jun 10 17:19:12 2014 UTC (12 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +325 -29 lines
Load up with comments.

Revision 1.94: download - view: text, markup, annotated - select for diffs
Tue Jun 10 17:19:00 2014 UTC (12 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +8 -8 lines
Don't rake up the default domain until after processing arguments.
Processing arguments just sets flags -- may as well do it first, and
this way detection of silly errors isn't contingent on having things
fully configured and operating.

Revision 1.93: download - view: text, markup, annotated - select for diffs
Tue Jun 10 17:18:45 2014 UTC (12 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +5 -5 lines
While there are times it's appropriate to call a state variable
"evil", this isn't one of them. Since the logic involved is to wait
until the default domain binds before backgrounding, call the variable
"started" instead.

Revision 1.92: download - view: text, markup, annotated - select for diffs
Tue Jun 10 17:18:18 2014 UTC (12 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +26 -10 lines
Factor out some rpc validation code.

Revision 1.91: download - view: text, markup, annotated - select for diffs
Tue Jun 10 17:18:02 2014 UTC (12 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +3 -4 lines
Don't store the default domain name in a global. While running we
really don't care which domain is the system's default domain.

Revision 1.90: download - view: text, markup, annotated - select for diffs
Tue Aug 30 17:06:22 2011 UTC (15 years, 2 months ago) by plunky
Branches: MAIN
CVS tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, agc-symver-base, agc-symver
Branch point for: tls-maxphys, tls-earlyentropy, netbsd-6
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +14 -14 lines
Apply casts to cases where xdrproc_t is expected but is not
strictly passed, for example because the second argument is
a different kind of pointer.

Revision 1.89: download - view: text, markup, annotated - select for diffs
Mon Aug 29 20:38:55 2011 UTC (15 years, 2 months ago) by joerg
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +3 -3 lines
Use __dead.

Revision 1.88: download - view: text, markup, annotated - select for diffs
Wed May 25 04:59:22 2011 UTC (15 years, 5 months ago) by dholland
Branches: MAIN
CVS tags: cherry-xenmp-base, cherry-xenmp
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +3 -3 lines
Don't print uninitialized values off the stack, even as debug messages.

Revision 1.87: download - view: text, markup, annotated - select for diffs
Wed May 25 04:33:52 2011 UTC (15 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +3 -3 lines
When checking if /var/yp/binding/foo.ypservers exists, use the domain
name of the domain being checked instead of the default domain name. Duh.
Necessary for PR 43900.

Revision 1.86: download - view: text, markup, annotated - select for diffs
Tue May 24 07:02:08 2011 UTC (15 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +3 -6 lines
Remove two entirely unused members of struct domain (previously struct
_dom_binding). I guess these were there because it was cutpasted at
some point from struct dom_binding in <rpcsvc/yp_prot.h>.

Revision 1.85: download - view: text, markup, annotated - select for diffs
Tue May 24 07:01:53 2011 UTC (15 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +4 -4 lines
Merge a couple more minor improvements from Wolfgang Stukenbrock's
patch in PR 43900.

Revision 1.84: download - view: text, markup, annotated - select for diffs
Tue May 24 07:01:40 2011 UTC (15 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +30 -24 lines
The FILE* kept open for /var/yp/binding/foo.ypservers needs to be
per-domain. Also, use the file for the domain we're servicing instead
of always the file for the default domain.

Partly from Wolfgang Stukenbrock's patch in PR 43900.

Revision 1.83: download - view: text, markup, annotated - select for diffs
Tue May 24 07:01:24 2011 UTC (15 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +16 -19 lines
The been_ypset flag really needs to be per-domain also. Do that.

Partly from Wolfgang Stukenbrock's patch in PR 43900.

Revision 1.82: download - view: text, markup, annotated - select for diffs
Tue May 24 07:01:15 2011 UTC (15 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +28 -21 lines
The ypbindmode really needs to be per-domain, so adjust accordingly.

Partly from Wolfgang Stukenbrock's patch in PR 43900.

Revision 1.81: download - view: text, markup, annotated - select for diffs
Tue May 24 07:00:34 2011 UTC (15 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +29 -33 lines
Allowing ypset is a global permission flag, not an operating mode like
broadcast vs. configured/direct. Don't conflate the logic. As I proposed
in PR 43900.

Revision 1.80: download - view: text, markup, annotated - select for diffs
Tue May 24 07:00:07 2011 UTC (15 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +18 -15 lines
Fix initialization of struct domain; initialize all fields in all
cases, merge duplicate code, make sure every domain gets an xid
assigned.

Partly from Wolfgang Stukenbrock's patch in PR 43900.

Revision 1.79: download - view: text, markup, annotated - select for diffs
Tue May 24 06:59:53 2011 UTC (15 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +14 -14 lines
The name field of a domain should be dom->dom_name, not dom->dom_domain.
(This and the previous patch make the code far more readable.)

Revision 1.78: download - view: text, markup, annotated - select for diffs
Tue May 24 06:59:35 2011 UTC (15 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +110 -109 lines
The default name for a "domain" variable should be "dom", not "ypdb".
Change them all, and make a couple other related adjustments.

Revision 1.77: download - view: text, markup, annotated - select for diffs
Tue May 24 06:59:07 2011 UTC (15 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +17 -17 lines
ypbindlist -> domains

Revision 1.76: download - view: text, markup, annotated - select for diffs
Tue May 24 06:58:54 2011 UTC (15 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +6 -6 lines
xid2ypdb() -> domain_find()

Revision 1.75: download - view: text, markup, annotated - select for diffs
Tue May 24 06:58:42 2011 UTC (15 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +27 -26 lines
Rename struct _dom_binding -> struct domain.

Revision 1.74: download - view: text, markup, annotated - select for diffs
Tue May 24 06:58:19 2011 UTC (15 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +51 -41 lines
Move a bunch of messy sunrpc-related initialization stuff into its own
function instead of blatting it all into main().

Revision 1.73: download - view: text, markup, annotated - select for diffs
Tue May 24 06:58:07 2011 UTC (15 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +29 -17 lines
Assimilate the open/flock combination used several times into its own
function.

Revision 1.72: download - view: text, markup, annotated - select for diffs
Tue May 24 06:57:55 2011 UTC (15 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +33 -20 lines
Fix up calls to yp_log. They cannot use %m, because if the -d option
is used the messages are sent via printf instead of syslog(3).

Also, make sure that none of the calls include a trailing newline and
issue a trailing newline in the -d case so they actually print properly.
(This was noted by Wolfgang Stukenbrock in PR 43900.)

And finally, fix some cases that could in some circumstances print
uninitialized errnos.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Tue May 24 06:57:30 2011 UTC (15 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +29 -7 lines
Abstract out some of the handling of the ypservers file.

Revision 1.70: download - view: text, markup, annotated - select for diffs
Tue May 24 06:57:04 2011 UTC (15 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +4 -5 lines
Check that the domain name is valid up front, instead of doing it
after opening sockets and registering services and whatnot.

Revision 1.69: download - view: text, markup, annotated - select for diffs
Tue May 24 06:56:48 2011 UTC (15 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +9 -32 lines
Remove now-unnecessary extra forward decls; sprinkle a little more static.

Revision 1.68: download - view: text, markup, annotated - select for diffs
Tue May 24 06:56:16 2011 UTC (15 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +608 -585 lines
Sort contents of file.

Revision 1.67: download - view: text, markup, annotated - select for diffs
Mon May 23 02:54:53 2011 UTC (15 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +19 -18 lines
sort includes

Revision 1.66: download - view: text, markup, annotated - select for diffs
Mon May 23 02:43:10 2011 UTC (15 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +12 -12 lines
Don't use _t as an identifier suffix meaning "variable containing a time".

Revision 1.65: download - view: text, markup, annotated - select for diffs
Mon May 23 02:36:35 2011 UTC (15 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +35 -99 lines
Introduce DPRINTF() macro, remove most #ifdef DEBUG usages.
No change to compiler output.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Mon May 23 02:06:41 2011 UTC (15 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +17 -17 lines
u_int32_t -> uint32_t and similar

Revision 1.63: download - view: text, markup, annotated - select for diffs
Wed Mar 30 05:24:05 2011 UTC (15 years, 7 months ago) by dholland
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +3 -3 lines
Don't cast return value of malloc

Revision 1.62: download - view: text, markup, annotated - select for diffs
Wed Mar 30 05:20:59 2011 UTC (15 years, 7 months ago) by dholland
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +3 -4 lines
use __printflike()

Revision 1.57.18.1: download - view: text, markup, annotated - select for diffs
Wed Feb 16 21:04:03 2011 UTC (15 years, 9 months ago) by bouyer
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +55 -8 lines
Pull up following revision(s) (requested by chuck in ticket #1549):
	usr.sbin/ypbind/ypbind.c: revision 1.58 - 1.61
in the case where ypbind is serving more than one domain (i.e.
not just the yp_get_default_domain() domain), we must remove
any old binding files from /var/yp/binding (BINDINGDIR) from
previous runs, or the non-yp_get_default_domain()'s will not
bind properly.   add a purge_bindingdir() function that basically
does "rm BINDINGDIR/*.[0-9]" at ypbind startup time.
example case of where this is an issue: bind a second (non-default)
domain.   ypbind will create and flock a /var/yp/binding/xxx.2
file for it.  stop and restart ypbind.  the old /var/yp/binding/xxx.2
file will remain from the previous run.   since it is not flock()'d
by the new instance of ypbind, libc functions like yp_master() will
fail without even bothering to talk to ypbind itself.   (and ypbind
is totally unaware of the old file...)

Revision 1.61: download - view: text, markup, annotated - select for diffs
Fri Nov 6 15:41:58 2009 UTC (17 years ago) by skrll
Branches: MAIN
CVS tags: matt-premerge-20091211, matt-mips64-premerge-20101231, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +3 -3 lines
Whitespace.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Fri Nov 6 15:36:55 2009 UTC (17 years ago) by christos
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +6 -5 lines
make this compile.

Revision 1.59: download - view: text, markup, annotated - select for diffs
Thu Nov 5 19:34:06 2009 UTC (17 years ago) by chuck
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +50 -4 lines
in the case where ypbind is serving more than one domain (i.e.
not just the yp_get_default_domain() domain), we must remove
any old binding files from /var/yp/binding (BINDINGDIR) from
previous runs, or the non-yp_get_default_domain()'s will not
bind properly.   add a purge_bindingdir() function that basically
does "rm BINDINGDIR/*.[0-9]" at ypbind startup time.

example case of where this is an issue: bind a second (non-default)
domain.   ypbind will create and flock a /var/yp/binding/xxx.2
file for it.  stop and restart ypbind.  the old /var/yp/binding/xxx.2
file will remain from the previous run.   since it is not flock()'d
by the new instance of ypbind, libc functions like yp_master() will
fail without even bothering to talk to ypbind itself.   (and ypbind
is totally unaware of the old file...)

Revision 1.58: download - view: text, markup, annotated - select for diffs
Sun Jan 18 10:39:17 2009 UTC (17 years, 10 months ago) by lukem
Branches: MAIN
CVS tags: jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +6 -6 lines
fix -Wsign-compare issues

Revision 1.57: download - view: text, markup, annotated - select for diffs
Sat Jul 7 22:33:57 2007 UTC (19 years, 4 months ago) by christos
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, netbsd-5-base, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, mjf-devfs2-base, mjf-devfs2, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: netbsd-5
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +110 -70 lines
- Compile in with debugging by default.
- General cleanup.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Thu Oct 5 09:18:11 2006 UTC (20 years, 1 month ago) by tron
Branches: MAIN
CVS tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +3 -2 lines
Ensure alignment of the structure used for RPC requests. This stop
"ypbind" from segfaulting under NetBSD-sparc64 when "ypwhich" is
used to display the current NIS server.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Sun Oct 1 19:43:15 2006 UTC (20 years, 1 month ago) by elad
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +3 -3 lines
Fix misleading error message (from PR/32519).

Revision 1.54: download - view: text, markup, annotated - select for diffs
Tue May 9 20:18:10 2006 UTC (20 years, 6 months ago) by mrg
Branches: MAIN
CVS tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +6 -4 lines
change (mostly) int to socklen_t.  GCC 4 doesn't like that int and
socklen_t are different signness.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Sat Oct 30 15:57:43 2004 UTC (22 years ago) by dsl
Branches: MAIN
CVS tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -3 lines
Add (unsigned char) cast to ctype functions

Revision 1.52: download - view: text, markup, annotated - select for diffs
Tue Sep 7 13:20:40 2004 UTC (22 years, 2 months ago) by jrf
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +3 -4 lines
Replaced strncpy with strlcpy.  Thanks to Peter Postma who
pointed them our in PR #25762. Approved by christos@NetBSD.org.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Mon Jan 5 23:23:39 2004 UTC (22 years, 10 months ago) by jmmv
Branches: MAIN
CVS tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +3 -3 lines
Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Wed Dec 10 12:06:26 2003 UTC (22 years, 11 months ago) by agc
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +2 -8 lines
Modify the licences of code written by Theo De Raadt from a 4-clause
to a 2-clause licence (retaining UCB clauses (1) and (2)), per PR
22409 from Joel Baker, approved by Theo de Raadt, and ratified by
myself - the only discrepancy being the handling of the original
clause 3 in src/usr.sbin/yppoll/yppoll.c.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Mon Nov 17 21:29:21 2003 UTC (23 years ago) by bouyer
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +3 -4 lines
Apply patch proposted to tech-userlevel on Sun, 12 Oct 2003:
Remove dom_server_port from struct _dom_binding. It's never initialised
and used in only one place, where dom_server_addr.sin_port was probably
intended.

Revision 1.42.4.2: download - view: text, markup, annotated - select for diffs
Tue Sep 9 11:01:56 2003 UTC (23 years, 2 months ago) by msaitoh
Branches: netbsd-1-5
Diff to: previous 1.42.4.1: preferred, colored; branchpoint 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42.4.1: +8 -9 lines
Pull up rev. 1.48 (requested by bouyer in ticket #77):
 width needs to be updated before each loop, because svc_maxfd may have
 changed.

Revision 1.46.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 5 18:15:42 2003 UTC (23 years, 2 months ago) by tron
Branches: netbsd-1-6
CVS tags: netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002
Diff to: previous 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46: +8 -9 lines
Pull up revision 1.48 (requested by bouyer in ticket #1449):
width needs to be updated before each loop, because svc_maxfd may have
changed.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Fri Sep 5 14:59:37 2003 UTC (23 years, 2 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +8 -9 lines
width needs to be updated before each loop, because svc_maxfd may have
changed.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Sat Jul 6 21:44:40 2002 UTC (24 years, 4 months ago) by wiz
Branches: MAIN
CVS tags: fvdl_fs64_base
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +45 -87 lines
ANSIfy, remove __P(), unifdef __STDC__.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Mon Feb 19 23:22:50 2001 UTC (25 years, 9 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Branch point for: netbsd-1-6
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +3 -4 lines
convert to use getprogname()

Revision 1.45: download - view: text, markup, annotated - select for diffs
Thu Jan 11 01:47:55 2001 UTC (25 years, 10 months ago) by lukem
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +5 -5 lines
use LOG_WARNING for warnings and LOG_ERR for fatal errors

Revision 1.44: download - view: text, markup, annotated - select for diffs
Wed Dec 20 01:34:39 2000 UTC (25 years, 11 months ago) by cgd
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +3 -3 lines
__CONCAT does token pasting, not string concatnation.  if something like:
        __CONCAT("foo","bar");
actually works to concantate strings, it's because the preprocessor expands
it into "foo""bar" as separate strings, and then ANSI string concatenation
is performed on that.  It's more straightforward to just use ANSI string
concatenation directly, and newer GCCs complain (rightly) about misuse
of token pasting.

Revision 1.38.2.1: download - view: text, markup, annotated - select for diffs
Thu Oct 19 17:05:59 2000 UTC (26 years, 1 month ago) by he
Branches: netbsd-1-4
CVS tags: netbsd-1-4-PATCH003
Diff to: previous 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38: +4 -3 lines
Pull up revision 1.43 (requested by he):
  Format string cleanup.

Revision 1.42.4.1: download - view: text, markup, annotated - select for diffs
Tue Oct 17 19:50:32 2000 UTC (26 years, 1 month ago) by tv
Branches: netbsd-1-5
CVS tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +4 -3 lines
Pullup usr.sbin string format fixes [is].
See "cvs log" for explicit revision numbers per file, from sommerfeld.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Wed Oct 11 20:23:58 2000 UTC (26 years, 1 month ago) by is
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +4 -3 lines
More format string cleanups by sommerfeld.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Tue Apr 11 11:36:47 2000 UTC (26 years, 7 months ago) by itojun
Branches: MAIN
CVS tags: netbsd-1-5-base, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +26 -52 lines
use getifaddrs, to avoid complicated alignment constraint in SIOCGIFCONF.
(do we need to keep SIOCGIFCONF code in #ifdef?)

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sun Feb 20 14:31:28 2000 UTC (26 years, 9 months ago) by itojun
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +4 -4 lines
avoid 64bit alignment issue with SIOCGIFCONF (packed struct access).
From: =?iso-8859-1?Q?G=F6ran_Bengtson?= <goeran@cdg.chalmers.se>

Revision 1.40: download - view: text, markup, annotated - select for diffs
Mon Aug 16 03:12:32 1999 UTC (27 years, 3 months ago) by simonb
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, comdex-fall-1999-base, comdex-fall-1999
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +3 -3 lines
Spell "privilege" correctly (correct spelling from Jonathan Stone).

Revision 1.39: download - view: text, markup, annotated - select for diffs
Sun Jun 6 02:38:00 1999 UTC (27 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +4 -2 lines
Use pidfile(3).

Revision 1.38: download - view: text, markup, annotated - select for diffs
Fri Feb 12 15:04:01 1999 UTC (27 years, 9 months ago) by kleink
Branches: MAIN
CVS tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Branch point for: netbsd-1-4
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -3 lines
<sys/fcntl.h> -> <fcntl.h>

Revision 1.33.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 3 18:38:36 1998 UTC (28 years ago) by cgd
Branches: netbsd-1-3
CVS tags: netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003
Diff to: previous 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33: +72 -26 lines
pull up rev 1.37 from trunk (via patch).  (bouyer)

Revision 1.37: download - view: text, markup, annotated - select for diffs
Fri Aug 21 09:39:04 1998 UTC (28 years, 3 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +70 -25 lines
- Makes ypbind use syslog() (with LOG_DAEMON) instead of warn()/err().
  Messages will still be printed to stderr if ypbind is started in debug mode.
- Don't exist if none of the servers listed in
  /var/yp/binding/<domainname>.ypservers are reacheable. It's a temporary
  failure that can be recovered from.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Mon Jul 13 12:01:03 1998 UTC (28 years, 4 months ago) by mrg
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +38 -37 lines
minor KNF nits.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Thu Feb 12 03:32:51 1998 UTC (28 years, 9 months ago) by lukem
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +8 -8 lines
revert; we can't break the existing ABI and API

Revision 1.34: download - view: text, markup, annotated - select for diffs
Tue Feb 10 06:41:00 1998 UTC (28 years, 9 months ago) by lukem
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +10 -10 lines
use u_int32_t instead of u_long

Revision 1.33: download - view: text, markup, annotated - select for diffs
Fri Jul 18 23:08:45 1997 UTC (29 years, 4 months ago) by thorpej
Branches: MAIN
CVS tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Branch point for: netbsd-1-3
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +3 -3 lines
Fix typo in previous.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Fri Jul 18 23:07:44 1997 UTC (29 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -3 lines
Cast pointers to u_long before casting to another integral type.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Fri Jul 18 07:57:56 1997 UTC (29 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +3 -2 lines
Teensy change to use WARNS.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Mon Jul 7 02:27:08 1997 UTC (29 years, 4 months ago) by lukem
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +39 -16 lines
* use _yp_invalid_domain() (from libc) to validate the domainnames
* cleanup for -Wall
* use __RCSID

the following were inspired by openbsd:
* only allow connections from reserved ports
* implement -insecure, which turns off the above restriction (required
  for sunos 3.x and ultrix)
* prevent more than 100 domains from being bound at once, preventing
  a denial of service attacks

Revision 1.29: download - view: text, markup, annotated - select for diffs
Wed Oct 2 05:55:06 1996 UTC (30 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +6 -6 lines
Change name of ypservers file to /var/yp/binding/domain.ypservers.
This is a compromise between the Solaris 2.5 naming of this file
(/var/yp/binding/domain/ypservers and /var/yp/binding/domain/vers)
and traditional NetBSD naming (/var/yp/binding/domain.vers).
Changing to the Solaris naming makes the C library incompatible
with ypbind.  While it's easy to change the C library, I don't feel
right about introducing a gratuitous incompatibility.

The current name (/var/yp/domain/ypservers) conflicts with the name
of the YP map listing slave servers for a domain.

Per discussion w/ Chris Demetriou and Luke Mewburn.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Tue Oct 1 01:38:00 1996 UTC (30 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -3 lines
.ypservers -> ypservers, to match Solaris 2.5

Revision 1.27: download - view: text, markup, annotated - select for diffs
Tue Oct 1 00:22:30 1996 UTC (30 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +243 -40 lines
Add Luke Mewburn's support for a .ypservers file, which contains a list
of YP servers a client should bind to, mostly verbatim, but slightly
modified for better semantics when nagging servers if a ypset has been
issued.  Default to broadcast mode if no .ypservers file is present.

Documentation changes to match, slightly tweaked by Scott Reynolds and
myself.

Closes PR #1759.

Revision 1.20.4.4: download - view: text, markup, annotated - select for diffs
Tue Jul 30 17:16:14 1996 UTC (30 years, 3 months ago) by jtc
Branches: netbsd-1-2
CVS tags: netbsd-1-2-RELEASE, netbsd-1-2-PATCH001
Diff to: previous 1.20.4.3: preferred, colored; branchpoint 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20.4.3: +3 -3 lines
Change type of rmtcr_outval from char to bool_t; pulled up by request from Wolfgang

Revision 1.26: download - view: text, markup, annotated - select for diffs
Thu Jul 25 18:53:43 1996 UTC (30 years, 3 months ago) by ws
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +3 -3 lines
xdr_bool wants a bool_t (which happens to be an int32_t on our port)
and not a char

Revision 1.25: download - view: text, markup, annotated - select for diffs
Tue Jul 9 06:34:12 1996 UTC (30 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -3 lines
Fix a misplaced #endif - if DEBUG wasn't defined, ypbind would never
detach from the controlling tty.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Jun 22 17:59:52 1996 UTC (30 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +304 -186 lines
Code cleanups.
- check malloc returns
- null terminate strncpy() strings
- use snprintf instead of sprintf
- pass the right arguments to the right functions
- check usage
- use err(3) and warn(3) instead of printfs.

Revision 1.20.4.3: download - view: text, markup, annotated - select for diffs
Mon Jun 3 20:47:51 1996 UTC (30 years, 5 months ago) by thorpej
Branches: netbsd-1-2
CVS tags: netbsd-1-2-BETA
Diff to: previous 1.20.4.2: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.4.2: +3 -3 lines
Pull up typo fix from trunk.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Jun 3 20:44:51 1996 UTC (30 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -3 lines
Fix typo that can cause ypbind to assume an error when one doesn't
actually exist if the server takes a dive.

Revision 1.20.4.2: download - view: text, markup, annotated - select for diffs
Mon Jun 3 20:38:41 1996 UTC (30 years, 5 months ago) by thorpej
Branches: netbsd-1-2
Diff to: previous 1.20.4.1: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.4.1: +7 -6 lines
Pull up ypbindproc_domain_2 fix from the trunk.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Mon Jun 3 20:32:55 1996 UTC (30 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +7 -6 lines
Fix buglet in ypbindproc_domain_2() which caused:

	ypbind; sleep 10; ypwhich

to fail (where failure is defined as ypwhich hangs until it gives up,
complaining about not being able to communicate with ypbind).  Failure
mode pointed out by Chris G. Demetriou <cgd@cs.cmu.edu>.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Wed May 29 20:11:10 1996 UTC (30 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +6 -10 lines
Pull down yp/xdr fixes from release branch.

Revision 1.20.4.1: download - view: text, markup, annotated - select for diffs
Sun May 26 06:20:09 1996 UTC (30 years, 5 months ago) by jtc
Branches: netbsd-1-2
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +6 -10 lines
yp/xdr fixes from Jason Thorpe

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat Mar 30 22:49:08 1996 UTC (30 years, 7 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-1-2-base
Branch point for: netbsd-1-2
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +43 -12 lines
apply patch from PR 2085: don't treat XIDs and domain mapping pointers
interchangeably, because this is fragile and doesn't work at all on
the alpha.  (get rid of the old hack used on the alpha, and fix RCS
Ids, too.)

Revision 1.19: download - view: text, markup, annotated - select for diffs
Fri Apr 21 04:40:36 1995 UTC (31 years, 7 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +6 -1 lines
really nasty hack for the alpha.  bigtime XXX

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Jan 15 09:09:30 1995 UTC (31 years, 10 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +14 -21 lines
Daemonify only after the bind has been completed, and use daemon().

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Jan 15 08:55:59 1995 UTC (31 years, 10 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +142 -143 lines
Closer to KNF, ANSI, and POSIX.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Fri Jan 6 13:16:15 1995 UTC (31 years, 10 months ago) by pk
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +8 -8 lines
Recompute `width' before each select(), as the value of `svc_maxfd' can
be changed by the rpc library.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Fri Dec 30 04:49:06 1994 UTC (31 years, 10 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +11 -9 lines
Avoid getdtablesize(3).  Also, remove some useless FD_CLR()s.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Fri Dec 23 16:21:49 1994 UTC (31 years, 11 months ago) by cgd
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +9 -6 lines
be a bit more careful with types, and prototype scope.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Wed Sep 28 01:39:54 1994 UTC (32 years, 1 month ago) by deraadt
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +24 -12 lines
create ypbind.lock file
fix ypset code

Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Sep 20 07:21:46 1994 UTC (32 years, 2 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -1 lines
force first binding poll automatically -- someone will need it very soon!

Revision 1.9.2.2: download - view: text, markup, annotated - select for diffs
Sat Jul 16 21:09:14 1994 UTC (32 years, 4 months ago) by cgd
Branches: netbsd-1-0
CVS tags: netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0
Diff to: previous 1.9.2.1: preferred, colored; branchpoint 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.2.1: +19 -9 lines
update from trunk

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sat Jul 16 11:50:58 1994 UTC (32 years, 4 months ago) by ws
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +19 -9 lines
Keep a server even if we lost contact when noone else is available

Revision 1.9.2.1: download - view: text, markup, annotated - select for diffs
Fri Jul 15 21:44:39 1994 UTC (32 years, 4 months ago) by cgd
Branches: netbsd-1-0
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +128 -30 lines
from trunk.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Jul 14 20:54:29 1994 UTC (32 years, 4 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +128 -30 lines
changes from <ws@tools.de> to do selective pinging of servers.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Jul 2 06:45:51 1994 UTC (32 years, 4 months ago) by deraadt
Branches: MAIN
CVS tags: netbsd-1-0-base
Branch point for: netbsd-1-0
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +47 -32 lines
from wolfgang, various further cleanup, and
mpliment the "clients are asking via RPC, therefore that might mean
the server is possibly dead" heuristic I bailed on earlier.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Jul 1 19:40:23 1994 UTC (32 years, 4 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +34 -14 lines
improved rebinding from ws@tools.de

Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed May 25 09:55:39 1994 UTC (32 years, 6 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +6 -3 lines
correct copyright

Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Dec 3 10:08:12 1993 UTC (32 years, 11 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +26 -9 lines
sunos compatible /var/yp/binding/ files.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Nov 15 21:51:30 1993 UTC (33 years ago) by cgd
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -2 lines
fix typo in last

Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Nov 15 08:20:05 1993 UTC (33 years ago) by deraadt
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -1 lines
ypset should only be permitted from a reserved port.
from Tor Egge <tegge@pvv.unit.no>

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Sep 5 16:10:01 1993 UTC (33 years, 2 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -2 lines
#endif in the wrong place

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun May 16 02:48:49 1993 UTC (33 years, 6 months ago) by deraadt
Branches: MAIN
CVS tags: netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +33 -0 lines
added my copyright.. how self efacing of me

Revision 1.1: download - view: text, markup, annotated - select for diffs
Mon Apr 26 08:09:04 1993 UTC (33 years, 6 months ago) by deraadt
Branches: MAIN
initial rev

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>