/*
* Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
*
- * @APPLE_LICENSE_HEADER_START@
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
- * The contents of this file constitute Original Code as defined in and
- * are subject to the Apple Public Source License Version 1.1 (the
- * "License"). You may not use this file except in compliance with the
- * License. Please obtain a copy of the License at
- * http://www.apple.com/publicsource and read it before using this file.
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
*
- * This Original Code and all software distributed under the License are
- * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
* EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
* INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
- * License for the specific language governing rights and limitations
- * under the License.
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
*
- * @APPLE_LICENSE_HEADER_END@
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
*/
/*
* Copyright (c) 1998 Apple Computer, Inc.
#include <net/if.h>
+#include <netat/sysglue.h>
#include <netat/appletalk.h>
+#include <netat/at_pcb.h>
#include <netat/at_var.h>
-#include <netat/sysglue.h>
#include <netat/ddp.h>
#include <netat/ep.h>
#include <netat/rtmp.h>
#include <netat/zip.h>
-#include <netat/at_pcb.h>
#include <netat/routing_tables.h>
#include <netat/nbp.h>
-extern int at_control(), at_memzone_init();
-extern void nbp_input(), ep_input(), zip_router_input(),
- sip_input(), add_ddp_handler(), init_ddp_handler(),
- ddp_start(), ddp_input(), appletalk_hack_start();
-extern u_short ddp_checksum();
-extern at_ifaddr_t *forUs();
-extern struct mbuf *m_dup(struct mbuf *, int);
extern at_ifaddr_t *ifID_home;
extern int xpatcnt;
ddp_recvspace = 50 * (600 + sizeof(struct sockaddr_at));
int ddp_pru_control(struct socket *so, u_long cmd, caddr_t data,
- struct ifnet *ifp, struct proc *p)
+ struct ifnet *ifp, __unused struct proc *p)
{
return(at_control(so, cmd, data, ifp));
}
int ddp_pru_attach(struct socket *so, int proto,
- struct proc *p)
+ __unused struct proc *p)
{
int error = 0;
- at_ddp_t *ddp = NULL;
struct atpcb *pcb = (struct atpcb *)((so)->so_pcb);
error = soreserve(so, ddp_sendspace, ddp_recvspace);
{
int error = 0;
- at_ddp_t *ddp = NULL;
struct atpcb *pcb = (struct atpcb *)((so)->so_pcb);
if (pcb == NULL)
int ddp_pru_bind(struct socket *so, struct sockaddr *nam,
- struct proc *p)
+ __unused struct proc *p)
{
struct atpcb *pcb = (struct atpcb *)((so)->so_pcb);
}
-int ddp_pru_send(struct socket *so, int flags, struct mbuf *m,
- struct sockaddr *addr, struct mbuf *control,
- struct proc *p)
+int ddp_pru_send(struct socket *so, __unused int flags, struct mbuf *m,
+ struct sockaddr *addr, __unused struct mbuf *control,
+ __unused struct proc *p)
{
at_ddp_t *ddp = NULL;
struct atpcb *pcb = (struct atpcb *)((so)->so_pcb);
}
-int ddp_pru_connect(struct socket *so, struct sockaddr *nam,
- struct proc *p)
+int ddp_pru_connect(struct socket *so, struct sockaddr *nam,
+ __unused struct proc *p)
{
struct atpcb *pcb = (struct atpcb *)((so)->so_pcb);
struct sockaddr_at *faddr = (struct sockaddr_at *) nam;
}
-
/*
* One-time AppleTalk initialization
*/
appletalk_hack_start();
} /* ddp_init */
-