yp.c (296376) | yp.c (296377) |
---|---|
1/* $OpenBSD: yp.c,v 1.14 2015/02/11 01:26:00 pelikan Exp $ */ | 1/* $OpenBSD: yp.c,v 1.14 2015/02/11 01:26:00 pelikan Exp $ */ |
2/* $FreeBSD: head/usr.sbin/ypldap/yp.c 296376 2016-03-04 02:14:32Z araujo $ */ | 2/* $FreeBSD: head/usr.sbin/ypldap/yp.c 296377 2016-03-04 03:10:08Z araujo $ */ |
3/* 4 * Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org> 5 * 6 * Permission to use, copy, modify, and distribute this software for any 7 * purpose with or without fee is hereby granted, provided that the above 8 * copyright notice and this permission notice appear in all copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 200 unchanged lines hidden (view full) --- 211 case YPPROC_CLEAR: 212 log_debug("ypproc_clear"); 213 if (yp_check(req) == -1) 214 return; 215 svcerr_noproc(trans); 216 return; 217 case YPPROC_ALL: 218 log_debug("ypproc_all"); | 3/* 4 * Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org> 5 * 6 * Permission to use, copy, modify, and distribute this software for any 7 * purpose with or without fee is hereby granted, provided that the above 8 * copyright notice and this permission notice appear in all copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 200 unchanged lines hidden (view full) --- 211 case YPPROC_CLEAR: 212 log_debug("ypproc_clear"); 213 if (yp_check(req) == -1) 214 return; 215 svcerr_noproc(trans); 216 return; 217 case YPPROC_ALL: 218 log_debug("ypproc_all"); |
219 xdr_argument = (xdrproc_t) xdr_ypreq_nokey; 220 xdr_result = (xdrproc_t) xdr_ypresp_all; |
|
219 if (yp_check(req) == -1) 220 return; 221 cb = (void *)ypproc_all_2_svc; 222 break; 223 case YPPROC_MASTER: 224 log_debug("ypproc_master"); 225 xdr_argument = (xdrproc_t) xdr_ypreq_nokey; 226 xdr_result = (xdrproc_t) xdr_ypresp_master; --- 4 unchanged lines hidden (view full) --- 231 case YPPROC_ORDER: 232 log_debug("ypproc_order"); 233 if (yp_check(req) == -1) 234 return; 235 svcerr_noproc(trans); 236 return; 237 case YPPROC_MAPLIST: 238 log_debug("ypproc_maplist"); | 221 if (yp_check(req) == -1) 222 return; 223 cb = (void *)ypproc_all_2_svc; 224 break; 225 case YPPROC_MASTER: 226 log_debug("ypproc_master"); 227 xdr_argument = (xdrproc_t) xdr_ypreq_nokey; 228 xdr_result = (xdrproc_t) xdr_ypresp_master; --- 4 unchanged lines hidden (view full) --- 233 case YPPROC_ORDER: 234 log_debug("ypproc_order"); 235 if (yp_check(req) == -1) 236 return; 237 svcerr_noproc(trans); 238 return; 239 case YPPROC_MAPLIST: 240 log_debug("ypproc_maplist"); |
241 xdr_argument = (xdrproc_t) xdr_domainname; 242 xdr_result = (xdrproc_t) xdr_ypresp_maplist; |
|
239 if (yp_check(req) == -1) 240 return; 241 cb = (void *)ypproc_maplist_2_svc; 242 break; 243 default: 244 svcerr_noproc(trans); 245 return; 246 } --- 412 unchanged lines hidden --- | 243 if (yp_check(req) == -1) 244 return; 245 cb = (void *)ypproc_maplist_2_svc; 246 break; 247 default: 248 svcerr_noproc(trans); 249 return; 250 } --- 412 unchanged lines hidden --- |