-/* raw_cb.c 4.16 83/02/10 */
+/* raw_cb.c 4.17 83/05/27 */
#include "../h/param.h"
#include "../h/systm.h"
#include "../net/if.h"
#include "../net/raw_cb.h"
+#include "../netinet/in.h"
+#include "../netpup/pup.h"
#include "../vax/mtpr.h"
if (ifnet == 0)
return (EADDRNOTAVAIL);
-{
-#include "../h/domain.h"
-#include "../netinet/in.h"
-#include "../netinet/in_systm.h"
/* BEGIN DUBIOUS */
/*
* Should we verify address not already in use?
*/
switch (addr->sa_family) {
+#ifdef INET
case AF_IMPLINK:
- case AF_INET:
+ case AF_INET: {
if (((struct sockaddr_in *)addr)->sin_addr.s_addr &&
if_ifwithaddr(addr) == 0)
return (EADDRNOTAVAIL);
break;
+ }
+#endif
#ifdef PUP
/*
* converting internet to PUP would be very expensive.
*/
case AF_PUP: {
-#include "../netpup/pup.h"
struct sockaddr_pup *spup = (struct sockaddr_pup *)addr;
struct sockaddr_in inpup;
default:
return (EAFNOSUPPORT);
}
-}
/* END DUBIOUS */
rp = sotorawcb(so);
bcopy((caddr_t)addr, (caddr_t)&rp->rcb_laddr, sizeof (*addr));