Lines Matching refs:syncaddr
228 if (nargs->syncaddr) {
229 ASSERT(nargs->syncaddr->len);
230 if (nargs->syncaddr->buf) {
231 ASSERT(nargs->syncaddr->len);
232 kmem_free(nargs->syncaddr->buf, nargs->syncaddr->len);
234 kmem_free(nargs->syncaddr, sizeof (struct netbuf));
235 nargs->syncaddr = NULL;
258 struct netbuf syncaddr; /* AUTH_DES time sync addr */
289 syncaddr.buf = NULL;
383 * If there are syncaddr and netname data, load them in. This is
389 if (STRUCT_FGETP(args, syncaddr) == NULL) {
393 /* get syncaddr */
395 if (copyin(STRUCT_FGETP(args, syncaddr), STRUCT_BUF(addr_tmp),
401 syncaddr.len = STRUCT_FGET(addr_tmp, len);
402 syncaddr.buf = kmem_alloc(syncaddr.len, KM_SLEEP);
403 syncaddr.maxlen = syncaddr.len;
404 if (copyin(userbufptr, syncaddr.buf, syncaddr.len)) {
405 kmem_free(syncaddr.buf, syncaddr.len);
410 nargs->syncaddr = kmem_alloc(sizeof (struct netbuf), KM_SLEEP);
411 bcopy(&syncaddr, nargs->syncaddr, sizeof (struct netbuf));
826 if (args->syncaddr == NULL || args->syncaddr->buf == NULL) {
840 bcopy(args->syncaddr, &data->syncaddr,
841 sizeof (*args->syncaddr));