Searched refs:htons (Results 1 - 25 of 963) sorted by path

1234567891011>>

/linux-master/drivers/infiniband/ulp/opa_vnic/
H A Dopa_vnic_encap.c417 case htons(ETH_P_IPV6):
428 case htons(ETH_P_IP):
/linux-master/drivers/net/ethernet/cisco/enic/
H A Denic_clsf.c182 if (!res || keys.basic.n_proto != htons(ETH_P_IP) ||
/linux-master/drivers/net/ethernet/mellanox/mlx4/
H A Den_selftest.c70 ethh->h_proto = htons(ETH_P_ARP);
H A Dfw_qos.c134 htons(MLX4_RATELIMIT_100M_UNITS);
138 htons(MLX4_RATELIMIT_1G_UNITS);
140 tc->max_bw_value = htons(r);
142 tc->max_bw_value = htons(MLX4_RATELIMIT_DEFAULT);
143 tc->max_bw_units = htons(MLX4_RATELIMIT_1G_UNITS);
146 tc->pg = htons(pg[i]);
147 tc->bw_precentage = htons(tc_tx_bw[i]);
/linux-master/drivers/net/ethernet/sfc/falcon/
H A Dfilter.h187 spec->ether_type = htons(ETH_P_IP);
212 spec->ether_type = htons(ETH_P_IP);
239 spec->outer_vid = htons(vid);
/linux-master/drivers/scsi/bnx2fc/
H A Dbnx2fc_els.c94 rrq.rrq_ox_id = htons(aborted_io_req->xid);
95 rrq.rrq_rx_id = htons(aborted_io_req->task->rxwr_txrd.var_ctx.rx_id);
607 rec.rec_ox_id = htons(orig_io_req->xid);
608 rec.rec_rx_id = htons(orig_io_req->task->rxwr_txrd.var_ctx.rx_id);
647 srr.srr_ox_id = htons(orig_io_req->xid);
648 srr.srr_rx_id = htons(orig_io_req->task->rxwr_txrd.var_ctx.rx_id);
/linux-master/include/linux/sunrpc/
H A Daddr.h39 ((struct sockaddr_in *)sap)->sin_port = htons(port);
42 ((struct sockaddr_in6 *)sap)->sin6_port = htons(port);
/linux-master/include/net/
H A Dx25device.h16 return htons(ETH_P_X25);
/linux-master/net/802/
H A Dfc.c53 fcllc->ethertype = htons(type);
/linux-master/net/8021q/
H A Dvlan_gvrp.c30 __be16 vlan_id = htons(vlan->vlan_id);
32 if (vlan->vlan_proto != htons(ETH_P_8021Q))
41 __be16 vlan_id = htons(vlan->vlan_id);
43 if (vlan->vlan_proto != htons(ETH_P_8021Q))
H A Dvlan_mvrp.c28 .pkttype.type = htons(ETH_P_MVRP),
36 __be16 vlan_id = htons(vlan->vlan_id);
38 if (vlan->vlan_proto != htons(ETH_P_8021Q))
47 __be16 vlan_id = htons(vlan->vlan_id);
49 if (vlan->vlan_proto != htons(ETH_P_8021Q))
/linux-master/net/bridge/netfilter/
H A Debt_among.c73 if (eth_hdr(skb)->h_proto == htons(ETH_P_IP)) {
81 } else if (eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) {
104 if (eth_hdr(skb)->h_proto == htons(ETH_P_IP)) {
112 } else if (eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) {
H A Debt_arp.c43 if (ah->ar_pln != sizeof(__be32) || ah->ar_pro != htons(ETH_P_IP))
72 if (ah->ar_hln != ETH_ALEN || ah->ar_hrd != htons(ARPHRD_ETHER))
106 if ((e->ethproto != htons(ETH_P_ARP) &&
107 e->ethproto != htons(ETH_P_RARP)) ||
H A Debt_arpreply.c34 if (ap->ar_op != htons(ARPOP_REQUEST) ||
36 ap->ar_pro != htons(ETH_P_IP) ||
69 if (e->ethproto != htons(ETH_P_ARP) ||
H A Debt_ip.c109 if (e->ethproto != htons(ETH_P_IP) ||
H A Debt_ip6.c111 if (e->ethproto != htons(ETH_P_IPV6) || e->invflags & EBT_IPROTO)
H A Debt_log.c98 htons(ETH_P_IP)) {
115 htons(ETH_P_IPV6)) {
139 ((eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) ||
140 (eth_hdr(skb)->h_proto == htons(ETH_P_RARP)))) {
156 if (ah->ar_hrd == htons(1) &&
H A Debt_vlan.c83 if (e->ethproto != htons(ETH_P_8021Q)) {
/linux-master/net/ieee802154/6lowpan/
H A Dtx.c167 frag_tag = htons(lowpan_802154_dev(ldev)->fragment_tag);
/linux-master/net/ipv4/netfilter/
H A Dipt_ECN.c38 csum_replace2(&iph->check, htons(oldtos), htons(iph->tos));
H A Dnf_nat_snmp_basic_main.c170 if (udph->source == htons(SNMP_PORT) && dir != IP_CT_DIR_REPLY)
172 if (udph->dest == htons(SNMP_TRAP_PORT) && dir != IP_CT_DIR_ORIGINAL)
/linux-master/net/ipv6/netfilter/
H A Dip6t_eui64.c33 if (eth_hdr(skb)->h_proto == htons(ETH_P_IPV6)) {
/linux-master/net/netfilter/ipvs/
H A Dip_vs_proto.c226 else if (ih->frag_off & htons(IP_OFFSET))
H A Dip_vs_proto_ah_esp.c46 &iph->saddr, htons(PORT_ISAKMP),
47 &iph->daddr, htons(PORT_ISAKMP), p);
50 &iph->daddr, htons(PORT_ISAKMP),
51 &iph->saddr, htons(PORT_ISAKMP), p);
/linux-master/net/netfilter/
H A Dnf_conntrack_amanda.c141 port = htons(simple_strtoul(pbuf, &tmp, 10));

Completed in 262 milliseconds

1234567891011>>