HomeSort by: relevance | last modified time | path
    Searched defs:sport (Results 1 - 18 of 18) sorted by relevancy

  /src/sys/net/npf/
npf_socket.c 115 uint16_t sport, dport; local in function:npf_ip_socket
119 #define in_pcbhashlookup(tbl, saddr, sport, daddr, dport) \
120 inpcb_lookup(tbl, saddr, sport, daddr, dport, NULL)
133 sport = tcp->th_sport;
138 sport = udp->uh_sport;
152 p_temp = sport;
153 sport = dport;
159 inp = in_pcbhashlookup(tb, saddr, sport, daddr, dport);
177 uint16_t sport, dport; local in function:npf_ip6_socket
181 #define in6_pcbhashlookup(tbl, saddr, sport, daddr, dport)
    [all...]
  /src/usr.sbin/npf/npftest/libnpftest/
npf_nat_test.c 23 in_port_t sport; member in struct:test_case
207 in_addr_t sport = forw ? t->tport : t->sport; local in function:checkresult
211 CHECK_TRUE(sport == ntohs(uh->uh_sport));
235 t->src, t->dst, t->sport, t->dport);
npf_rid_test.c 35 uint16_t sport; member in struct:test_case
48 .src = "10.1.1.4", .sport = 9000,
57 .src = "10.1.1.4", .sport = 9000,
65 .src = "10.1.1.4", .sport = 9000,
76 .src = LOCAL_IP, .sport = LOCAL_PORT,
84 .src = LOCAL_IP, .sport = LOCAL_PORT,
92 .src = LOCAL_IP, .sport = LOCAL_PORT,
100 .src = LOCAL_IP, .sport = LOCAL_PORT,
118 m = mbuf_get_pkt(t->af, IPPROTO_UDP, t->src, t->dst, t->sport, t->dport);
153 m = mbuf_get_pkt(t->af, IPPROTO_UDP, t->src, t->dst, t->sport, t->dport)
    [all...]
  /src/lib/libc/rpc/
