Home
last modified time | relevance | path

Searched refs:ntohs (Results 1 – 25 of 419) sorted by relevance

12345678910>>...17

/titanic_44/usr/src/cmd/ipf/lib/common/
H A Dprintpacket6.c20 plen = ntohs(*((u_short *)buf +2));
25 ntohs(addrs[0]), ntohs(addrs[1]), ntohs(addrs[2]),
26 ntohs(addrs[3]), ntohs(addrs[4]), ntohs(addrs[5]),
27 ntohs(addrs[6]), ntohs(addrs[7]));
30 (void)printf(",%d", ntohs(tcp->th_sport));
34 ntohs(addrs[0]), ntohs(addrs[1]), ntohs(addrs[2]),
35 ntohs(addrs[3]), ntohs(addrs[4]), ntohs(addrs[5]),
36 ntohs(addrs[6]), ntohs(addrs[7]));
39 (void)printf(",%d", ntohs(tcp->th_dport));
H A Dprintpacket.c25 len = ntohs(((u_short *)ip)[2]) + 40;
27 off = ntohs(ip->ip_off);
28 len = ntohs(ip->ip_len);
53 printf("ip %d(%d) %d", ntohs(ip->ip_len), IP_HL(ip) << 2, ip->ip_p);
59 printf(",%d", ntohs(tcp->th_sport));
64 printf(",%d", ntohs(tcp->th_dport));
H A Dprintstate.c34 ntohs(ips.is_sport), ntohs(ips.is_dport),
53 PRINTF(" %hu -> %hu\n", ntohs(ips.is_sport),
54 ntohs(ips.is_dport));
56 PRINTF(" call %hx/%hx\n", ntohs(ips.is_gre.gs_call[0]),
57 ntohs(ips.is_gre.gs_call[1]));
63 PRINTF(" id %hu seq %hu type %d\n", ntohs(ips.is_icmp.ici_id),
64 ntohs(ips.is_icmp.ici_seq), ips.is_icmp.ici_type);
H A Dprintnat.c104 printf(" port %d", ntohs(np->in_pmin));
106 printf("-%d", ntohs(np->in_pmax));
123 printf(" port = %d", ntohs(np->in_pnext));
125 printf(" port %d", ntohs(np->in_pnext));
174 s = portname(np->in_p, ntohs(np->in_dport));
202 ntohs(np->in_pmin),
203 ntohs(np->in_pmax),
206 printf(" %d:%d", ntohs(np->in_pmin),
207 ntohs(np->in_pmax));
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_udp.c62 udplen = ntohs((ushort_t)udp->uh_ulen) - sizeof (struct udphdr); in interpret_udp()
70 ntohs(udp->uh_dport), in interpret_udp()
71 ntohs(udp->uh_sport), in interpret_udp()
72 ntohs((ushort_t)udp->uh_ulen)); in interpret_udp()
75 sunrpc = !reservedport(IPPROTO_UDP, ntohs(udp->uh_dport)) && in interpret_udp()
76 !reservedport(IPPROTO_UDP, ntohs(udp->uh_sport)) && in interpret_udp()
83 dlc_header, 1), "Source port = %d", ntohs(udp->uh_sport)); in interpret_udp()
88 pname = getportname(IPPROTO_UDP, ntohs(udp->uh_dport)); in interpret_udp()
98 ntohs(udp->uh_dport), pname); in interpret_udp()
101 ntohs((ushort_t)udp->uh_ulen), in interpret_udp()
[all …]
H A Dsnoop_aarp.c65 switch (ntohs(ap->arp_op)) { in interpret_aarp()
98 ntohs(ap->arp_hrd)); in interpret_aarp()
101 ntohs(ap->arp_pro), in interpret_aarp()
102 print_ethertype(ntohs(ap->arp_pro))); in interpret_aarp()
111 ntohs(ap->arp_op), in interpret_aarp()
112 aarp_opname[ntohs(ap->arp_op)]); in interpret_aarp()
114 if (ntohs(ap->arp_hrd) == ARPHRD_ETHER && in interpret_aarp()
115 ntohs(ap->arp_pro) == ETHERTYPE_AT) { in interpret_aarp()
124 (ntohs(ap->arp_op) == AARP_REQ || in interpret_aarp()
125 ntohs(ap->arp_op) == AARP_PROBE) ? "?" : in interpret_aarp()
[all …]
H A Dsnoop_tftp.c44 switch (ntohs(tftp->th_opcode)) { in interpret_tftp()
55 switch (ntohs(tftp->th_opcode)) { in interpret_tftp()
71 ntohs(tftp->th_block), in interpret_tftp()
78 ntohs(tftp->th_block)); in interpret_tftp()
83 tftperror(ntohs(tftp->th_code))); in interpret_tftp()
95 ntohs(tftp->th_opcode), in interpret_tftp()
96 show_type(ntohs(tftp->th_opcode))); in interpret_tftp()
98 switch (ntohs(tftp->th_opcode)) { in interpret_tftp()
117 ntohs(tftp->th_block), in interpret_tftp()
128 ntohs(tftp->th_block)); in interpret_tftp()
[all …]
H A Dsnoop_ntp.c112 ntohs(ntpc->sequence), in interpret_ntp()
113 ntohs(ntpc->status), in interpret_ntp()
114 ntohs(ntpc->associd)); in interpret_ntp()
165 ntohs(ntp->distance.int_part), in interpret_ntp()
166 ntohs(ntp->distance.fraction), in interpret_ntp()
172 ntohs(ntp->dispersion.int_part), in interpret_ntp()
173 ntohs(ntp->dispersion.fraction), in interpret_ntp()
274 ntohs(ntpc->sequence)); in interpret_ntp()
278 ntohs(ntpc->status)); in interpret_ntp()
282 ntohs(ntpc->associd)); in interpret_ntp()
[all …]
H A Dsnoop_trill.c62 ntohs(trillhdr->th_egressnick)); in interpret_trill()
65 ntohs(trillhdr->th_ingressnick)); in interpret_trill()
95 ntohs(inner_ethhdr->ether_type)); in interpret_trill()
100 ethertype = ntohs(inner_ethvlanhdr->ether_type); in interpret_trill()
105 ntohs(trillhdr->th_egressnick), in interpret_trill()
106 ntohs(trillhdr->th_ingressnick), in interpret_trill()
H A Dsnoop_tcp.c101 ntohs(tcp->th_dport), ntohs(tcp->th_sport)); in interpret_tcp()
114 ntohs(tcp->th_urp)); in interpret_tcp()
128 ntohs(tcp->th_win)); in interpret_tcp()
133 sunrpc = !reservedport(IPPROTO_TCP, ntohs(tcp->th_dport)) && in interpret_tcp()
134 !reservedport(IPPROTO_TCP, ntohs(tcp->th_sport)) && in interpret_tcp()
142 dlc_header, 2), "Source port = %d", ntohs(tcp->th_sport)); in interpret_tcp()
147 pname = getportname(IPPROTO_TCP, ntohs(tcp->th_dport)); in interpret_tcp()
157 ntohs(tcp->th_dport), pname); in interpret_tcp()
195 4, 1), "Window = %d", ntohs(tcp->th_win)); in interpret_tcp()
198 4, 1), "Checksum = 0x%04x", ntohs(tcp->th_sum)); in interpret_tcp()
[all …]
H A Dsnoop_sctp.c463 switch (ntohs(*type)) { in parse_suppaddr_param()
478 "Unknown Type (%hu)", ntohs(*type)); in parse_suppaddr_param()
586 plen = ntohs(hdr->sph_len); in interpret_params()
594 ptype = ntohs(hdr->sph_type); in interpret_params()
652 "SID = %u : SSN = %u", ntohs(ftsn_entry->ftsn_sid), in parse_ftsn_chunk()
653 ntohs(ftsn_entry->ftsn_ssn)); in parse_ftsn_chunk()
699 ntohl(icp->sic_inittsn), ntohs(icp->sic_outstr), in parse_init_chunk()
700 ntohs(icp->sic_instr), ntohl(icp->sic_a_rwnd))); in parse_init_chunk()
711 "Outbound streams = %hu", ntohs(icp->sic_outstr)); in parse_init_chunk()
713 "Inbound streams = %hu", ntohs(icp->sic_instr)); in parse_init_chunk()
[all …]
H A Dsnoop_icmp.c87 ntohs(icmp->icmp_id), ntohs(icmp->icmp_seq)); in interpret_icmp()
130 ntohs(orig_uhdr->uh_dport)); in interpret_icmp()
136 ntohs(orig_uhdr->uh_dport)); in interpret_icmp()
148 if (ntohs(icmp->icmp_nextmtu) != 0) { in interpret_icmp()
151 ntohs(icmp->icmp_nextmtu)); in interpret_icmp()
223 ntohs(icmp->icmp_id), ntohs(icmp->icmp_seq)); in interpret_icmp()
234 ntohs(icmp->icmp_lifetime), icmp->icmp_num_addrs); in interpret_icmp()
393 ntohs(icmp->icmp_cksum)); in interpret_icmp()
483 ntohs(orig_thdr->th_dport));
493 ntohs(orig_uhdr->uh_dport));
[all …]
H A Dsnoop_rip.c98 len >= ntohs(nap->au.a_md5.md5_auth_len)) in interpret_rip()
99 len -= ntohs(nap->au.a_md5. in interpret_rip()
190 ntohs(nap->au.a_md5. in interpret_rip()
195 ntohs(nap->au.a_md5. in interpret_rip()
198 ntohs(nap->au.a_md5. in interpret_rip()
200 len -= ntohs(nap->au. in interpret_rip()
210 ntohs(nap->a_type)); in interpret_rip()
225 ntohs(nip->n_family)); in interpret_rip()
262 ntohs(nip->n_tag), in interpret_rip()
332 ntohs(rep->rip_metric)); in interpret_rip()
[all …]
H A Dsnoop_arp.c75 arpop = ntohs(ap->ar_op); in interpret_arp()
77 if (ntohs(ap->ar_pro) == ETHERTYPE_IP) in interpret_arp()
140 "Hardware type = %d (%s)", ntohs(ap->ar_hrd), in interpret_arp()
141 arp_htype(ntohs(ap->ar_hrd))); in interpret_arp()
143 "Protocol type = %04x (%s)", ntohs(ap->ar_pro), in interpret_arp()
144 print_ethertype(ntohs(ap->ar_pro))); in interpret_arp()
H A Dsnoop_apple.c123 "%u.%u", ntohs(ddp->ddp_src_net), ddp->ddp_src_id); in interpret_at()
127 "%u.%u", ntohs(ddp->ddp_dest_net), ddp->ddp_dest_id); in interpret_at()
136 ntohs(ddp->ddp_src_net), in interpret_at()
139 ntohs(ddp->ddp_dest_net), in interpret_at()
177 ntohs(ddp->ddp_cksum), in interpret_at()
H A Dsnoop_mip.c222 ext_len = ntohs(gen_exthdr->length); in interpret_extensions()
547 if (ntohs(rreq->lifetime) == 0xffff) { in interpret_mip_cntrlmsg()
551 } else if (ntohs(rreq->lifetime) == 0) { in interpret_mip_cntrlmsg()
560 ntohs(rreq->lifetime)); in interpret_mip_cntrlmsg()
592 if (ntohs(rrep->lifetime) == 0xffff) { in interpret_mip_cntrlmsg()
596 } else if (ntohs(rrep->lifetime) == 0) { in interpret_mip_cntrlmsg()
608 ntohs(rrep->lifetime)); in interpret_mip_cntrlmsg()
641 ntohs(spi_hi), ntohs(spi_low)); in spi_ext()
662 alg = ntohs(alg); in key_ext()
686 ntohs(spi_hi), ntohs(spi_low)); in key_ext()
[all …]
H A Dsnoop_ospf6.c112 ntohs(op->ospf6_len)); in interpret_ospf6_hello()
122 ntohs(op->ospf6_hello.hello_helloint)); in interpret_ospf6_hello()
329 ls_end = (uchar_t *)lsa + ntohs(lsa->ls6_hdr.ls6_length); in interpret_ospf6_lsa()
334 switch (ntohs(lsa->ls6_hdr.ls6_type)) { in interpret_ospf6_lsa()
434 ntohs(rl->link_metric)); in interpret_ospf6_lsa()
440 ntohs(rl->link_metric)); in interpret_ospf6_lsa()
545 ntohs(lsa->lsa_un.un_intra_ap.intra_ap_lstype), in interpret_ospf6_lsa()
552 ntohs(lsa->lsa_un.un_intra_ap.intra_ap_nprefix)); in interpret_ospf6_lsa()
557 ntohs(lsa->lsa_un.un_intra_ap.intra_ap_nprefix)); in interpret_ospf6_lsa()
562 j < ntohs(lsa->lsa_un.un_intra_ap.intra_ap_nprefix); j++) { in interpret_ospf6_lsa()
[all …]
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/
H A Dilbadm_nat.c61 INET6_ADDRSTRLEN), ntohs(info->nat_out_global_port)); in print_nat_info()
64 INET6_ADDRSTRLEN), ntohs(info->nat_in_global_port)); in print_nat_info()
68 INET6_ADDRSTRLEN), ntohs(info->nat_out_local_port)); in print_nat_info()
71 INET6_ADDRSTRLEN), ntohs(info->nat_in_local_port)); in print_nat_info()
75 ntohs(info->nat_out_global_port)); in print_nat_info()
78 ntohs(info->nat_in_global_port)); in print_nat_info()
82 ntohs(info->nat_out_local_port)); in print_nat_info()
85 ntohs(info->nat_in_local_port)); in print_nat_info()
/titanic_44/usr/src/grub/grub-0.97/netboot/
H A Dfsys_tftp.c76 if (ntohs(udp->dest) != ival) in await_tftp()
142 if (tr->opcode == ntohs(TFTP_ERROR)) in tftp_file_read()
145 ntohs(tr->u.err.errcode), in tftp_file_read()
150 if (tr->opcode == ntohs(TFTP_OACK)) { in tftp_file_read()
155 len = ntohs(tr->udp.len) - sizeof(struct udphdr) - 2; in tftp_file_read()
187 iport, ntohs(tr->udp.src), in tftp_file_read()
199 len = ntohs(tr->udp.len) - sizeof(struct udphdr) - 4; in tftp_file_read()
202 block = ntohs(tp.u.ack.block = tr->u.data.block); } in tftp_file_read()
212 oport = ntohs(tr->udp.src); in tftp_file_read()
291 if (tr->opcode == ntohs (TFTP_ERROR)) in buf_fill()
[all …]
/titanic_44/usr/src/uts/common/io/ib/clients/rdsv3/
H A Dcong.c314 NIPQUAD(map->m_addr), ntohs(port), map); in rdsv3_cong_set_bit()
316 i = ntohs(port) / RDSV3_CONG_MAP_PAGE_BITS; in rdsv3_cong_set_bit()
317 off = ntohs(port) % RDSV3_CONG_MAP_PAGE_BITS; in rdsv3_cong_set_bit()
329 NIPQUAD(map->m_addr), ntohs(port), map); in rdsv3_cong_clear_bit()
331 i = ntohs(port) / RDSV3_CONG_MAP_PAGE_BITS; in rdsv3_cong_clear_bit()
332 off = ntohs(port) % RDSV3_CONG_MAP_PAGE_BITS; in rdsv3_cong_clear_bit()
342 i = ntohs(port) / RDSV3_CONG_MAP_PAGE_BITS; in rdsv3_cong_test_bit()
343 off = ntohs(port) % RDSV3_CONG_MAP_PAGE_BITS; in rdsv3_cong_test_bit()
346 ntohs(port), i, off); in rdsv3_cong_test_bit()
403 RDS_CONG_MONITOR_MASK(ntohs(port)); in rdsv3_cong_wait()
[all …]
/titanic_44/usr/src/uts/common/io/ppp/spppcomp/
H A Dvjcompress.c141 ushort_t tmp = ntohs(f) + ((cp[1] << 8) | cp[2]); \
145 ushort_t tmp = ntohs(f) + (uint32_t)*cp++; \
301 deltaS = ntohs(th->th_urp); in vj_compress_tcp()
318 if ((deltaS = (ushort_t)(ntohs(th->th_win) - ntohs(oth->th_win))) > 0) { in vj_compress_tcp()
356 ntohs(cs->cs_ip.ip_len) == thlen) { in vj_compress_tcp()
375 deltaS == ntohs(cs->cs_ip.ip_len) - thlen) { in vj_compress_tcp()
388 if (deltaS == ntohs(cs->cs_ip.ip_len) - thlen) { in vj_compress_tcp()
400 deltaS = ntohs(ip->ip_id) - ntohs(cs->cs_ip.ip_id); in vj_compress_tcp()
415 deltaA = ntohs(th->th_sum); in vj_compress_tcp()
596 i = ntohs(cs->cs_ip.ip_len) - cs->cs_hlen; in vj_uncompress_tcp()
[all …]
/titanic_44/usr/src/lib/libdtrace/common/
H A Dtcp.d.in158 tcp_sport = ntohs(*(uint16_t *)T->th_lport);
159 tcp_dport = ntohs(*(uint16_t *)T->th_fport);
164 tcp_window = ntohs(*(uint16_t *)T->th_win);
165 tcp_checksum = ntohs(*(uint16_t *)T->th_sum);
166 tcp_urgent = ntohs(*(uint16_t *)T->th_urp);
173 T != NULL ? ntohs(*(uint16_t *)((tcph_t *)T)->th_lport) :
175 ntohs(((tcp_t *)arg3)->tcp_connp->u_port.connu_ports.connu_lport) :
177 ntohs(((tcp_t *)arg3)->tcp_connp->u_port.connu_ports.connu_fport) :
180 T != NULL ? ntohs(*(uint16_t *)((tcph_t *)T)->th_fport) :
182 ntohs(((tcp_t *)arg3)->tcp_connp->u_port.connu_ports.connu_fport) :
[all …]
H A Dudp.d.in55 udp_sport = ntohs(U->uha_src_port);
56 udp_dport = ntohs(U->uha_dst_port);
57 udp_length = ntohs(U->uha_length);
58 udp_checksum = ntohs(U->uha_checksum);
66 ntohs(U->udp_connp->u_port.connu_ports.connu_lport) : 0;
68 ntohs(U->udp_connp->u_port.connu_ports.connu_fport) : 0;
/titanic_44/usr/src/lib/librstp/common/
H A Dtimes.c49 v->MessageAge = ntohs (*((unsigned short*) b->message_age)) >> 8; in STP_get_times()
51 v->MaxAge = ntohs (*((unsigned short*) b->max_age)) >> 8; in STP_get_times()
53 v->ForwardDelay = ntohs (*((unsigned short*) b->forward_delay)) >> 8; in STP_get_times()
55 v->HelloTime = ntohs (*((unsigned short*) b->hello_time)) >> 8; in STP_get_times()
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/ping/
H A Dping_aux.c356 ntohs(up->uh_dport)); in check_reply()
369 (MAX_PORT + 1) == ntohs(up->uh_dport)) && in check_reply()
449 Printf("udp_port=%d. ", ntohs(up->uh_dport)); in check_reply()
466 Printf(" port %d ", ntohs(up->uh_dport)); in check_reply()
535 if (ntohs(icp->icmp_id) == ident) { in check_reply()
556 ntohs(icp->icmp_seq)); in check_reply()
570 ntohs(icp->icmp_seq)) && in check_reply()
620 ntohs(icp->icmp_seq), &dst_addr); in check_reply()
664 (void) find_dstaddr(ntohs(icp->icmp_seq), &dst_addr); in check_reply()
671 Printf("icmp_seq=%d. ", ntohs(icp->icmp_seq)); in check_reply()
[all …]

12345678910>>...17