/* in_proto.c 5.3 82/11/03 */
#include "../h/protosw.h"
#include "../netinet/in.h"
#include "../netinet/in_systm.h"
* TCP/IP protocol family: IP, ICMP, UDP, TCP.
int ip_init(),ip_slowtimo(),ip_drain();
int udp_input(),udp_ctlinput();
int tcp_input(),tcp_ctlinput();
int tcp_init(),tcp_fasttimo(),tcp_slowtimo(),tcp_drain();
int rip_input(),rip_output();
* IMP protocol family: raw interface.
* Using the raw interface entry to get the timer routine
int rimp_output(), hostslowtimo();
struct protosw inetsw
[] = {
ip_init
, 0, ip_slowtimo
, ip_drain
,
{ 0, PF_INET
, IPPROTO_ICMP
, 0,
{ SOCK_DGRAM
, PF_INET
, IPPROTO_UDP
, PR_ATOMIC
|PR_ADDR
,
udp_input
, 0, udp_ctlinput
, 0,
{ SOCK_STREAM
, PF_INET
, IPPROTO_TCP
, PR_CONNREQUIRED
|PR_WANTRCVD
,
tcp_input
, 0, tcp_ctlinput
, 0,
tcp_init
, tcp_fasttimo
, tcp_slowtimo
, tcp_drain
,
{ SOCK_RAW
, PF_INET
, IPPROTO_RAW
, PR_ATOMIC
|PR_ADDR
,
rip_input
, rip_output
, 0, 0,
struct domain inetdomain
=
{ AF_INET
, "internet", inetsw
, &inetsw
[sizeof(inetsw
)/sizeof(inetsw
[0])] };
struct protosw impsw
[] = {
{ SOCK_RAW
, PF_IMPLINK
, 0, PR_ATOMIC
|PR_ADDR
,
struct domain impdomain
=
{ AF_IMPLINK
, "imp", impsw
, &impsw
[sizeof (impsw
)/sizeof(impsw
[0])] };