Searched refs:htons (Results 226 - 250 of 608) sorted by relevance

1234567891011>>

/freebsd-10.0-release/sys/netpfil/ipfw/
H A Dip_fw_dynamic.c854 h->ip_len = htons(sizeof(struct tcphdr));
871 h6->ip6_plen = htons(sizeof(struct tcphdr));
886 th->th_sport = htons(id->src_port);
887 th->th_dport = htons(id->dst_port);
889 th->th_sport = htons(id->dst_port);
890 th->th_dport = htons(id->src_port);
921 h->ip_off = htons(0);
922 h->ip_len = htons(len);
/freebsd-10.0-release/sys/nfs/
H A Dnfs_diskless.c259 nd3->root_saddr.sin_port = htons(NFS_PORT);
298 nd->root_saddr.sin_port = htons(NFS_PORT);
/freebsd-10.0-release/tools/regression/netinet/msocket/
H A Dmsocket.c371 sin.sin_port = htons(UDP_PORT);
397 sin.sin_port = htons(UDP_PORT);
/freebsd-10.0-release/usr.sbin/mld6query/
H A Dmld6.c192 u_short rtalert_code = htons(IP6OPT_RTALERT_MLD);
213 mldh.mld_maxdelay = htons(QUERY_RESPONSE_INTERVAL);
/freebsd-10.0-release/usr.sbin/ppp/
H A Dpap.c100 lh.length = htons(plen + sizeof(struct fsmheader));
125 lh.length = htons(plen + sizeof(struct fsmheader));
/freebsd-10.0-release/contrib/openbsm/test/bsm/
H A Dgenerate.c679 ip_token_ip.ip_len = htons(sizeof(ip_token_ip));
680 ip_token_ip.ip_id = htons(ip_token_ip_id);
702 ip_token_ip.ip_len = htons(sizeof(ip_token_ip));
703 ip_token_ip.ip_id = htons(ip_token_ip_id);
722 iport_token_iport = htons(80);
735 iport_token_iport = htons(80);
/freebsd-10.0-release/sys/contrib/ipfilter/netinet/
H A Dip_rpcb_pxy.c826 udp->uh_ulen = htons(ntohs(udp->uh_ulen) + diff);
828 fin->fin_ip->ip_len = htons(fin->fin_plen);
1175 tcp.th_dport = htons(port);
1178 tcp.th_win = htons(8192);
1467 udp->uh_ulen = htons(ntohs(udp->uh_ulen) + len);
1469 fin->fin_ip->ip_len = htons(fin->fin_plen);
H A Dip_nat.c905 *sp = htons(sum1);
914 *(sp) = htons(sumshort);
946 *sp = htons(sum1);
956 *(sp) = htons(sumshort);
995 *(sp) = htons(sumshort);
2657 sport = htons(fin->fin_data[0]);
2658 dport = htons(fin->fin_data[1]);
2726 port = htons(port);
2779 port = htons(port);
2794 port = htons(por
[all...]
H A Dip_ftp_pxy.c245 aps->aps_sport = htons(fin->fin_sport);
246 aps->aps_dport = htons(fin->fin_dport);
442 ip->ip_len = htons(fin->fin_plen);
569 tcp2->th_dport = htons(sp);
571 tcp2->th_win = htons(8192);
928 tcp2->th_win = htons(8192);
929 tcp2->th_dport = htons(port);
986 ip6->ip6_plen = htons(len);
989 ip->ip_len = htons(fin->fin_plen);
1894 ip->ip_len = htons(fi
[all...]
H A Dip_sync.c327 td->td_maxwin = htons(td->td_maxwin);
394 ips->is_sec = htons(ips->is_sec);
395 ips->is_secmsk = htons(ips->is_secmsk);
396 ips->is_auth = htons(ips->is_auth);
397 ips->is_authmsk = htons(ips->is_authmsk);
400 ips->is_smsk[0] = htons(ips->is_smsk[0]);
401 ips->is_smsk[1] = htons(ips->is_smsk[1]);
/freebsd-10.0-release/sys/net/
H A Dif_gre.c363 if (ip->ip_off & htons(IP_MF | IP_OFFMASK)) {
387 mob_h.proto = htons(mob_h.proto);
416 ip->ip_len = htons(ntohs(ip->ip_len) + msiz);
479 gh->gi_ptype = htons(etype);
485 gh->gi_flags |= htons(GRE_KP);
499 gh->gi_len = htons(m->m_pkthdr.len);
H A Dif_arcsubr.c147 ah->ar_hrd = htons(ARPHRD_ARCNET);
581 mtod(m, struct arphdr *)->ar_pro = htons(ETHERTYPE_IP);
594 mtod(m, struct arphdr *)->ar_pro = htons(ETHERTYPE_IP);
H A Dif_fwsubr.c153 ah->ar_hrd = htons(ARPHRD_IEEE1394);
196 h.firewire_type = htons(type);
572 h.firewire_type = htons(type);
/freebsd-10.0-release/sys/netinet/
H A Dsctp_auth.c778 hmac_id = htons(list->hmac[i]);
1594 auth->shared_key_id = htons(keyid);
1688 err->ph.param_type = htons(SCTP_CAUSE_UNSUPPORTED_HMACID);
1689 err->ph.param_length = htons(sizeof(*err));
2008 ph->param_type = htons(SCTP_RANDOM);
2010 ph->param_length = htons(plen);
2017 ph->param_type = htons(SCTP_CHUNK_LIST);
2019 ph->param_length = htons(plen);
2031 ph->param_type = htons(SCTP_HMAC_LIST);
2033 ph->param_length = htons(ple
[all...]
H A Draw_ip.c450 ip->ip_off = htons(IP_DF);
452 ip->ip_off = htons(0);
454 ip->ip_len = htons(m->m_pkthdr.len);
509 ip->ip_len = htons(ip->ip_len);
510 ip->ip_off = htons(ip->ip_off);
H A Dtcp_lro.c174 htons(cs));
223 p_len = htons(le->p_len);
343 if (ip4->ip_off & htons(IP_MF|IP_OFFMASK))
/freebsd-10.0-release/sys/dev/sfxge/
H A Dsfxge_rx.c334 iph->ip_len = htons(iph->ip_len);
342 iph->ip6_plen = htons(iph->ip6_plen);
634 if (eh->ether_type == htons(ETHERTYPE_VLAN)) {
650 if (l3_proto == htons(ETHERTYPE_IP)) {
654 (iph->ip_off & htons(IP_MF | IP_OFFMASK)))
657 } else if (l3_proto == htons(ETHERTYPE_IPV6)) {
781 htons(SFXGE_ETHERTYPE_LOOPBACK)) {
/freebsd-10.0-release/contrib/ipfilter/tools/
H A Dipf_y.y1268 { DOALL(fr->fr_icmp = htons($2 << 8); fr->fr_icmpm = htons(0xff00););
1302 { DOALL(fr->fr_icmp |= htons($2); fr->fr_icmpm |= htons(0xff););
1314 { DOREM(fr->fr_icmp = htons($1 << 8); fr->fr_icmpm = htons(0xff00);) }
1316 { DOREM(fr->fr_icmp = htons($3 << 8); fr->fr_icmpm = htons(0xff00);) }
1321 { DOREM(fr->fr_icmp |= htons($1); fr->fr_icmpm |= htons(
[all...]
/freebsd-10.0-release/contrib/tcpdump/
H A Daddrtoname.c774 int j = htons(eproto_db[i].p) & (HASHNAMESIZE-1);
779 table->addr = htons(eproto_db[i].p);
812 u_short etype = htons(eproto_db[i].p);
1122 int j = htons(ipxsap_db[i].v) & (HASHNAMESIZE-1);
1127 table->addr = htons(ipxsap_db[i].v);
/freebsd-10.0-release/sys/dev/cxgbe/common/
H A Dt4_hw.c2778 cmd.niqid = htons(nq);
2779 cmd.startidx = htons(start);
4124 wr->rx_chan_rx_rpl_iq = htons(V_FW_FILTER_WR_RX_RPL_IQ(qid));
4198 c.u.mdio.paddr_mmd = htons(V_FW_LDST_CMD_PADDR(phy_addr) |
4200 c.u.mdio.raddr = htons(reg);
4228 c.u.mdio.paddr_mmd = htons(V_FW_LDST_CMD_PADDR(phy_addr) |
4230 c.u.mdio.raddr = htons(reg);
4231 c.u.mdio.rval = htons(val);
4837 c.type_to_viid = htons(V_FW_VI_CMD_TYPE(idstype) |
4861 return G_FW_VI_CMD_VIID(htons(
[all...]
/freebsd-10.0-release/contrib/unbound/util/data/
H A Dpacked_rrset.c356 k->rk.type = htons(ldns_rr_get_type(rr));
357 k->rk.rrset_class = htons(ldns_rr_get_class(rr));
425 uint16_t rdlen = htons(data->rr_len[i]-2);
/freebsd-10.0-release/contrib/wpa/src/drivers/
H A Ddriver_wired.c210 drv->sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_PAE));
275 addr2.sin_port = htons(67);
331 hdr->ethertype = htons(ETH_P_PAE);
/freebsd-10.0-release/contrib/wpa/src/wps/
H A Dwps_upnp_ssdp.c245 dest.sin_port = htons(UPNP_MULTICAST_PORT);
294 dest.sin_port = htons(UPNP_MULTICAST_PORT);
748 addr.sin_port = htons(UPNP_MULTICAST_PORT);
/freebsd-10.0-release/lib/libstand/
H A Dbootp.c158 d->myport = htons(IPPORT_BOOTPC);
160 d->destport = htons(IPPORT_BOOTPS);
280 bp->bp_secs = htons((u_short)(getsecs() - bot));
/freebsd-10.0-release/sys/netgraph/
H A Dng_vlan.c228 priv->encap_proto = htons(ETHERTYPE_VLAN);
471 priv->encap_proto = htons((*((uint16_t *)msg->data)));
663 evl->evl_tag = htons(eth_vtag);

Completed in 327 milliseconds

1234567891011>>