* Copyright (c) 1982 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
* @(#)in_proto.c 6.8 (Berkeley) %G%
* 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();
extern struct domain inetdomain
;
struct protosw inetsw
[] = {
ip_init
, 0, ip_slowtimo
, ip_drain
,
{ SOCK_DGRAM
, &inetdomain
, IPPROTO_UDP
, PR_ATOMIC
|PR_ADDR
,
udp_input
, 0, udp_ctlinput
, 0,
{ SOCK_STREAM
, &inetdomain
, IPPROTO_TCP
, PR_CONNREQUIRED
|PR_WANTRCVD
,
tcp_input
, 0, tcp_ctlinput
, 0,
tcp_init
, tcp_fasttimo
, tcp_slowtimo
, tcp_drain
,
{ SOCK_RAW
, &inetdomain
, IPPROTO_RAW
, PR_ATOMIC
|PR_ADDR
,
rip_input
, rip_output
, 0, 0,
{ SOCK_RAW
, &inetdomain
, IPPROTO_ICMP
, PR_ATOMIC
|PR_ADDR
,
icmp_input
, rip_output
, 0, 0,
{ SOCK_RAW
, &inetdomain
, IPPROTO_PUP
, PR_ATOMIC
|PR_ADDR
,
idpip_input
, rip_output
, 0, 0,
{ SOCK_RAW
, &inetdomain
, 0, PR_ATOMIC
|PR_ADDR
,
rip_input
, rip_output
, 0, 0,
struct domain inetdomain
=
{ AF_INET
, "internet", 0, 0, 0,
inetsw
, &inetsw
[sizeof(inetsw
)/sizeof(inetsw
[0])] };
extern struct domain impdomain
;
struct protosw impsw
[] = {
{ SOCK_RAW
, &impdomain
, 0, PR_ATOMIC
|PR_ADDR
,
struct domain impdomain
=
{ AF_IMPLINK
, "imp", 0, 0, 0,
impsw
, &impsw
[sizeof (impsw
)/sizeof(impsw
[0])] };