diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-10-25 22:03:57 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-10-25 22:03:57 +0000 |
commit | b70339c9e9191c3d62c66bfa0abe9138050a15c7 (patch) | |
tree | c8c6aef11781f7d2ea773273e42304af86f15449 /pfinet/pfinet.h | |
parent | c3b54a4ef566013c43a8c81293898e79410ab247 (diff) |
Formerly pfinet.h.~8~
Diffstat (limited to 'pfinet/pfinet.h')
-rw-r--r-- | pfinet/pfinet.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pfinet/pfinet.h b/pfinet/pfinet.h index 72a93ee8..13c138f7 100644 --- a/pfinet/pfinet.h +++ b/pfinet/pfinet.h @@ -34,5 +34,21 @@ struct port_bucket *pfinet_bucket; extern struct device ether_dev; +/* A port on SOCK. Multiple sock_user's can point to the same socket. */ +struct sock_user +{ + struct port_info pi; + int isroot; + struct socket *sock; /* Linux socket structure, see linux/net.h */ +}; + +/* Socket address ports. */ +struct sock_addr +{ + struct port_info pi; + size_t len; + char address[0]; +}; + int ethernet_demuxer (mach_msg_header_t *, mach_msg_header_t *); void setup_ethernet_device (void); |