Home
last modified time | relevance | path

Searched refs:tport (Results 1 – 18 of 18) sorted by relevance

/freebsd/contrib/bsnmp/snmpd/
H A Dsnmpd.h168 struct tport { struct
170 TAILQ_ENTRY(tport) link; /* table link */ argument
173 TAILQ_HEAD(tport_list, tport); argument
175 int snmpd_input(struct port_input *, struct tport *);
191 void (*close_port)(struct tport *);
192 int (*init_port)(struct tport *);
194 ssize_t (*send)(struct tport *, const u_char *, size_t,
196 ssize_t (*recv)(struct tport *, struct port_input *);
199 ssize_t (*send2)(struct tport *, const u_char *, size_t,
215 void trans_insert_port(struct transport *, struct tport *);
[all …]
H A Dtrans_udp.c55 static void udp_close_port(struct tport *);
56 static int udp_init_port(struct tport *);
57 static ssize_t udp_send(struct tport *, const u_char *, size_t,
59 static ssize_t udp_recv(struct tport *, struct port_input *);
99 snmpd_input(&p->input, &p->tport); in udp_input()
106 udp_init_port(struct tport *tp) in udp_init_port()
172 port->tport.index.len = 5; in udp_open_port()
173 port->tport.index.subs[0] = addr[0]; in udp_open_port()
174 port->tport.index.subs[1] = addr[1]; in udp_open_port()
175 port->tport.index.subs[2] = addr[2]; in udp_open_port()
[all …]
H A Dtrans_lsock.c58 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 *);
79 lsock_remove(struct tport *tp, intptr_t arg __unused) in lsock_remove()
172 port->tport.index.len = namelen + 1; in lsock_open_port()
173 port->tport.index.subs[0] = namelen; in lsock_open_port()
175 port->tport.index.subs[u + 1] = name[u]; in lsock_open_port()
189 trans_insert_port(my_trans, &port->tport); in lsock_open_port()
192 (err = lsock_init_port(&port->tport)) != SNMP_ERR_NOERROR) { in lsock_open_port()
[all …]
H A Dtrans_inet.c142 struct tport tport; member
168 static_assert(offsetof(struct inet_port, tport) == 0,
246 inet_activate(struct tport *tp) in inet_activate()
259 inet_destroy_port(struct tport *tp) in inet_destroy_port()
351 inet_recv(struct tport *tp, struct port_input *pi) in inet_recv()
353 struct inet_port *port = __containerof(tp, struct inet_port, tport); in inet_recv()
384 inet_send2(struct tport *tp, const u_char *buf, size_t len, in inet_send2()
387 struct inet_port *p = __containerof(tp, struct inet_port, tport); in inet_send2()
498 snmpd_input(&sock->input, &sock->port->tport); in ipv4_input()
737 snmpd_input(&sock->input, &sock->port->tport); in ipv6_input()
[all …]
H A Dtrans_udp.h34 struct tport tport; /* must begin with this */ member
H A Dtrans_lsock.h48 struct tport tport; /* must begin with this */ member
H A Dmain.c766 trans_insert_port(struct transport *t, struct tport *port) in trans_insert_port()
768 struct tport *p; in trans_insert_port()
784 trans_remove_port(struct tport *port) in trans_remove_port()
793 struct tport *
803 struct tport *
813 struct tport *
823 struct tport *
824 trans_iter_port(struct transport *t, int (*func)(struct tport *, intptr_t), in trans_iter_port() argument
827 struct tport *p; in trans_iter_port()
1033 snmpd_input(struct port_input *pi, struct tport *tport) in snmpd_input() argument
[all …]
/freebsd/usr.sbin/pnfsdsfile/
H A Dpnfsdsfile.c74 in_port_t tport; in main() local
285 tport = sin->sin_port; in main()
287 tport = sin6->sin6_port; in main()
303 sin->sin_port = tport; in main()
308 sin6->sin6_port = tport; in main()
/freebsd/sys/cam/ctl/
H A Dctl_frontend.c146 struct ctl_port *tport, *nport; in ctl_port_register() local
207 for (tport = NULL, nport = STAILQ_FIRST(&softc->port_list); in ctl_port_register()
209 tport = nport, nport = STAILQ_NEXT(tport, links)) { in ctl_port_register()
211 if (tport) in ctl_port_register()
212 STAILQ_INSERT_AFTER(&softc->port_list, tport, port, links); in ctl_port_register()
/freebsd/sys/nfs/
H A Dkrpc_subr.c203 u_int16_t tport; in krpc_call() local
257 tport = IPPORT_RESERVED; in krpc_call()
259 tport--; in krpc_call()
260 sin->sin_port = htons(tport); in krpc_call()
263 tport > IPPORT_RESERVED / 2); in krpc_call()
/freebsd/contrib/tnftp/src/
H A Dfetch.c326 const char *origurl, *tport; in parse_url() local
340 tport = NULL; in parse_url()
346 tport = httpport; in parse_url()
351 tport = ftpport; in parse_url()
446 tport = cp; in parse_url()
449 if (tport != NULL) in parse_url()
450 *port = ftp_strdup(tport); in parse_url()
/freebsd/crypto/openssh/
H A Dscp.c1042 int sport = -1, tport = -1; in toremote() local
1053 r = parse_scp_uri(argv[argc - 1], &tuser, &thost, &tport, &targ); in toremote()
1091 tport, sftp_direct, in toremote()
1136 if (do_cmd2(thost, tuser, tport, bp, in toremote()
1154 if (tport != -1 && tport != SSH_DEFAULT_PORT) { in toremote()
1197 tport, sftp_direct, in toremote()
1213 if (do_cmd(ssh_program, thost, tuser, tport, 0, in toremote()
H A Dssh.c1113 int tport; in main() local
1115 switch (parse_ssh_uri(*av, &tuser, &host, &tport)) { in main()
1125 if (options.port == -1 && tport != -1) in main()
1126 options.port = tport; in main()
/freebsd/crypto/openssl/apps/
H A Docsp.c249 char *thost = NULL, *tport = NULL, *tpath = NULL; in ocsp_main() local
286 OPENSSL_free(tport); in ocsp_main()
288 thost = tport = tpath = NULL; in ocsp_main()
296 tport = port; in ocsp_main()
877 OPENSSL_free(tport); in ocsp_main()
H A Ds_client.c806 char *thost = NULL, *tport = NULL; in s_client_main() local
1547 tport = OPENSSL_strdup(port); in s_client_main()
1548 if (thost == NULL || tport == NULL) { in s_client_main()
2160 if (!OSSL_HTTP_proxy_connect(sbio, thost, tport, proxyuser, proxypass, in s_client_main()
3112 OPENSSL_free(tport); in s_client_main()
/freebsd/usr.sbin/ctld/
H A Dctld.c601 struct port *port, *tport; in portal_group_delete() local
603 TAILQ_FOREACH_SAFE(port, &pg->pg_ports, p_pgs, tport) in portal_group_delete()
1011 struct port *port, *tport; in pport_delete() local
1013 TAILQ_FOREACH_SAFE(port, &pp->pp_ports, p_ts, tport) in pport_delete()
1212 struct port *port, *tport; in target_delete() local
1214 TAILQ_FOREACH_SAFE(port, &targ->t_ports, p_ts, tport) in target_delete()
/freebsd/sys/dev/bxe/
H A Dbxe_stats.h668 estats->s = le32toh(tport->s) + fwstats->s; \
H A Dbxe_stats.c987 struct tstorm_per_port_stats *tport = in bxe_storm_stats_update() local