diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-09-27 18:50:11 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-09-27 22:09:58 +0200 |
commit | f42c29d2172e953887542bf7fb31d2b739563887 (patch) | |
tree | 13122a5c38bb10838b52d5850d48580e6fd27707 /pfinet/pfinet.h | |
parent | a5d384c333dbbe863c1515d6167d956b0c5b4852 (diff) |
pfinet: convert to trivfs dynamic classes and buckets
libtrivfs contains two ways of managing more than one port class and
bucket. There is the old way of using a statically allocated array
with explicit length, and the new way with dynamically allocated
vectors.
Converting all users to the new way of handling multiple classes
and/or buckets, we can simplify the code in libtrivfs. In many cases,
the code will be simpler and more expressive for the user.
This also fixes a mild bug. The classes and buckets given to
`trivfs_startup' end up in the dynamic vectors too, making the object
lookup code use the more complicated code path.
* pfinet/main.c: Convert to dynamic classes and buckets.
* pfinet/options.c: Likewise.
* pfinet/pfinet.h: Likewise.
* pfinet/socket-ops.c: Likewise.
Diffstat (limited to 'pfinet/pfinet.h')
-rw-r--r-- | pfinet/pfinet.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/pfinet/pfinet.h b/pfinet/pfinet.h index 46aa97bb..6e592259 100644 --- a/pfinet/pfinet.h +++ b/pfinet/pfinet.h @@ -92,11 +92,8 @@ enum { PORTCLASS_INET6, }; -extern struct port_class *trivfs_protid_portclasses[]; -extern int trivfs_protid_nportclasses; - -extern struct port_class *trivfs_cntl_portclasses[2]; -extern int trivfs_cntl_nportclasses; +extern struct port_class *pfinet_protid_portclasses[2]; +extern struct port_class *pfinet_cntl_portclasses[2]; /* Which portclass to install on the bootstrap port. */ extern int pfinet_bootstrap_portclass; |