Searched refs:htons (Results 101 - 125 of 608) sorted by relevance

1234567891011>>

/freebsd-10.0-release/tools/regression/netinet/tcpsockclosebeforeaccept/
H A Dtcpsockclosebeforeaccept.c87 sin.sin_port = htons(TCP_PORT);
137 sin.sin_port = htons(TCP_PORT);
/freebsd-10.0-release/tools/regression/netinet/tcpstream/
H A Dtcpstream.c202 sin.sin_port = htons(port);
222 sin.sin_port = htons(port);
/freebsd-10.0-release/tools/regression/sockets/accept_fd_leak/
H A Daccept_fd_leak.c88 sin.sin_port = htons(8080);
144 sin.sin_port = htons(8080);
/freebsd-10.0-release/usr.bin/tftp/
H A Dtftp.c89 htons(atoi(port));
188 htons(atoi(port));
/freebsd-10.0-release/usr.sbin/IPXrouted/
H A Dsap_input.c87 sap_msg->sap_cmd = htons(SAP_RESP_NEAR);
89 n->hops = htons(ntohs(n->hops) + 1);
H A Dinput.c149 n->rip_metric = htons( rt == 0 ? HOPCNT_INFINITY :
151 n->rip_ticks = htons(rt->rt_ticks+1);
174 msg->rip_cmd = htons(RIPCMD_RESPONSE);
/freebsd-10.0-release/contrib/amd/conf/transp/
H A Dtransp_sockets.c130 sin.sin_port = htons(*pp);
137 sin.sin_port = htons(port);
182 if ((sin->sin_port = htons(pmap_getport(sin, MOUNTPROG, mnt_version, IPPROTO_TCP))) != 0) {
384 sin->sin_port = htons(PMAPPORT);
/freebsd-10.0-release/contrib/amd/wire-test/
H A Dwire-test.c103 ip->sin_port = htons(NFS_PORT);
/freebsd-10.0-release/contrib/ipfilter/ipsd/
H A Dslinux.c111 if ((fd = socket(AF_INET, SOCK_PACKET, htons(ETHERTYPE_IP))) == -1)
/freebsd-10.0-release/lib/libstand/
H A Dether.c77 eh->ether_type = htons(etype);
/freebsd-10.0-release/sys/netpfil/pf/
H A Din4_cksum.c105 u.ipov.ih_len = htons(len);
/freebsd-10.0-release/tools/regression/netinet/arphold/
H A Darphold.c97 dest.sin_port = htons(PORT);
/freebsd-10.0-release/tools/regression/netinet/tcpfullwindowrst/
H A Dtcpfullwindowrsttest.c83 sa.sin_port = htons(3737);
/freebsd-10.0-release/tools/tools/netrate/tcpconnect/
H A Dtcpconnect.c120 sin.sin_port = htons(PORT);
/freebsd-10.0-release/usr.sbin/bhyve/
H A Ddbgport.c126 sin.sin_port = htons(sport);
/freebsd-10.0-release/sys/dev/cxgbe/
H A Dt4_l2t.c129 req->params = htons(V_L2T_W_PORT(e->lport) | V_L2T_W_NOREPLY(!sync));
130 req->l2t_idx = htons(idx);
131 req->vlan = htons(e->vlan);
/freebsd-10.0-release/usr.sbin/bluetooth/sdpd/
H A Dssr.c252 pdu.len = htons(sizeof(rcounts) + rcounts[1] * 4 + 1 + cs[0]);
254 rcounts[0] = htons(rcounts[0]);
255 rcounts[1] = htons(rcounts[1]);
/freebsd-10.0-release/sys/dev/xen/netback/
H A Dnetback_unit_tests.c2103 eh->ether_type = htons(ETHERTYPE_ARP);
2105 ep->ea_hdr.ar_hrd = htons(ARPHRD_ETHER);
2106 ep->ea_hdr.ar_pro = htons(ETHERTYPE_IP);
2109 ep->ea_hdr.ar_op = htons(ARPOP_REQUEST);
2169 eh->ether_type = htons(ETHERTYPE_IP);
2174 iph->ip_len = htons(ip_len);
2175 iph->ip_id = htons(ip_id);
2176 iph->ip_off = htons(ip_off);
2179 iph->ip_sum = htons(ip_sum);
2213 icmph->icmp_cksum = htons(ICMP_CSU
[all...]
/freebsd-10.0-release/sys/contrib/ipfilter/netinet/
H A Dip_fil_freebsd.c131 ip->ip_len = htons(ip->ip_len);
132 ip->ip_off = htons(ip->ip_off);
420 ip6->ip6_plen = htons(sizeof(struct tcphdr));
431 ip->ip_len = htons(sizeof(struct tcphdr));
435 ip->ip_len = htons(hlen + sizeof(*tcp2));
469 ip->ip_off = htons(path_mtu_discovery ? IP_DF : 0);
648 icmp->icmp_nextmtu = htons(fin->fin_mtu);
651 icmp->icmp_nextmtu = htons(GETIFMTU_4(ifp));
654 icmp->icmp_nextmtu = htons(fin->fin_plen - 20);
665 ip6->ip6_plen = htons(icle
[all...]
/freebsd-10.0-release/contrib/ntp/ntpd/
H A Dntp_request.c328 rpkt.err_nitems = htons((u_short)nitems);
394 rpkt.err_nitems = htons((u_short)nitems);
914 ip->associd = htons(pp->associd);
1044 ip->flags = htons(ip->flags);
1195 ms->totalpeermem = htons((u_short)total_peer_structs);
1196 ms->freepeermem = htons((u_short)peer_free_count);
1234 io->totalrecvbufs = htons((u_short) total_recvbuffs());
1235 io->freerecvbufs = htons((u_short) free_recvbuffs());
1236 io->fullrecvbufs = htons((u_short) full_recvbuffs());
1237 io->lowwater = htons((u_shor
[all...]
/freebsd-10.0-release/sys/netgraph/
H A Dng_cisco.c375 h->protocol = htons(ETHERTYPE_IP);
378 h->protocol = htons(ETHERTYPE_IPV6);
381 h->protocol = htons(ETHERTYPE_AT);
384 h->protocol = htons(ETHERTYPE_IPX);
622 h->protocol = htons(CISCO_KEEPALIVE);
629 ch->time0 = htons((uint16_t) (t >> 16));
630 ch->time1 = htons((uint16_t) t);
H A Dng_nat.c413 rp->local_addr, htons(rp->local_port),
414 rp->remote_addr, htons(rp->remote_port),
415 rp->alias_addr, htons(rp->alias_port),
622 as->addr, htons(as->port)) == -1) {
776 if ((ip->ip_off & htons(IP_OFFMASK)) == 0 &&
808 ip->ip_dst.s_addr, htons(IPPROTO_TCP +
/freebsd-10.0-release/crypto/heimdal/lib/roken/
H A Dsocket_wrapper.c187 ((struct sockaddr_in *)addr)->sin_port = htons(prt);
191 ((struct sockaddr_in6 *)addr)->sin6_port = htons(prt);
308 in2->sin_port = htons(prt);
326 in2->sin6_port = htons(prt);
836 packet->ip.hdr.packet_length = htons(wire_len - icmp_truncate_len);
837 packet->ip.hdr.identification = htons(0xFFFF);
839 packet->ip.hdr.fragment = htons(0x0000);
842 packet->ip.hdr.hdr_checksum = htons(0x0000);
849 packet->ip.p.icmp.checksum = htons(0x0000);
856 packet->ip.hdr.packet_length = htons(wire_le
[all...]
/freebsd-10.0-release/sys/netinet/
H A Dsctp_indata.c603 ph->param_type = htons(SCTP_CAUSE_PROTOCOL_VIOLATION);
604 ph->param_length = htons(SCTP_BUF_LEN(oper));
884 htons(SCTP_CAUSE_PROTOCOL_VIOLATION);
885 ph->param_length = htons(SCTP_BUF_LEN(oper));
916 htons(SCTP_CAUSE_PROTOCOL_VIOLATION);
917 ph->param_length = htons(SCTP_BUF_LEN(oper));
951 htons(SCTP_CAUSE_PROTOCOL_VIOLATION);
953 htons(SCTP_BUF_LEN(oper));
983 htons(SCTP_CAUSE_PROTOCOL_VIOLATION);
985 htons(SCTP_BUF_LE
[all...]
/freebsd-10.0-release/sys/netpfil/ipfw/
H A Dip_fw_nat.c170 r->laddr, htons(r->lport + i), r->raddr,
171 htons(remotePortCopy), r->paddr,
172 htons(r->pport + i), r->proto);
196 s->addr, htons(s->port));
334 if ((ip->ip_off & htons(IP_OFFMASK)) == 0 &&
350 htons(ip->ip_p + ip_len - (ip->ip_hl << 2)));

Completed in 361 milliseconds

1234567891011>>