rpc_soc.c 138 u_short sport; local in function:clnt_com_create
142 sport = pmap_getport(raddr, (u_long)prog, (u_long)vers,
144 if (sport == 0) {
147 raddr->sin_port = htons(sport);
  /src/sys/netipsec/
ipsec_input.c 174 nat_t_ports_get(struct mbuf *m, uint16_t *dport, uint16_t *sport)
179 *sport = ((uint16_t *)(tag + 1))[0];
182 *sport = *dport = 0;
221 u_int16_t sport; local in function:ipsec_common_input
251 nat_t_ports_get(m, &dport, &sport);
300 sav = KEY_LOOKUP_SA(&dst_address, sproto, spi, sport, dport);
306 if (sport || dport) {
311 ntohs(sport),
329 (u_long) ntohl(spi), sproto, ntohs(dport), ntohs(sport));
key.c 1250 * sport and dport are used for NAT-T. network order is always used.
1257 u_int16_t sport,
1271 if ((sport != 0) && (dport != 0))
2997 struct sadb_x_nat_t_port *sport; local in function:key_api_nat_map
3009 (mhp->extlen[SADB_X_EXT_NAT_T_SPORT] < sizeof(*sport)) ||
3034 sport = mhp->ext[SADB_X_EXT_NAT_T_SPORT];
5596 struct sadb_x_nat_t_port *sport, *dport; local in function:key_handle_natt_info
5610 if (mhp->extlen[SADB_X_EXT_NAT_T_SPORT] < sizeof(*sport)) {
5611 msg = "SPORT";
5644 sport = mhp->ext[SADB_X_EXT_NAT_T_SPORT]
5684 struct sadb_x_nat_t_port *sport; local in function:key_set_natt_ports
    [all...]
  /src/sys/arch/arm/rockchip/
rk_drm.c 381 struct rk_drm_ports *sport; local in function:rk_drm_load
400 TAILQ_FOREACH(sport, &rk_drm_ports, entries)
401 if (sport->phandle == crtc_phandle && sport->ddev == NULL) {
402 sport->ddev = ddev;
403 for (ep_index = 0; (ep = fdt_endpoint_get_from_index(sport->port, 0, ep_index)) != NULL; ep_index++) {
462 struct rk_drm_ports *sport; local in function:rk_drm_register_port
464 sport = kmem_zalloc(sizeof(*sport), KM_SLEEP);
465 sport->phandle = phandle
476 struct rk_drm_ports *sport; local in function:rk_drm_port_device
    [all...]
  /src/sys/netinet/
udp_usrreq.c 486 u_int16_t *sport, *dport; local in function:udp4_realinput
499 sport = &src->sin_port;
540 inp->inp_fport != *sport)
564 inp = inpcb_lookup(&udbtable, *src4, *sport, *dst4,
1254 u_int16_t sport, dport; local in function:udp4_espinudp
1291 sport = udphdr->uh_sport;
1327 sizeof(sport) + sizeof(dport), M_DONTWAIT)) == NULL) {
1332 ((u_int16_t *)(tag + 1))[0] = sport;
  /src/sys/netinet6/
udp6_usrreq.c 419 u_int16_t sport, dport; local in function:udp6_realinput
439 sport = src->sin6_port;
487 &src6) || inp->inp_fport != sport)
514 inp = in6pcb_lookup(&udbtable, &src6, sport, dst6,
1419 u_int16_t sport, dport; local in function:udp6_espinudp
1460 sport = udphdr->uh_sport;
1496 sizeof(sport) + sizeof(dport), M_DONTWAIT)) == NULL) {
1501 ((u_int16_t *)(tag + 1))[0] = sport;
  /src/sys/dev/pci/cxgb/
cxgb_ioctl.h 138 uint16_t sport; member in struct:ch_filter_tuple
209 uint16_t sport; member in struct:ch_trace
cxgb_main.c 162 u16 sport; member in struct:filter_info
cxgb_common.h 407 u16 sport; member in struct:trace_params
  /src/sys/external/bsd/ipf/netinet/
ip_nat6.c 452 u_short st_port, dport, sport, port, sp, dp; local in function:ipf_nat6_newmap
472 sport = fin->fin_data[1];
475 sport = htons(fin->fin_data[0]);
547 port = ntohs(sport) + l;
601 port = ntohs(sport);
652 port = sport;
699 nat->nat_osport = sport;
700 nat->nat_nsport = port; /* sport */
730 u_short nport, dport, sport; local in function:ipf_nat6_newrdr
750 sport = 0
1877 u_short sport, dport; local in function:ipf_nat6_inlookup
2190 u_short sport, dport; local in function:ipf_nat6_outlookup
    [all...]
ip_state.c 2264 * sport and dport as well which makes it not worthwhile to
2974 u_short dport, sport; local in function:ipf_state_lookup
3124 sport = htons(fin->fin_data[0]);
3125 hv += sport;
3158 hv += sport;
3170 hv -= sport;
3185 hv += sport;
4370 u_short sport, dport; local in function:ipf_checkicmp6matchingstate
4511 sport = tcp->th_sport;
4513 hv += sport;
    [all...]
ip_nat.c 206 /* ipf_nat_checkout() - changes ip_src and if required, sport */
2593 u_short st_port, dport, sport, port, sp, dp; local in function:ipf_nat_newmap
2614 sport = fin->fin_data[1];
2617 sport = htons(fin->fin_data[0]);
2681 port = ntohs(sport) + l;
2734 port = ntohs(sport);
2777 port = sport;
2823 nat->nat_osport = sport;
2824 nat->nat_nsport = port; /* sport */
2854 u_short nport, dport, sport; local in function:ipf_nat_newrdr
4027 u_short sport, dport; local in function:ipf_nat_inlookup
4356 u_short sport, dport; local in function:ipf_nat_outlookup
    [all...]
  /src/usr.sbin/mountd/
mountd.c 582 u_short sport; local in function:mntsrv
597 sport = ntohs(sin6->sin6_port);
601 sport = ntohs(sin->sin_port);
667 if (sport >= IPPORT_RESERVED &&
671 numerichost, sport);
2178 u_short sport; local in function:del_mlist
2185 sport = ntohs(((struct sockaddr_in6 *)saddr)->sin6_port);
2188 sport = ntohs(((struct sockaddr_in *)saddr)->sin_port);
2199 sport >= IPPORT_RESERVED) {
  /src/sys/dist/pf/net/
pf.c 1652 u_int16_t sport, u_int16_t dport, u_int32_t seq, u_int32_t ack,
1773 th->th_sport = sport;
2523 int direction, struct pfi_kif *kif, struct pf_addr *saddr, u_int16_t sport,
2560 src->port[0], src->port[1], sport))
2605 struct pf_addr *saddr, u_int16_t sport,
2613 sport, daddr, dport, PF_RULESET_BINAT);
2616 saddr, sport, daddr, dport, PF_RULESET_NAT);
2619 sport, daddr, dport, PF_RULESET_RDR);
2622 saddr, sport, daddr, dport, PF_RULESET_BINAT);
2757 u_int16_t sport, dport local in function:pf_socket_lookup
3090 u_int16_t sport, dport; local in function:pf_test_rule
    [all...]
pfvar.h 1362 u_int16_t sport; member in struct:pfioc_natlook

Completed in 38 milliseconds