Searched refs:ntohs (Results 176 - 200 of 577) sorted by relevance

1234567891011>>

/freebsd-11-stable/stand/libsa/
H A Drarp.c195 printf("bad op=0x%x\n", ntohs(ap->arp_op));
/freebsd-11-stable/sys/netpfil/pf/
H A Dpf_osfp.c116 fp.fp_psize = ntohs(ip->ip_len);
125 fp.fp_psize = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen);
134 fp.fp_wsize = ntohs(tcp->th_win);
196 srcname, ntohs(tcp->th_sport),
/freebsd-11-stable/usr.sbin/bluetooth/sdpd/
H A Dserver.c439 sizeof(*pdu) + (pdu->len = ntohs(pdu->len)) == len) {
507 pdu->pid, ntohs(pdu->tid), error);
513 pdu->pid, ntohs(pdu->tid), pdu->len, len, error);
520 pdu->pid, ntohs(pdu->tid), error);
/freebsd-11-stable/usr.sbin/ppp/
H A Dnat_cmd.c340 *port = ntohs(sp->s_port);
511 bp->m_len = ntohs(((struct ip *)MBUF_CTOP(bp))->ip_len);
534 bp->m_len = ntohs(((struct ip *)MBUF_CTOP(bp))->ip_len);
568 len = ntohs(((struct ip *)fptr)->ip_len);
H A Dtcp.c202 inet_ntoa(sock.sin_addr), ntohs(sock.sin_port));
/freebsd-11-stable/contrib/ntp/include/
H A Dntp_request.h227 #define INFO_ERR(err_nitems) ((u_short)((ntohs(err_nitems)>>12)&0xf))
228 #define INFO_NITEMS(err_nitems) ((u_short)(ntohs(err_nitems)&0xfff))
232 #define INFO_MBZ(mbz_itemsize) ((ntohs(mbz_itemsize)>>12)&0xf)
233 #define INFO_ITEMSIZE(mbz_itemsize) ((u_short)(ntohs(mbz_itemsize)&0xfff))
/freebsd-11-stable/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_tx.c143 eth_type = ntohs(eh->evl_proto);
146 eth_type = ntohs(eh->evl_encap_proto);
201 eth_type = ntohs(eh->evl_proto);
204 eth_type = ntohs(eh->evl_encap_proto);
/freebsd-11-stable/contrib/sendmail/src/
H A Dsasl.c281 sm_snprintf(pbuf, sizeof(pbuf), "%d", ntohs(addr->sin.sin_port));
/freebsd-11-stable/contrib/ipfilter/lib/
H A Dprintipfexpr.c158 PRINTF("%d", ntohs(array[i + 4]));
/freebsd-11-stable/contrib/ipfilter/ipsend/
H A Dresend.c109 len = ntohs(ip->ip_len);
/freebsd-11-stable/sys/netgraph/
H A Dng_checksum.c324 plen = ntohs(ip4->ip_len);
435 plen = ntohs(ip6->ip6_plen) + hlen;
589 etype = ntohs(eh->ether_type);
600 etype = ntohs(vh->etype);
/freebsd-11-stable/contrib/ipfilter/tools/
H A Dipmon.c423 port = ntohs(s->s_port);
427 port = ntohs(s->s_port);
484 port = ntohs(port);
1165 ipoff = ntohs(ip->ip_off);
1170 plen = ntohs(ip->ip_len);
1181 plen = hl + ntohs(ip6->ip6_plen);
1234 ntohs(tp->th_win));
1267 i = ntohs(ipc->ip_len);
1274 ipoff = ntohs(ipc->ip_off);
1316 ntohs(ip
[all...]
/freebsd-11-stable/contrib/netcat/
H A Dsocks.c277 host, ntohs(serverport));
281 host, ntohs(serverport));
/freebsd-11-stable/libexec/bootpd/tools/bootptest/
H A Dbootptest.c246 bootps_port = ntohs((u_short) sep->s_port);
279 bootpc_port = ntohs(sep->s_port);
/freebsd-11-stable/contrib/bsnmp/snmp_mibII/
H A DmibII_tcp.c166 oid->index.subs[4] = ntohs(tp->xt_inp.inp_lport);
172 oid->index.subs[9] = ntohs(tp->xt_inp.inp_fport);
/freebsd-11-stable/sys/netinet/
H A Dip_fastfwd.c373 ip_len = ntohs(ip->ip_len);
374 ip_off = ntohs(ip->ip_off);
H A Din.h111 uint16_t ntohs(uint16_t);
120 #define ntohs(x) __ntohs(x) macro
/freebsd-11-stable/sys/netipsec/
H A Dsubr_ipsec.c113 src->sin6.sin6_scope_id = ntohs(ip6->ip6_src.s6_addr16[1]);
122 dst->sin6.sin6_scope_id = ntohs(ip6->ip6_dst.s6_addr16[1]);
/freebsd-11-stable/stand/i386/libi386/
H A Dsmbios.c194 f2 = ntohs(SMBIOS_GET16(addr, 4));
195 f3 = ntohs(SMBIOS_GET16(addr, 6));
/freebsd-11-stable/contrib/wpa/src/drivers/
H A Ddriver_wired.c98 switch (ntohs(hdr->ethertype)) {
113 ntohs(hdr->ethertype));
/freebsd-11-stable/usr.bin/procstat/
H A Dprocstat_files.c110 ntohs(sin->sin_port));
118 ntohs(sin6->sin6_port));
/freebsd-11-stable/sys/netinet6/
H A Dscope6.c360 zoneid = ntohs(sin6->sin6_addr.s6_addr16[1]);
504 zoneid = ntohs(in6_getscope(dst));
/freebsd-11-stable/sys/contrib/ipfilter/netinet/
H A Dip_irc_pxy.c388 if (ntohs(sp) < 1024)
411 fi.fin_data[0] = ntohs(sp);
/freebsd-11-stable/crypto/heimdal/kdc/
H A Dconnect.c289 krb5_warn(context, errno, "bind %s/%d", a_str, ntohs(port));
299 krb5_warn(context, errno, "listen %s/%d", a_str, ntohs(port));
348 ntohs(ports[i].port),
777 ntohs(d[idx].port));
783 ntohs(d[idx].port));
809 ntohs(d[idx].port));
/freebsd-11-stable/contrib/unbound/iterator/
H A Diter_delegpt.c342 if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_NS)
387 if(ntohs(s->rk.type) == LDNS_RR_TYPE_A) {
390 } else if(ntohs(s->rk.type) == LDNS_RR_TYPE_AAAA) {
474 if(ntohs(rrset->rk.type) == LDNS_RR_TYPE_NS)
476 else if(ntohs(rrset->rk.type) == LDNS_RR_TYPE_A)
478 else if(ntohs(rrset->rk.type) == LDNS_RR_TYPE_AAAA)

Completed in 225 milliseconds

1234567891011>>