mountd.c (e71171f31b0c880ec4b225def94ddafebdbb5345) | mountd.c (18b51f792fb28f3909a1e3a6b44898572b9afdcf) |
---|---|
1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Herb Hasler and Rick Macklem at The University of Guelph. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 554 unchanged lines hidden (view full) --- 563 struct svc_req *rqstp; 564 SVCXPRT *transp; 565{ 566 struct exportlist *ep; 567 struct dirlist *dp; 568 struct fhreturn fhr; 569 struct stat stb; 570 struct statfs fsb; | 1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Herb Hasler and Rick Macklem at The University of Guelph. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 554 unchanged lines hidden (view full) --- 563 struct svc_req *rqstp; 564 SVCXPRT *transp; 565{ 566 struct exportlist *ep; 567 struct dirlist *dp; 568 struct fhreturn fhr; 569 struct stat stb; 570 struct statfs fsb; |
571 struct addrinfo *ai; | |
572 char host[NI_MAXHOST], numerichost[NI_MAXHOST]; 573 int lookup_failed = 1; 574 struct sockaddr *saddr; 575 u_short sport; 576 char rpcpath[RPCMNT_PATHLEN + 1], dirpath[MAXPATHLEN]; 577 int bad = 0, defset, hostset; 578 sigset_t sighup_mask; 579 --- 10 unchanged lines hidden (view full) --- 590 default: 591 syslog(LOG_ERR, "request from unknown address family"); 592 return; 593 } 594 lookup_failed = getnameinfo(saddr, saddr->sa_len, host, sizeof host, 595 NULL, 0, 0); 596 getnameinfo(saddr, saddr->sa_len, numerichost, 597 sizeof numerichost, NULL, 0, NI_NUMERICHOST); | 571 char host[NI_MAXHOST], numerichost[NI_MAXHOST]; 572 int lookup_failed = 1; 573 struct sockaddr *saddr; 574 u_short sport; 575 char rpcpath[RPCMNT_PATHLEN + 1], dirpath[MAXPATHLEN]; 576 int bad = 0, defset, hostset; 577 sigset_t sighup_mask; 578 --- 10 unchanged lines hidden (view full) --- 589 default: 590 syslog(LOG_ERR, "request from unknown address family"); 591 return; 592 } 593 lookup_failed = getnameinfo(saddr, saddr->sa_len, host, sizeof host, 594 NULL, 0, 0); 595 getnameinfo(saddr, saddr->sa_len, numerichost, 596 sizeof numerichost, NULL, 0, NI_NUMERICHOST); |
598 ai = NULL; | |
599 switch (rqstp->rq_proc) { 600 case NULLPROC: 601 if (!svc_sendreply(transp, (xdrproc_t)xdr_void, NULL)) 602 syslog(LOG_ERR, "can't send reply"); 603 return; 604 case RPCMNT_MOUNT: 605 if (sport >= IPPORT_RESERVED && resvport_only) { 606 syslog(LOG_NOTICE, --- 1940 unchanged lines hidden --- | 597 switch (rqstp->rq_proc) { 598 case NULLPROC: 599 if (!svc_sendreply(transp, (xdrproc_t)xdr_void, NULL)) 600 syslog(LOG_ERR, "can't send reply"); 601 return; 602 case RPCMNT_MOUNT: 603 if (sport >= IPPORT_RESERVED && resvport_only) { 604 syslog(LOG_NOTICE, --- 1940 unchanged lines hidden --- |