Searched refs:htons (Results 201 - 225 of 643) sorted by relevance

1234567891011>>

/freebsd-11-stable/crypto/heimdal/kadmin/
H A Dkadmind.c170 debug_port = htons(atoi(port_str));
/freebsd-11-stable/lib/libc/rpc/
H A Dpmap_rmt.c92 addr->sin_port = htons(PMAPPORT);
/freebsd-11-stable/sbin/routed/
H A Dinput.c223 } else if (from->sin_port == htons(RIP_PORT)) {
231 if (from->sin_port == htons(RIP_PORT)) {
301 if (from->sin_port != htons(RIP_PORT)) {
458 if (from->sin_port != htons(RIP_PORT)) {
/freebsd-11-stable/contrib/unbound/compat/
H A Dfake-rfc2553.c164 port = htons(port);
/freebsd-11-stable/crypto/openssh/
H A Dentropy.c101 addr_in->sin_port = htons(tcp_port);
/freebsd-11-stable/sys/netinet/
H A Dip_gre.c153 gi->gi_ip.ip_len = htons(m->m_pkthdr.len);
H A Dtcp_timewait.c618 th->th_win = htons(tw->last_win);
639 htons(sizeof(struct tcphdr) + optlen + IPPROTO_TCP));
640 ip->ip_len = htons(m->m_pkthdr.len);
642 ip->ip_off |= htons(IP_DF);
/freebsd-11-stable/tools/regression/sockets/accf_data_attach/
H A Daccf_data_attach.c109 sin.sin_port = htons(8080);
/freebsd-11-stable/contrib/netbsd-tests/net/net/
H A Dt_tcp.c92 sin.sin_port = htons(0);
/freebsd-11-stable/crypto/openssh/openbsd-compat/
H A Dfake-rfc2553.c174 port = htons(port);
/freebsd-11-stable/sys/netinet/libalias/
H A Dalias_proxy.c365 pip->ip_len = htons(ntohs(pip->ip_len) + slen);
439 pip->ip_len = htons(ntohs(pip->ip_len) + OPTION_LEN_BYTES);
857 proxy_entry->proxy_port = htons(proxy_port);
858 proxy_entry->server_port = htons(server_port);
/freebsd-11-stable/usr.sbin/wake/
H A Dwake.c166 pkt.hdr.ether_type = htons(0);
/freebsd-11-stable/usr.sbin/bhyve/
H A Dmevent_test.c210 sin.sin_port = htons(TEST_PORT);
/freebsd-11-stable/usr.sbin/ppp/
H A Dtcp.c76 dest.sin_port = htons(atoi(port));
/freebsd-11-stable/contrib/wpa/src/common/
H A Dwpa_ctrl.c358 ctrl->dest.sin6_port = htons(WPA_CTRL_IFACE_PORT);
362 ctrl->dest.sin_port = htons(WPA_CTRL_IFACE_PORT);
413 ctrl->dest.sin6_port = htons(port_id);
416 ctrl->dest.sin_port = htons(port_id);
/freebsd-11-stable/stand/libsa/
H A Dudp.c87 uh->uh_ulen = htons(len);
/freebsd-11-stable/usr.sbin/inetd/
H A Dbuiltins.c542 sin4[0].sin_port = htons(lport);
544 sin4[1].sin_port = htons(fport);
552 sin6[0].sin6_port = htons(lport);
554 sin6[1].sin6_port = htons(fport);
/freebsd-11-stable/contrib/ipfilter/ipsend/
H A Dresend.c111 eh->ether_type = htons((u_short)ETHERTYPE_IP);
/freebsd-11-stable/sys/dev/sfxge/
H A Dsfxge_tx.c818 if (TSO_MBUF_PROTO(mbuf) == htons(ETHERTYPE_VLAN)) {
828 if (TSO_MBUF_PROTO(mbuf) == htons(ETHERTYPE_IP)) {
836 KASSERT(TSO_MBUF_PROTO(mbuf) == htons(ETHERTYPE_IPV6),
974 KASSERT(tso->protocol == htons(ETHERTYPE_IP),
981 KASSERT(tso->protocol == htons(ETHERTYPE_IPV6),
1061 if (tso->protocol == htons(ETHERTYPE_VLAN)) {
1078 if (tso->protocol == htons(ETHERTYPE_IP)) {
1084 KASSERT(tso->protocol == htons(ETHERTYPE_IPV6),
1334 if (tso->protocol == htons(ETHERTYPE_IP)) {
1336 tsoh_iph->ip_len = htons(ip_lengt
[all...]
/freebsd-11-stable/contrib/tcpdump/
H A Dprint-icmp6.c398 #define NI_SUPTYPE_FLAG_COMPRESS ((uint16_t)htons(0x1))
399 #define NI_FQDN_FLAG_VALIDTTL ((uint16_t)htons(0x1))
402 #define NI_NODEADDR_FLAG_TRUNCATE ((uint16_t)htons(0x1))
403 #define NI_NODEADDR_FLAG_ALL ((uint16_t)htons(0x2))
404 #define NI_NODEADDR_FLAG_COMPAT ((uint16_t)htons(0x4))
405 #define NI_NODEADDR_FLAG_LINKLOCAL ((uint16_t)htons(0x8))
406 #define NI_NODEADDR_FLAG_SITELOCAL ((uint16_t)htons(0x10))
407 #define NI_NODEADDR_FLAG_GLOBAL ((uint16_t)htons(0x20))
408 #define NI_NODEADDR_FLAG_ANYCAST ((uint16_t)htons(0x40)) /* just experimental. not in spec */
478 #define ICMP6_RR_RESULT_FLAGS_OOB ((uint16_t)htons(
[all...]
/freebsd-11-stable/contrib/wpa/src/wps/
H A Dhttp_client.c221 dst->sin_port = htons(atoi(port));
223 dst->sin_port = htons(80);
/freebsd-11-stable/lib/libsdp/
H A Dsearch.c159 xpdu.pdu.tid = htons(ss->tid);
160 xpdu.pdu.len = htons(req_cs - ss->req);
/freebsd-11-stable/sys/netgraph/netflow/
H A Dnetflow.c72 htons(addr2 ^ (addr2 >> 16))) ^ \
73 port1 ^ htons(port2)) & \
79 htons(addr2 ^ (addr2 >> 16))) & \
194 dgram->header.version = htons(NETFLOW_V5);
731 if ((ip->ip_off & htons(IP_OFFMASK)) == 0)
1069 header->count = htons(header->count);
1099 rec->i_ifx = htons(fle->f.fle_i_ifx);
1100 rec->o_ifx = htons(fle->f.fle_o_ifx);
/freebsd-11-stable/sys/netgraph/
H A Dng_etf.c308 htons(f->ethertype))) {
325 fil->ethertype = htons(f->ethertype);
H A Dng_rfc1490.c417 = htons(ETHERTYPE_IP); /* PID */
423 *((u_int16_t *)mtod(m, u_int16_t *)) = htons(ETHERTYPE_IP);

Completed in 183 milliseconds

1234567891011>>