diff options
author | Thomas Bushnell <thomas@gnu.org> | 1996-10-25 03:14:46 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1996-10-25 03:14:46 +0000 |
commit | 96d494ad261e1635b1168bf53b613b866d06f086 (patch) | |
tree | 89a7b759de1ac3122acb0207dec2d63c88c6b59d /pfinet/pfinet.h | |
parent | 0ffdd2c1c4bb58c395ee8a283c94fb0cc9034201 (diff) | |
download | hurd-96d494ad261e1635b1168bf53b613b866d06f086.tar.gz hurd-96d494ad261e1635b1168bf53b613b866d06f086.tar.bz2 hurd-96d494ad261e1635b1168bf53b613b866d06f086.zip |
Thu Oct 24 22:38:55 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
* main.c (main): Call setup_loopback_device before parsing args
(and thus before the ethernet device shows up).
* loopback.c: New file.
* Makefile (SRCS): Add loopback.c.
* pfinet.h (loopback_dev): New variable.
* pfinet.h (ip_rt_del): New prototype.
Diffstat (limited to 'pfinet/pfinet.h')
-rw-r--r-- | pfinet/pfinet.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pfinet/pfinet.h b/pfinet/pfinet.h index 966a4e8d..b4ed61ec 100644 --- a/pfinet/pfinet.h +++ b/pfinet/pfinet.h @@ -42,6 +42,7 @@ struct port_class *socketport_class; mach_port_t fsys_identity; extern struct device ether_dev; +extern struct device loopback_dev; /* A port on SOCK. Multiple sock_user's can point to the same socket. */ struct sock_user @@ -59,6 +60,8 @@ struct sock_addr struct sockaddr address[0]; }; +void setup_loopback_device (char *); + int ethernet_demuxer (mach_msg_header_t *, mach_msg_header_t *); void setup_ethernet_device (char *); void become_task_protid (struct trivfs_protid *); @@ -71,6 +74,7 @@ void init_time (void); void inet_proto_init (struct net_proto *); void ip_rt_add (short, u_long, u_long, u_long, struct device *, u_short, u_long); +void ip_rt_del (u_long, struct device *); int tcp_readable (struct sock *); |