/freebsd-10.0-release/sys/netinet/ |
H A D | sctp_asconf.c | 91 aph->ph.param_type = htons(SCTP_SUCCESS_REPORT); 94 aph->ph.param_length = htons(aph->ph.param_length); 121 aph->ph.param_type = htons(SCTP_ERROR_CAUSE_IND); 122 error->code = htons(cause); 139 error->length = htons(error->length); 140 aph->ph.param_length = htons(aph->ph.param_length); 799 ack_cp->ch.chunk_length = htons(ack_cp->ch.chunk_length); 1564 if (htons(eh->length) + sizeof(struct sctp_error_cause) > 1565 htons(aph->ph.param_length)) { 1571 if (htons(p [all...] |
H A D | ip_input.c | 738 if (ip->ip_off & htons(IP_MF | IP_OFFMASK)) { 914 ip->ip_len = htons(ntohs(ip->ip_len) - hlen); 915 if (ip->ip_off & htons(IP_MF)) { 920 if (ip->ip_len == htons(0) || (ntohs(ip->ip_len) & 0x7) != 0) { 927 ip->ip_off = htons(ntohs(ip->ip_off) << 3); 1019 ip->ip_off = htons(ntohs(ip->ip_off) + i); 1020 ip->ip_len = htons(ntohs(ip->ip_len) - i); 1038 GETIP(q)->ip_len = htons(ntohs(GETIP(q)->ip_len) - i); 1039 GETIP(q)->ip_off = htons(ntohs(GETIP(q)->ip_off) + i); 1126 ip->ip_len = htons((i [all...] |
/freebsd-10.0-release/contrib/ipfilter/iplang/ |
H A D | iplang_y.y | 646 return htons(atoi(name)); 878 ip->ip_id = htons(id++); 918 ip->ip_off = htons(strtol(*arg, NULL, 0)); 969 ip->ip_id = htons(strtol(*arg, NULL, 0)); 1007 tcp->th_win = htons(4096); 1086 tcp->th_urp = htons(strtol(*arg, NULL, 0)); 1095 tcp->th_win = htons(strtol(*arg, NULL, 0)); 1312 ip->ip_len = htons(ip->ip_len); 1561 icmp->icmp_id = htons(arg); 1568 icmp->icmp_seq = htons(ar [all...] |
/freebsd-10.0-release/contrib/ipfilter/ |
H A D | ip_msnrpc_pxy.c | 302 tcp2->th_win = htons(8192); 304 fi.fin_data[0] = htons(mri->mri_rport);
|
/freebsd-10.0-release/contrib/ipfilter/tools/ |
H A D | ipsyncs.c | 101 sin.sin_port = htons(atoi(argv[2])); 103 sin.sin_port = htons(43434);
|
/freebsd-10.0-release/contrib/ofed/libmlx4/src/ |
H A D | srq.c | 58 next->next_wqe_index = htons(ind); 163 next->next_wqe_index = htons((i + 1) & (srq->max - 1));
|
/freebsd-10.0-release/contrib/unbound/iterator/ |
H A D | iter_priv.c | 232 sa.sin_port = (in_port_t)htons(UNBOUND_DNS_PORT); 249 sa.sin6_port = (in_port_t)htons(UNBOUND_DNS_PORT);
|
/freebsd-10.0-release/crypto/heimdal/lib/roken/ |
H A D | roken_gethostby.c | 73 dns_addr.sin_port = htons(proxy_port); 79 dns_addr.sin_port = htons(dns_port);
|
/freebsd-10.0-release/lib/libstand/ |
H A D | bootparam.c | 162 d->myport = htons(--rpc_port); 281 d->myport = htons(--rpc_port);
|
/freebsd-10.0-release/sys/dev/ep/ |
H A D | if_ep_isa.c | 209 isa_id = (htons(data) << 16); 211 isa_id |= htons(data);
|
/freebsd-10.0-release/sys/netinet6/ |
H A D | scope6.c | 357 sin6->sin6_addr.s6_addr16[1] = htons(zoneid & 0xffff); 435 in6->s6_addr16[1] = htons(zoneid & 0xffff); /* XXX */
|
/freebsd-10.0-release/sys/netipsec/ |
H A D | ipsec_output.c | 115 mtod(m, struct ip *)->ip_len = htons(m->m_pkthdr.len); 131 htons(m->m_pkthdr.len - sizeof(struct ip6_hdr)); 238 udp->uh_sport = htons(UDP_ENCAP_ESPINUDP_PORT); 244 udp->uh_ulen = htons(m->m_pkthdr.len - hlen); 245 ip->ip_len = htons(m->m_pkthdr.len); 505 ip->ip_len = htons(m->m_pkthdr.len); 550 ip->ip_off = htons(ip->ip_off); 757 ip6->ip6_plen = htons(plen);
|
/freebsd-10.0-release/sys/netpfil/pf/ |
H A D | pf_lb.c | 254 key.port[1] = htons(low); 256 *nport = htons(low); 271 key.port[1] = htons(tmp); 274 *nport = htons(tmp); 279 key.port[1] = htons(tmp); 282 *nport = htons(tmp); 649 *nport = htons((uint16_t)tmp_nport); 651 *nport = htons(r->rpool.proxy_port[0]);
|
/freebsd-10.0-release/sys/ofed/drivers/infiniband/core/ |
H A D | sysfs.c | 277 htons(raw[0]), htons(raw[1]), htons(raw[2]), htons(raw[3]), 278 htons(raw[4]), htons(raw[5]), htons(raw[6]), htons(raw[7]));
|
/freebsd-10.0-release/sys/ofed/drivers/net/mlx4/ |
H A D | en_frag.c | 94 iph->ip_len = htons(session->total_len); 95 iph->ip_off = htons(more | (session->offset >> 3));
|
/freebsd-10.0-release/tools/regression/netinet/ipbroadcast/ |
H A D | ipbroadcast.c | 274 laddr.sin_port = htons(portno); 287 dsin.sin_port = htons(portno);
|
/freebsd-10.0-release/tools/regression/sockets/sigpipe/ |
H A D | sigpipe.c | 201 sin.sin_port = htons(port); 232 sin.sin_port = htons(port);
|
/freebsd-10.0-release/tools/test/netfibs/ |
H A D | reflect.c | 178 from.sin6_port = htons(port); /* This only gives us a ::1:port ::1:port binding */ 227 sin6.sin6_port = htons(port);
|
/freebsd-10.0-release/usr.sbin/bluetooth/sdpd/ |
H A D | sar.c | 288 pdu.len = htons(sizeof(bcount) + bcount + 1 + cs[0]); 290 bcount = htons(bcount);
|
/freebsd-10.0-release/usr.sbin/nfscbd/ |
H A D | nfscbd.c | 227 inetaddr.sin_port = htons(myport); 266 inetaddr.sin_port = htons(myport);
|
/freebsd-10.0-release/usr.sbin/ypbind/ |
H A D | yp_ping.c | 123 address->sin_port = htons(PMAPPORT); 239 sin.sin_port = htons(__pmap_getport(&sin, YPPROG,
|
/freebsd-10.0-release/sbin/routed/rtquery/ |
H A D | rtquery.c | 345 myaddr.sin_port = htons(IPPORT_RESERVED-1); 352 myaddr.sin_port = htons(ntohs(myaddr.sin_port)-1); 402 NA0.au.a_md5.md5_pkt_len = htons(cc); 404 NA2.a_type = htons(1); 529 router.sin_port = htons(RIP_PORT);
|
/freebsd-10.0-release/sys/contrib/ipfilter/netinet/ |
H A D | ip_tftp_pxy.c | 244 ipn->in_odport = htons(fin->fin_sport); 245 ipn->in_ndport = htons(fin->fin_sport); 318 udp.uh_ulen = htons(sizeof(udp)); 340 ip->ip_len = htons(fin->fin_hlen + sizeof(udp)); 348 ip6->ip6_plen = htons(sizeof(udp));
|
H A D | ip_nat6.c | 492 sport = htons(fin->fin_data[0]); 493 dport = htons(fin->fin_data[1]); 569 port = htons(port); 625 port = htons(port); 641 port = htons(port); 772 sport = htons(fin->fin_data[0]); 773 dport = htons(fin->fin_data[1]); 870 nport = htons(nport); 872 nport = htons(np->in_dpnext); 1777 tcp->th_sport = htons(sum [all...] |
/freebsd-10.0-release/contrib/libpcap/ |
H A D | pcap-linux.c | 897 sock_fd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); 1525 hdrp->sll_hatype = htons(from.sll_hatype); 1526 hdrp->sll_halen = htons(from.sll_halen); 1564 tag->vlan_tpid = htons(ETH_P_8021Q); 1565 tag->vlan_tci = htons(aux->tp_vlan_tci); 2432 return htons(LINUX_SLL_HOST); 2435 return htons(LINUX_SLL_BROADCAST); 2438 return htons(LINUX_SLL_MULTICAST); 2441 return htons(LINUX_SLL_OTHERHOST); 2444 return htons(LINUX_SLL_OUTGOIN [all...] |