Searched refs:htons (Results 251 - 275 of 963) sorted by relevance

<<11121314151617181920>>

/linux-master/drivers/net/ethernet/sfc/siena/
H A Dselftest.c389 payload->header.h_proto = htons(ETH_P_IP);
394 payload->ip.check = (__force __sum16) htons(0xdead);
395 payload->ip.tot_len = htons(sizeof(*payload) -
402 payload->udp.len = htons(sizeof(*payload) -
407 payload->iteration = htons(ntohs(payload->iteration) + 1);
H A Dethtool_common.c672 spec.ether_type == htons(ETH_P_IP) &&
699 spec.ether_type == htons(ETH_P_IPV6) &&
750 spec.ether_type == htons(ETH_P_IP) &&
770 spec.ether_type == htons(ETH_P_IPV6) &&
799 rule->m_ext.vlan_tci = htons(0xfff);
968 spec.ether_type = htons(ETH_P_IP);
1003 spec.ether_type = htons(ETH_P_IPV6);
1039 spec.ether_type = htons(ETH_P_IP);
1064 spec.ether_type = htons(ETH_P_IPV6);
1115 if (rule->m_ext.vlan_tci != htons(
[all...]
H A Drx_common.c650 if (spec->ether_type == htons(ETH_P_IP) &&
653 if (spec->ether_type == htons(ETH_P_IPV6) &&
906 if (req->spec.ether_type == htons(ETH_P_IP))
922 if (req->spec.ether_type == htons(ETH_P_IP))
978 if (fk.basic.n_proto != htons(ETH_P_IP) && fk.basic.n_proto != htons(ETH_P_IPV6)) {
998 if (fk.basic.n_proto == htons(ETH_P_IP)) {
/linux-master/drivers/net/ethernet/sfc/falcon/
H A Dselftest.c391 payload->header.h_proto = htons(ETH_P_IP);
396 payload->ip.check = (__force __sum16) htons(0xdead);
397 payload->ip.tot_len = htons(sizeof(*payload) -
404 payload->udp.len = htons(sizeof(*payload) -
409 payload->iteration = htons(ntohs(payload->iteration) + 1);
H A Dethtool.c819 spec.ether_type == htons(ETH_P_IP) &&
846 spec.ether_type == htons(ETH_P_IPV6) &&
897 spec.ether_type == htons(ETH_P_IP) &&
917 spec.ether_type == htons(ETH_P_IPV6) &&
946 rule->m_ext.vlan_tci = htons(0xfff);
1069 spec.ether_type = htons(ETH_P_IP);
1104 spec.ether_type = htons(ETH_P_IPV6);
1140 spec.ether_type = htons(ETH_P_IP);
1165 spec.ether_type = htons(ETH_P_IPV6);
1216 if (rule->m_ext.vlan_tci != htons(
[all...]
/linux-master/drivers/net/ethernet/sfc/
H A Dselftest.c388 payload->header.h_proto = htons(ETH_P_IP);
393 payload->ip.check = (__force __sum16) htons(0xdead);
394 payload->ip.tot_len = htons(sizeof(*payload) -
401 payload->udp.len = htons(sizeof(*payload) -
406 payload->iteration = htons(ntohs(payload->iteration) + 1);
H A Dethtool_common.c672 spec.ether_type == htons(ETH_P_IP) &&
699 spec.ether_type == htons(ETH_P_IPV6) &&
750 spec.ether_type == htons(ETH_P_IP) &&
770 spec.ether_type == htons(ETH_P_IPV6) &&
799 rule->m_ext.vlan_tci = htons(0xfff);
967 spec.ether_type = htons(ETH_P_IP);
1002 spec.ether_type = htons(ETH_P_IPV6);
1038 spec.ether_type = htons(ETH_P_IP);
1063 spec.ether_type = htons(ETH_P_IPV6);
1114 if (rule->m_ext.vlan_tci != htons(
[all...]
H A Drx_common.c648 if (spec->ether_type == htons(ETH_P_IP) &&
651 if (spec->ether_type == htons(ETH_P_IPV6) &&
901 if (req->spec.ether_type == htons(ETH_P_IP))
917 if (req->spec.ether_type == htons(ETH_P_IP))
972 if (fk.basic.n_proto != htons(ETH_P_IP) && fk.basic.n_proto != htons(ETH_P_IPV6)) {
992 if (fk.basic.n_proto == htons(ETH_P_IP)) {
/linux-master/drivers/infiniband/hw/irdma/
H A Dcm.c100 laddr->sin_port = htons(cm_node->loc_port);
101 raddr->sin_port = htons(cm_node->rem_port);
121 laddr6->sin6_port = htons(cm_node->loc_port);
122 raddr6->sin6_port = htons(cm_node->rem_port);
349 tcph->source = htons(cm_node->loc_port);
350 tcph->dest = htons(cm_node->rem_port);
378 tcph->window = htons(cm_node->tcp_cntxt.rcv_wnd);
481 htons(ETH_P_8021Q);
484 ((struct vlan_ethhdr *)ethh)->h_vlan_TCI = htons(vtag);
487 htons(ETH_P_I
[all...]
/linux-master/net/appletalk/
H A Dddp.c264 atif->address.s_net = htons(probe_net);
313 proxy_addr->s_net = htons(probe_net);
487 atrtr_default.gateway.s_net = htons(0);
758 if (nr->nr_firstnet == htons(0) &&
759 nr->nr_lastnet == htons(0xFFFE)) {
773 sa->sat_addr.s_net = htons(ct);
1006 return sum ? htons((unsigned short)sum) : htons(0xFFFF);
1124 if (!ap || ap->s_net == htons(ATADDR_ANYNET))
1153 if (addr->sat_addr.s_net == htons(ATADDR_ANYNE
[all...]
/linux-master/net/bridge/
H A Dbr_mdb.c156 case htons(ETH_P_IP):
162 case htons(ETH_P_IPV6):
193 case htons(ETH_P_IP): function
201 case htons(ETH_P_IPV6): function
254 if (mp->addr.proto == htons(ETH_P_IP)) {
257 } else if (mp->addr.proto == htons(ETH_P_IPV6)) {
277 case htons(ETH_P_IP):
287 case htons(ETH_P_IPV6):
470 case htons(ETH_P_IP):
479 case htons(ETH_P_IPV
655 case htons(ETH_P_IP): function
666 case htons(ETH_P_IPV6): { function
[all...]
/linux-master/drivers/net/ethernet/rocker/
H A Drocker_ofdpa.c254 vlan_id = htons(vid);
1266 __be16 eth_type = htons(ETH_P_IP);
1562 .eth_type = htons(ETH_P_ARP),
1569 .eth_type = htons(ETH_P_IP),
1577 .eth_type = htons(ETH_P_IPV6),
1602 __be16 vlan_id_mask = htons(0xffff);
1654 __be16 vlan_id_mask = htons(0xffff);
1717 ctrl, htons(vid));
1731 __be16 vlan_id = htons(vid);
1732 __be16 vlan_id_mask = htons(
[all...]
/linux-master/drivers/scsi/qedf/
H A Dqedf_els.c312 rrq.rrq_ox_id = htons(aborted_io_req->xid);
314 htons(aborted_io_req->task->tstorm_st_context.read_write.rx_id);
341 fh->fh_ox_id = htons(l2_oxid);
673 srr.srr_ox_id = htons(orig_io_req->xid);
674 srr.srr_rx_id = htons(orig_io_req->rx_id);
1048 rec.rec_ox_id = htons(orig_io_req->xid);
1050 htons(orig_io_req->task->tstorm_st_context.read_write.rx_id);
/linux-master/drivers/infiniband/hw/qedr/
H A Dqedr_roce_cm.c438 udh->eth.type = htons(ETH_P_8021Q);
439 udh->vlan.tag = htons(vlan_id);
440 udh->vlan.type = htons(ether_type);
442 udh->eth.type = htons(ether_type);
470 udh->ip4.frag_off = htons(IP_DF);
482 udh->udp.sport = htons(QEDR_ROCE_V2_UDP_SPORT);
483 udh->udp.dport = htons(ROCE_V2_UDP_DPORT);
/linux-master/net/ipv4/
H A Dudp_offload.c126 uh->len = htons(skb_shinfo(skb)->gso_size +
130 uh->len = htons(len);
260 udp_hdr(skb)->len = htons(sizeof(struct udphdr) + mss);
321 newlen = htons(sizeof(*uh) + mss);
348 newlen = htons(skb_tail_pointer(seg) - skb_transport_header(seg) +
694 __be16 newlen = htons(skb->len - nhoff);
737 uh->len = htons(skb->len - nhoff);
H A Desp4_offload.c118 __be16 type = x->inner_mode.family == AF_INET6 ? htons(ETH_P_IPV6)
119 : htons(ETH_P_IP);
327 ip_hdr(skb)->tot_len = htons(skb->len);
/linux-master/net/ax25/
H A Dax25_in.c127 skb->protocol = htons(ETH_P_IP);
245 skb->protocol = htons(ETH_P_IP);
255 skb->protocol = htons(ETH_P_ARP);
/linux-master/drivers/net/ethernet/aquantia/atlantic/
H A Daq_main.c119 ((udp_hdr(skb)->dest == htons(319)) ||
120 (udp_hdr(skb)->dest == htons(320)))) ||
121 unlikely(eth_hdr(skb)->h_proto == htons(ETH_P_1588)))
/linux-master/net/batman-adv/
H A Dtvlv.c246 tvlv_new->tvlv_hdr.len = htons(tvlv_value_len);
647 unicast_tvlv_packet->tvlv_len = htons(tvlv_len);
656 tvlv_hdr->len = htons(tvlv_value_len);
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtxrx.h436 if (swp_spec->l3_proto == htons(ETH_P_IPV6))
446 if (swp_spec->tun_l3_proto == htons(ETH_P_IPV6))
450 if (swp_spec->l3_proto == htons(ETH_P_IPV6))
/linux-master/drivers/net/
H A Dmhi_net.c214 skb->protocol = htons(ETH_P_IP);
217 skb->protocol = htons(ETH_P_IPV6);
220 skb->protocol = htons(ETH_P_MAP);
/linux-master/net/ipv6/
H A Desp6_offload.c154 __be16 type = x->inner_mode.family == AF_INET ? htons(ETH_P_IP)
155 : htons(ETH_P_IPV6);
364 ipv6_hdr(skb)->payload_len = htons(len);
/linux-master/drivers/staging/wlan-ng/
H A Dp80211conv.c132 e_snap->type = htons(proto);
390 e_hdr->type = htons(payload_length);
458 e_hdr->type = htons(payload_length);
/linux-master/net/netfilter/ipvs/
H A Dip_vs_ftp.c230 *port = htons(hport);
533 htons(ntohs(cp->vport)-1), &p);
537 htons(ntohs(cp->dport)-1),
/linux-master/drivers/net/vxlan/
H A Dvxlan_mdb.c114 e->addr.proto = htons(ETH_P_IP);
119 e->addr.proto = htons(ETH_P_IPV6);
347 case htons(ETH_P_IP): function
358 case htons(ETH_P_IPV6): { function
386 case htons(ETH_P_IP):
391 case htons(ETH_P_IPV6):
642 if (entry->addr.proto != htons(ETH_P_IP) &&
643 entry->addr.proto != htons(ETH_P_IPV6)) {
1627 case htons(ETH_P_IP):
1636 case htons(ETH_P_IPV
[all...]

Completed in 261 milliseconds

<<11121314151617181920>>