/netbsd-current/external/bsd/ipf/dist/perl/ |
H A D | logfilter.pl | 92 ($sport, $dport) = $line =~ m/\d+\.\d+\.\d+\.\d+,(\d+) -> \d+\.\d+\.\d+\.\d+,(\d+)/; 93 #print "$line\n" unless (defined($sport) && defined($dport)); 97 $filename = $tcp{$dport} if (defined($tcp{$dport})); 108 ($sport, $dport) = $line =~ m/\d+\.\d+\.\d+\.\d+,(\d+) -> \d+\.\d+\.\d+\.\d+,(\d+)/; 112 $filename = $udp{$dport} if (defined($udp{$dport}));
|
H A D | plog | 523 my ($sport, $dport, @flags); 529 # We save icmp type and code in both sport and dport. This 532 $dport = $sport = "$1.$2"; 537 $dport = ''; 563 $dport = &portSimplify ($1, $proto); 567 $dport = ''; 644 &countPacket ($src, 's', $dest, $proto, $count, "$sport:$dport:$if:$act", @flags) if ($sTable); 647 &countPacket ($dest, 'd', $src, $proto, $count, "$dport:$sport:$if:$act", @flags) if ($dTable); 703 my ($sport, $dport, $if, $act) = split (/:/, $packet); 709 printf (" %-6s %7s %4d %4s %16s %2s %s.%s", $if, $act, $count, $protoName, &portName ($sport, $protoName), $arrow, $peerName, &portName ($dport, [all...] |
/netbsd-current/external/bsd/tcpdump/dist/ |
H A D | print-udp.c | 320 udpipaddr_print(netdissect_options *ndo, const struct ip *ip, int sport, int dport) argument 340 udpport_string(ndo, (uint16_t)dport)); 346 udpport_string(ndo, (uint16_t)dport)); 360 udpport_string(ndo, (uint16_t)dport)); 366 udpport_string(ndo, (uint16_t)dport)); 381 uint16_t sport, dport; local 398 dport = GET_BE_U_2(up->uh_dport); 401 udpipaddr_print(ndo, ip, sport, dport); 406 udpipaddr_print(ndo, ip, sport, dport); 418 udpipaddr_print(ndo, ip, sport, dport); [all...] |
H A D | pflog.h | 146 uint16_t dport; member in struct:pfloghdr
|
H A D | print-tcp.c | 172 uint16_t sport, dport, win, urp; local 203 dport = GET_BE_U_2(tp->th_dport); 211 tcpport_string(ndo, dport)); 214 tcpport_string(ndo, sport), tcpport_string(ndo, dport)); 222 tcpport_string(ndo, dport)); 225 tcpport_string(ndo, sport), tcpport_string(ndo, dport)); 273 if (sport > dport) 275 else if (sport == dport) { 282 tha.port = ((u_int)dport) << 16 | sport; 286 tha.port = ((u_int)sport) << 16 | dport; [all...] |
H A D | print-pgm.c | 159 uint16_t sport, dport; local 188 dport = GET_BE_U_2(pgm->pgm_dport); 196 tcpport_string(ndo, dport)); 199 tcpport_string(ndo, sport), tcpport_string(ndo, dport)); 207 tcpport_string(ndo, dport)); 210 tcpport_string(ndo, sport), tcpport_string(ndo, dport));
|
H A D | print-dccp.c | 281 u_short sport, dport; local 315 dport = GET_BE_U_2(dh->dccph_dport); 321 GET_IP6ADDR_STRING(ip6->ip6_dst), dport); 325 GET_IPADDR_STRING(ip->ip_dst), dport);
|
/netbsd-current/dist/pf/usr.sbin/ftp-proxy/ |
H A D | npf.c | 130 modify_bytecode(in_addr_t shost, in_addr_t dhost, in_port_t dport) argument 142 insns[INSN_DPORT].k = dport; 234 struct sockaddr *dst, uint16_t dport) 240 if (!src || !dst || !dport) { 254 modify_bytecode(sa_to_32(src), sa_to_32(dst), dport); local 272 uint16_t dport, struct sockaddr *snat, uint16_t plow, uint16_t phigh) 278 if (!src || !dst || !dport || !snat || !plow || 299 modify_bytecode(sa_to_32(src), sa_to_32(dst), dport); local 316 uint16_t dport, struct sockaddr *rdr, uint16_t rdr_port) 322 if (!src || !dst || !dport || !rd 233 npf_add_filter(uint32_t id, uint8_t pf_dir, struct sockaddr *src, struct sockaddr *dst, uint16_t dport) argument 271 npf_add_nat(uint32_t id, struct sockaddr *src, struct sockaddr *dst, uint16_t dport, struct sockaddr *snat, uint16_t plow, uint16_t phigh) argument 315 npf_add_rdr(uint32_t id, struct sockaddr *src, struct sockaddr *dst, uint16_t dport, struct sockaddr *rdr, uint16_t rdr_port) argument 347 modify_bytecode(sa_to_32(src), sa_to_32(dst), dport); local [all...] |
/netbsd-current/usr.sbin/npf/npftest/libnpftest/ |
H A D | npf_nat_test.c | 25 in_port_t dport; member in struct:test_case 208 in_addr_t dport = forw ? t->dport : t->tport; local 213 CHECK_TRUE(dport == ntohs(uh->uh_dport)); 235 t->src, t->dst, t->sport, t->dport);
|
H A D | npf_mbuf_subr.c | 262 int sport, int dport) 293 th->th_dport = htons(dport); 298 uh->uh_dport = htons(dport); 261 mbuf_get_pkt(int af, int proto, const char *src, const char *dst, int sport, int dport) argument
|
/netbsd-current/external/bsd/ipf/dist/ipsd/ |
H A D | ipsdr.c | 89 int findhit(ihp, src, dport) 92 u_short dport; 122 int detect(srcip, dport, date) 124 u_short dport; 132 k = dport - defports[i]; 135 if (findhit(ihp, srcip, dport))
|
H A D | ipsd.c | 79 int findhit(ihp, src, dport) 82 u_short dport;
|
/netbsd-current/sys/net/npf/ |
H A D | npf_alg_icmp.c | 78 in_port_t dport; local 91 dport = ntohs(th->th_dport); 96 dport = ntohs(uh->uh_dport); 102 dport = TR_BASE_PORT; 109 if (dport < TR_BASE_PORT || dport > TR_PORT_RANGE) {
|
/netbsd-current/external/bsd/blocklist/libexec/ |
H A D | blocklistd-helper | 144 --dport "$raw_port" --jump "$2" 146 --source "$addr/$mask" --dport "$raw_port" --jump DROP 184 --source "$addr/$mask" --dport "$raw_port" \
|
/netbsd-current/libexec/identd/ |
H A D | pf.c | 45 nl.dport = csatosin(&ss[0])->sin_port; 56 nl.dport = csatosin6(&ss[0])->sin6_port;
|
/netbsd-current/sys/external/bsd/drm2/dist/drm/i915/display/ |
H A D | intel_dpio_phy.c | 650 struct intel_digital_port *dport = enc_to_dig_port(encoder); local 652 enum dpio_channel ch = vlv_dport_to_channel(dport); 789 struct intel_digital_port *dport = enc_to_dig_port(encoder); local 792 enum dpio_channel ch = vlv_dport_to_channel(dport); 803 dport->release_cl2_override = 870 struct intel_digital_port *dport = dp_to_dig_port(intel_dp); local 873 enum dpio_channel ch = vlv_dport_to_channel(dport); 948 struct intel_digital_port *dport = enc_to_dig_port(encoder); local 951 if (dport->release_cl2_override) { 953 dport 997 struct intel_digital_port *dport = enc_to_dig_port(encoder); local 1022 struct intel_digital_port *dport = enc_to_dig_port(encoder); local 1052 struct intel_digital_port *dport = dp_to_dig_port(intel_dp); local 1081 struct intel_digital_port *dport = enc_to_dig_port(encoder); local [all...] |
/netbsd-current/sys/netipsec/ |
H A D | key.h | 104 #define KEY_LOOKUP_SA(dst, proto, spi, sport, dport) \ 105 key_lookup_sa(dst, proto, spi, sport, dport, __func__, __LINE__)
|
H A D | ipsec_input.c | 174 nat_t_ports_get(struct mbuf *m, uint16_t *dport, uint16_t *sport) argument 180 *dport = ((uint16_t *)(tag + 1))[1]; 182 *sport = *dport = 0; 222 u_int16_t dport; local 251 nat_t_ports_get(m, &dport, &sport); 300 sav = KEY_LOOKUP_SA(&dst_address, sproto, spi, sport, dport); 306 if (sport || dport) { 313 ntohs(dport), 329 (u_long) ntohl(spi), sproto, ntohs(dport), ntohs(sport));
|
/netbsd-current/crypto/dist/ipsec-tools/src/racoon/ |
H A D | nattraversal.h | 73 u_int16_t dport; member in struct:ph2natt
|
/netbsd-current/external/bsd/ipf/dist/ |
H A D | ip_nat6.c | 471 u_short st_port, dport, sport, port, sp, dp; local 492 dport = 0; 495 dport = htons(fin->fin_data[1]); 720 nat->nat_odport = dport; 721 nat->nat_ndport = dport; 752 u_short nport, dport, sport; local 771 dport = fin->fin_data[1]; 775 dport = htons(fin->fin_data[1]); 778 /* TRACE sport, dport */ 791 &fin->fin_dst6, &in, (u_32_t)dport); 1918 u_short sport, dport; local 2240 u_short sport, dport; local 3028 u_short dport; local [all...] |
/netbsd-current/sys/external/bsd/ipf/netinet/ |
H A D | ip_nat6.c | 452 u_short st_port, dport, sport, port, sp, dp; local 473 dport = 0; 476 dport = htons(fin->fin_data[1]); 701 nat->nat_odport = dport; 702 nat->nat_ndport = dport; 730 u_short nport, dport, sport; local 749 dport = fin->fin_data[1]; 753 dport = htons(fin->fin_data[1]); 756 /* TRACE sport, dport */ 769 &fin->fin_dst6, &in, (u_32_t)dport); 1877 u_short sport, dport; local 2190 u_short sport, dport; local 2971 u_short dport; local [all...] |
/netbsd-current/external/bsd/libpcap/dist/ |
H A D | pflog.h | 152 uint16_t dport; member in struct:pfloghdr
|
/netbsd-current/usr.sbin/bootp/bootptest/ |
H A D | print-bootp.c | 57 bootp_print(struct bootp *bp, int length, u_short sport, u_short dport) argument 78 if (sport != IPPORT_BOOTPC || dport != IPPORT_BOOTPS) 84 if (sport != IPPORT_BOOTPS || dport != IPPORT_BOOTPC)
|
/netbsd-current/sys/netinet/ |
H A D | udp_usrreq.c | 488 u_int16_t *sport, *dport; local 503 dport = &dst->sin_port; 534 if (inp->inp_lport != *dport) 567 *dport, 0); 570 inp = inpcb_lookup_bound(&udbtable, *dst4, *dport); 1258 u_int16_t sport, dport; local 1296 dport = udphdr->uh_dport; 1331 sizeof(sport) + sizeof(dport), M_DONTWAIT)) == NULL) { 1336 ((u_int16_t *)(tag + 1))[1] = dport;
|
/netbsd-current/sys/dev/pci/cxgb/ |
H A D | cxgb_ioctl.h | 139 uint16_t dport; member in struct:ch_filter_tuple 211 uint16_t dport; member in struct:ch_trace
|