Searched refs:ntohs (Results 276 - 300 of 554) sorted by relevance
<<11121314151617181920>>
/freebsd-10.0-release/sys/dev/sfxge/ |
H A D | sfxge_rx.c | 459 iph->ip_len = ntohs(iph->ip_len); 462 iph->ip6_plen = ntohs(iph->ip6_plen); 483 pkt_length = ntohs(iph->ip_len) + (char *) iph - eh; 487 pkt_length = ntohs(iph->ip6_plen) + (char *) th - eh; 636 l2_id = EVL_VLANOFTAG(ntohs(veh->evl_tag)) |
|
/freebsd-10.0-release/sys/netinet/ |
H A D | udp_usrreq.c | 399 len = ntohs((u_short)uh->uh_ulen); 400 ip_len = ntohs(ip->ip_len) - iphlen; 596 buf, ntohs(uh->uh_dport), inet_ntoa(ip->ip_src), 597 ntohs(uh->uh_sport)); 1394 ip->ip_len = htons(ntohs(ip->ip_len) - skip);
|
H A D | sctp_pcb.c | 2025 ptype = ntohs(phdr->param_type); 2027 plen = ntohs(phdr->param_length); 2283 ptype = (int)((uint32_t) ntohs(phdr->param_type)); 2292 if (ntohs(phdr->param_length) != sizeof(struct sctp_ipv6addr_param)) { 2319 if (ntohs(phdr->param_length) != sizeof(struct sctp_ipv4addr_param)) { 2738 ntohs(((struct sockaddr_in *)addr)->sin_port)); 2842 if (ntohs(lport) < IPPORT_RESERVED) { 3142 (void *)head, ntohs(lport), port_reuse_active); 4006 ntohs(stcb->rport) ^ 4007 ntohs(stc [all...] |
H A D | in_pcb.h | 485 (((faddr) ^ ((faddr) >> 16) ^ ntohs((lport) ^ (fport))) & (mask)) 487 (ntohs((lport)) & (mask))
|
H A D | ip_divert.c | 384 ((u_short)ntohs(ip->ip_len) > m->m_pkthdr.len)) { 396 if (((u_short)ntohs(ip6->ip6_plen) > m->m_pkthdr.len)) {
|
/freebsd-10.0-release/usr.sbin/ancontrol/ |
H A D | ancontrol.c | 418 tmp = ntohs(caps->an_hwrev); 421 tmp = ntohs(caps->an_fwrev); 424 tmp = ntohs(caps->an_fwsubrev); 427 tmp = ntohs(caps->an_ifacerev); 430 tmp = ntohs(caps->an_bootblockrev);
|
/freebsd-10.0-release/contrib/ntp/ntpd/ |
H A D | ntp_io.c | 855 ntohs( (u_short) port), 1247 DPRINTF(3, ("update_interfaces(%d)\n", ntohs( (u_short) port))); 1486 DPRINTF(2, ("create_sockets(%d)\n", ntohs( (u_short) port))); 1516 DPRINTF(2, ("create_interface(%s#%d)\n", stoa(&iface->sin), ntohs( (u_short) port))); 1534 ntohs( (u_short) port)); 1542 ntohs( (u_short) port)); 2522 fd, (int)ntohs(((struct sockaddr_in*)addr)->sin_port), 2530 fd, (int)ntohs(((struct sockaddr_in6*)addr)->sin6_port), 2567 (int)ntohs(((struct sockaddr_in*)addr)->sin_port),
|
/freebsd-10.0-release/sys/netpfil/ipfw/ |
H A D | ip_fw2.c | 1008 etype = ntohs(args->eh->ether_type); 1193 offset = ntohs(ip->ip_off) & IP_OFFMASK; 1194 iplen = ntohs(ip->ip_len); 1236 args->f_id.src_port = src_port = ntohs(src_port); 1237 args->f_id.dst_port = dst_port = ntohs(dst_port); 1638 x = ntohs(ip->ip_id); 1738 x = ntohs(TCP(ulp)->th_win); 2389 a += ntohs(ip->ip_sum) - ip->ip_tos; 2445 ip_off = ntohs(ip->ip_off);
|
H A D | ip_fw_nat.c | 327 mcl->m_pkthdr.len = mcl->m_len = ntohs(ip->ip_len); 348 ip_len = ntohs(ip->ip_len);
|
/freebsd-10.0-release/sys/netinet/libalias/ |
H A D | alias.c | 1326 if (ntohs(pip->ip_len) > maxpacketsize 1333 if ((ntohs(pip->ip_off) & IP_OFFMASK) == 0) { 1376 if (ntohs(pip->ip_off) & IP_MF) { 1456 if (ntohs(pip->ip_len) > maxpacketsize 1483 if ((ntohs(pip->ip_off) & IP_OFFMASK) == 0) { 1549 if (ntohs(pip->ip_len) > maxpacketsize
|
/freebsd-10.0-release/contrib/ipfilter/ |
H A D | ip_fil.c | 178 write(fd, (char *)ip, ntohs(ip->ip_len)); 855 sum += ntohs(*(u_char *)sp << 8);
|
H A D | mli_ipl.c | 281 ip->ip_len = ntohs(ip->ip_len); 282 ip->ip_off = ntohs(ip->ip_off);
|
/freebsd-10.0-release/contrib/ldns/ |
H A D | net.c | 762 *port = ntohs((uint16_t)data_in->sin_port); 770 *port = ntohs((uint16_t)data_in6->sin6_port);
|
/freebsd-10.0-release/contrib/openbsm/bin/auditdistd/ |
H A D | proto_tcp.c | 607 port = ntohs(sin->sin_port); 623 port = ntohs(sin->sin6_port);
|
/freebsd-10.0-release/contrib/unbound/util/ |
H A D | net_help.c | 165 port = ntohs(((struct sockaddr_in*)addr)->sin_port); 322 port = ntohs(((struct sockaddr_in*)addr)->sin_port); 351 /* just order it, ntohs not required */ 359 /* just order it, ntohs not required */
|
/freebsd-10.0-release/contrib/wpa/src/drivers/ |
H A D | driver_wired.c | 132 switch (ntohs(hdr->ethertype)) { 147 ntohs(hdr->ethertype));
|
/freebsd-10.0-release/crypto/openssl/crypto/bio/ |
H A D | b_sock.c | 200 *port_ptr=ntohs((unsigned short)s->s_port); 925 port=ntohs(sa.from.sa_in.sin_port);
|
/freebsd-10.0-release/lib/libc/net/ |
H A D | gethostbydns.c | 178 ancount = ntohs(hp->ancount); 179 qdcount = ntohs(hp->qdcount);
|
/freebsd-10.0-release/lib/libc/rpc/ |
H A D | rpc_generic.c | 627 port = ntohs(sin->sin_port); 638 port = ntohs(sin6->sin6_port);
|
/freebsd-10.0-release/release/picobsd/tinyware/ns/ |
H A D | ns.c | 120 if (ntohs(sin->sin_port) != 0) { 122 ntohs(sin->sin_port));
|
/freebsd-10.0-release/sys/dev/le/ |
H A D | am7990.c | 600 ntohs(eh.ether_type)); 623 ntohs(eh.ether_type));
|
H A D | am79900.c | 638 ntohs(eh.ether_type)); 660 ntohs(eh.ether_type));
|
/freebsd-10.0-release/sys/dev/nxge/ |
H A D | xge-osdep.h | 99 #define xge_os_ntohs ntohs 268 #define xge_os_htohs ntohs
|
/freebsd-10.0-release/sys/net/ |
H A D | if_iso88025subr.c | 302 switch(ntohs(ah->ar_op)) { 576 type = ntohs(l->llc_snap.ether_type);
|
/freebsd-10.0-release/sys/netipsec/ |
H A D | key_debug.c | 718 printf(" port=%u\n", ntohs(sin4->sin_port)); 724 printf(" port=%u\n", ntohs(sin6->sin6_port));
|
Completed in 609 milliseconds
<<11121314151617181920>>