Lines Matching refs:tport
58 static void lsock_close_port(struct tport *);
59 static int lsock_init_port(struct tport *);
60 static ssize_t lsock_send(struct tport *, const u_char *, size_t,
62 static ssize_t lsock_recv(struct tport *, struct port_input *);
78 lsock_remove(struct tport *tp, intptr_t arg __unused) in lsock_remove()
171 port->tport.index.len = namelen + 1; in lsock_open_port()
172 port->tport.index.subs[0] = namelen; in lsock_open_port()
174 port->tport.index.subs[u + 1] = name[u]; in lsock_open_port()
188 trans_insert_port(my_trans, &port->tport); in lsock_open_port()
191 (err = lsock_init_port(&port->tport)) != SNMP_ERR_NOERROR) { in lsock_open_port()
192 lsock_close_port(&port->tport); in lsock_open_port()
217 lsock_close_port(struct tport *tp) in lsock_close_port()
247 if (snmpd_input(&peer->input, &p->tport) == -1 && peer->input.stream) in lsock_input()
297 lsock_init_port(struct tport *tp) in lsock_init_port()
398 lsock_send(struct tport *tp __unused, const u_char *buf, size_t len, in lsock_send()
424 lsock_recv(struct tport *tp __unused, struct port_input *pi) in lsock_recv()
536 lsock_close_port(&ld->port->tport); in lsock_func()
542 lsock_close_port(&ld->port->tport); in lsock_func()
569 index_append(&value->var, sub, &p->tport.index); in op_lsock_port()