diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-03-19 07:21:22 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-03-19 07:21:22 +0000 |
commit | a0128abb0aea6f9d590dbe3e603f7c3f235cd069 (patch) | |
tree | 8fdd9c9c3533cdadc18a1cb2e8079395e9a46ac5 /sys/netatalk/ddp_pcb.h | |
parent | 14cb41a101a9bc09dc9fe05e529ac996d026d02b (diff) | |
download | FreeBSD-src-a0128abb0aea6f9d590dbe3e603f7c3f235cd069.zip FreeBSD-src-a0128abb0aea6f9d590dbe3e603f7c3f235cd069.tar.gz |
Isolate PCB-specific ethertalk DDP functions in ddp_pcb.c, removing them
from ddp_usrreq.c. Functions moved are:
at_pcballoc()
at_pcbconnect()
at_pcbdetach()
at_pcbdisconnect()
at_pcbsetaddr()
at_sockaddr()
Also moved are ddp_ports and ddpcb, global variables associated with DDP
pcbs. This makes PCB implementation more parallel to inet, inet6, and
ipx.
Diffstat (limited to 'sys/netatalk/ddp_pcb.h')
-rw-r--r-- | sys/netatalk/ddp_pcb.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sys/netatalk/ddp_pcb.h b/sys/netatalk/ddp_pcb.h new file mode 100644 index 0000000..819d674 --- /dev/null +++ b/sys/netatalk/ddp_pcb.h @@ -0,0 +1,20 @@ +/* + * Copyright (c) 1990,1994 Regents of The University of Michigan. + * All Rights Reserved. See COPYRIGHT. + * + * $FreeBSD$ + */ + +#ifndef _NETATALK_DDP_PCB_H_ +#define _NETATALK_DDP_PCB_H_ + +int at_pcballoc(struct socket *so); +int at_pcbconnect(struct ddpcb *ddp, struct sockaddr *addr, + struct thread *td); +void at_pcbdetach(struct socket *so, struct ddpcb *ddp); +void at_pcbdisconnect(struct ddpcb *ddp); +int at_pcbsetaddr(struct ddpcb *ddp, struct sockaddr *addr, + struct thread *td); +void at_sockaddr(struct ddpcb *ddp, struct sockaddr **addr); + +#endif |