Searched refs:ntohs (Results 276 - 300 of 554) sorted by relevance

<<11121314151617181920>>

/freebsd-10.0-release/sys/dev/sfxge/
H A Dsfxge_rx.c459 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 Dudp_usrreq.c399 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 Dsctp_pcb.c2025 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 Din_pcb.h485 (((faddr) ^ ((faddr) >> 16) ^ ntohs((lport) ^ (fport))) & (mask))
487 (ntohs((lport)) & (mask))
H A Dip_divert.c384 ((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 Dancontrol.c418 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 Dntp_io.c855 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 Dip_fw2.c1008 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 Dip_fw_nat.c327 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 Dalias.c1326 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 Dip_fil.c178 write(fd, (char *)ip, ntohs(ip->ip_len));
855 sum += ntohs(*(u_char *)sp << 8);
H A Dmli_ipl.c281 ip->ip_len = ntohs(ip->ip_len);
282 ip->ip_off = ntohs(ip->ip_off);
/freebsd-10.0-release/contrib/ldns/
H A Dnet.c762 *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 Dproto_tcp.c607 port = ntohs(sin->sin_port);
623 port = ntohs(sin->sin6_port);
/freebsd-10.0-release/contrib/unbound/util/
H A Dnet_help.c165 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 Ddriver_wired.c132 switch (ntohs(hdr->ethertype)) {
147 ntohs(hdr->ethertype));
/freebsd-10.0-release/crypto/openssl/crypto/bio/
H A Db_sock.c200 *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 Dgethostbydns.c178 ancount = ntohs(hp->ancount);
179 qdcount = ntohs(hp->qdcount);
/freebsd-10.0-release/lib/libc/rpc/
H A Drpc_generic.c627 port = ntohs(sin->sin_port);
638 port = ntohs(sin6->sin6_port);
/freebsd-10.0-release/release/picobsd/tinyware/ns/
H A Dns.c120 if (ntohs(sin->sin_port) != 0) {
122 ntohs(sin->sin_port));
/freebsd-10.0-release/sys/dev/le/
H A Dam7990.c600 ntohs(eh.ether_type));
623 ntohs(eh.ether_type));
H A Dam79900.c638 ntohs(eh.ether_type));
660 ntohs(eh.ether_type));
/freebsd-10.0-release/sys/dev/nxge/
H A Dxge-osdep.h99 #define xge_os_ntohs ntohs
268 #define xge_os_htohs ntohs
/freebsd-10.0-release/sys/net/
H A Dif_iso88025subr.c302 switch(ntohs(ah->ar_op)) {
576 type = ntohs(l->llc_snap.ether_type);
/freebsd-10.0-release/sys/netipsec/
H A Dkey_debug.c718 printf(" port=%u\n", ntohs(sin4->sin_port));
724 printf(" port=%u\n", ntohs(sin6->sin6_port));

Completed in 609 milliseconds

<<11121314151617181920>>