diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-10-19 01:38:34 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-10-19 01:38:34 +0000 |
commit | 3114bbcb0cf91390266e2e1e59d233a5ee293243 (patch) | |
tree | 1da84b1e68a862d01602d8be8e0f06169d79b09d | |
parent | 3a324bf9f19a32cde65f64fd927cb1659ad255ee (diff) |
Formerly main.c.~4~
-rw-r--r-- | pfinet/main.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/pfinet/main.c b/pfinet/main.c index 5b30c4eb..1d2b4b46 100644 --- a/pfinet/main.c +++ b/pfinet/main.c @@ -20,14 +20,18 @@ #include "pfinet.h" +#define pfinet_demuxer ethernet_demuxer + main () { char addr[4]; + + pfinet_bucket = ports_create_bucket (); setup_ethernet_device (); /* Call initialization routines */ - init_proto_init (); + inet_proto_init (); /* Simulate SIOCSIFADDR call. */ @@ -44,8 +48,13 @@ main () ether_dev.pa_mask = *(u_long *)addr; ether_dev.family = AF_INET; - ether_dev.pa_brdaddr = ether_dev->pa_addr | ~ether_dev->pa_mask; + ether_dev.pa_brdaddr = ether_dev.pa_addr | ~ether_dev.pa_mask; /* Turn on device. */ dev_open (ðer_dev); + + ports_manage_port_operations_multithread (pfinet_bucket, + pfinet_demuxer, + 0, 0, 1, 0); + return 0; } |