otherwise dropped as duplicates.
2.) Kernel should return error on illegal socket option requests.
(or pass them further down the layers at some future date?)
SCCS-vsn: sys/netns/spp_usrreq.c 6.15
- * Copyright (c) 1982 Regents of the University of California.
+ * Copyright (c) 1984, 1985 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
m->m_off += sizeof (struct idp);
if (spp_reass(cb, si)) {
m->m_off += sizeof (struct idp);
if (spp_reass(cb, si)) {
}
(void) spp_output(cb, (struct mbuf *)0);
return;
}
(void) spp_output(cb, (struct mbuf *)0);
return;
m->m_len = sizeof(struct spidp);
m->m_off = MMAXOFF - sizeof(struct sphdr);
*mtod(m, struct sphdr *) = cb->s_shdr.si_s;
m->m_len = sizeof(struct spidp);
m->m_off = MMAXOFF - sizeof(struct sphdr);
*mtod(m, struct sphdr *) = cb->s_shdr.si_s;
+ break;
+
+ default:
+ error = EINVAL;
cb->s_dt = sp->sp_dt;
cb->s_cc = sp->sp_cc & SP_EM;
}
cb->s_dt = sp->sp_dt;
cb->s_cc = sp->sp_cc & SP_EM;
}
+ break;
+
+ default:
+ error = EINVAL;
}
m_freem(*value);
break;
}
m_freem(*value);
break;