Lines Matching refs:port
33 * bit corresponding to a single port in the ascending order. For example,
34 * the second most significant bit of buf[0] corresponds to port 1.
42 portset_isset(isc_portset_t *portset, in_port_t port) {
43 return (ISC_TF((portset->buf[port >> 5] & (1 << (port & 31))) != 0));
47 portset_add(isc_portset_t *portset, in_port_t port) {
48 if (!portset_isset(portset, port)) {
50 portset->buf[port >> 5] |= (1 << (port & 31));
55 portset_remove(isc_portset_t *portset, in_port_t port) {
56 if (portset_isset(portset, port)) {
58 portset->buf[port >> 5] &= ~(1 << (port & 31));
90 isc_portset_isset(isc_portset_t *portset, in_port_t port) {
93 return (portset_isset(portset, port));
104 isc_portset_add(isc_portset_t *portset, in_port_t port) {
107 portset_add(portset, port);
111 isc_portset_remove(isc_portset_t *portset, in_port_t port) {
112 portset_remove(portset, port);