htons 86 arch/arc/include/asm/checksum.h "r"(htons(proto)) htons 127 arch/um/drivers/port_user.c addr.sin_port = htons(port); htons 44 arch/um/drivers/slip_kern.c return htons(ETH_P_IP); htons 49 arch/um/drivers/slirp_kern.c return htons(ETH_P_IP); htons 37 arch/um/drivers/umcast_user.c sin->sin_port = htons(port); htons 173 arch/um/drivers/vector_user.c sock.sll_protocol = htons(proto); htons 30 arch/unicore32/include/asm/checksum.h : "r" (sum), "r" (daddr), "r" (saddr), "r" (len), "Ir" (htons(proto)) htons 143 arch/x86/lib/csum-wrappers_64.c rest = (__force __u64)htonl(len) + (__force __u64)htons(proto) + htons 129 drivers/atm/atmtcp.c msg.hdr.vpi = htons(vpi); htons 131 drivers/atm/atmtcp.c msg.hdr.vci = htons(vci); htons 222 drivers/atm/atmtcp.c hdr->vpi = htons(vcc->vpi); htons 223 drivers/atm/atmtcp.c hdr->vci = htons(vcc->vci); htons 405 drivers/crypto/chelsio/chcr_algo.c phys_cpl->rss_hdr_int.qid = htons(qid); htons 419 drivers/crypto/chelsio/chcr_algo.c walk->to->len[j % 8] = htons(size); htons 455 drivers/crypto/chelsio/chcr_algo.c walk->to->len[j % 8] = htons(ent_len); htons 2802 drivers/crypto/chelsio/chcr_algo.c htons(assoclen); htons 461 drivers/crypto/chelsio/chcr_ipsec.c cpl->pack = htons(0); htons 462 drivers/crypto/chelsio/chcr_ipsec.c cpl->len = htons(skb->len); htons 31 drivers/crypto/chelsio/chtls/chtls_hw.c req->reply_ctrl = htons(NO_REPLY_V(no_reply) | htons 33 drivers/crypto/chelsio/chtls/chtls_hw.c req->word_cookie = htons(TCB_WORD_V(word) | TCB_COOKIE_V(cookie)); htons 337 drivers/crypto/chelsio/chtls/chtls_hw.c kwr->wr.mfs = htons(TLS_MFS); htons 411 drivers/crypto/chelsio/chtls/chtls_io.c req_wr->mfs = htons(hws->mfs); htons 413 drivers/crypto/chelsio/chtls/chtls_io.c htons(FW_TLSTX_DATA_WR_ADJUSTEDPLEN_V(hws->adjustlen)); htons 415 drivers/crypto/chelsio/chtls/chtls_io.c htons(FW_TLSTX_DATA_WR_EXPINPLENMAX_V(hws->expansion)); htons 543 drivers/firewire/net.c protocol = htons(ETH_P_802_3); htons 545 drivers/firewire/net.c protocol = htons(ETH_P_802_2); htons 1000 drivers/firewire/net.c case htons(ETH_P_IPV6): htons 1274 drivers/firewire/net.c case htons(ETH_P_ARP): htons 1275 drivers/firewire/net.c case htons(ETH_P_IP): htons 1277 drivers/firewire/net.c case htons(ETH_P_IPV6): htons 634 drivers/hsi/clients/ssi_protocol.c skb->protocol = htons(ETH_P_PHONET); htons 977 drivers/hsi/clients/ssi_protocol.c if ((skb->protocol != htons(ETH_P_PHONET)) || htons 992 drivers/hsi/clients/ssi_protocol.c ((u16 *)skb->data)[2] = htons(((u16 *)skb->data)[2]); htons 1320 drivers/infiniband/core/cm.c htons(ntohl(sa_path_get_slid(pri_path))); htons 1322 drivers/infiniband/core/cm.c htons(ntohl(sa_path_get_dlid(pri_path))); htons 1355 drivers/infiniband/core/cm.c htons(ntohl(sa_path_get_slid(alt_path))); htons 1357 drivers/infiniband/core/cm.c htons(ntohl(sa_path_get_dlid(alt_path))); htons 3098 drivers/infiniband/core/cm.c htons(ntohl(sa_path_get_slid(alternate_path))); htons 3100 drivers/infiniband/core/cm.c htons(ntohl(sa_path_get_dlid(alternate_path))); htons 1222 drivers/infiniband/core/cma.c return htons((u16) (be64_to_cpu(sib->sib_sid) & htons 1332 drivers/infiniband/core/cma.c port = htons(cma_port_from_service_id(service_id)); htons 3249 drivers/infiniband/core/cma.c port = htons(bind_list->port); htons 142 drivers/infiniband/core/uverbs_marshall.c dst->dlid = htons(ntohl(sa_path_get_dlid(src))); htons 143 drivers/infiniband/core/uverbs_marshall.c dst->slid = htons(ntohl(sa_path_get_slid(src))); htons 1922 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qp1_hdr.ip4.frag_off = htons(IP_DF); htons 1931 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qp1_hdr.udp.dport = htons(ROCE_V2_UDP_DPORT); htons 1932 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qp1_hdr.udp.sport = htons(0x8CD1); htons 197 drivers/infiniband/hw/cxgb3/iwch_cm.c req->word = htons(W_TCB_RX_QUIESCE); htons 218 drivers/infiniband/hw/cxgb3/iwch_cm.c req->word = htons(W_TCB_RX_QUIESCE); htons 499 drivers/infiniband/hw/cxgb3/iwch_cm.c mpa->private_data_size = htons(ep->plen); htons 552 drivers/infiniband/hw/cxgb3/iwch_cm.c mpa->private_data_size = htons(plen); htons 603 drivers/infiniband/hw/cxgb3/iwch_cm.c mpa->private_data_size = htons(plen); htons 676 drivers/infiniband/hw/cxgb4/cm.c req->reply_ctrl = htons(REPLY_CHAN_V(0) | QUEUENO_V(ep->rss_qid)); htons 990 drivers/infiniband/hw/cxgb4/cm.c mpa->private_data_size = htons(ep->plen); htons 999 drivers/infiniband/hw/cxgb4/cm.c htons(ntohs(mpa->private_data_size) + htons 1003 drivers/infiniband/hw/cxgb4/cm.c mpa_v2_params.ird = htons((u16)ep->ird); htons 1004 drivers/infiniband/hw/cxgb4/cm.c mpa_v2_params.ord = htons((u16)ep->ord); htons 1007 drivers/infiniband/hw/cxgb4/cm.c mpa_v2_params.ird |= htons(MPA_V2_PEER2PEER_MODEL); htons 1010 drivers/infiniband/hw/cxgb4/cm.c htons(MPA_V2_RDMA_WRITE_RTR); htons 1013 drivers/infiniband/hw/cxgb4/cm.c htons(MPA_V2_RDMA_READ_RTR); htons 1086 drivers/infiniband/hw/cxgb4/cm.c mpa->private_data_size = htons(plen); htons 1091 drivers/infiniband/hw/cxgb4/cm.c htons(ntohs(mpa->private_data_size) + htons 1093 drivers/infiniband/hw/cxgb4/cm.c mpa_v2_params.ird = htons(((u16)ep->ird) | htons 1096 drivers/infiniband/hw/cxgb4/cm.c mpa_v2_params.ord = htons(((u16)ep->ord) | (peer2peer ? htons 1170 drivers/infiniband/hw/cxgb4/cm.c mpa->private_data_size = htons(plen); htons 1175 drivers/infiniband/hw/cxgb4/cm.c htons(ntohs(mpa->private_data_size) + htons 1177 drivers/infiniband/hw/cxgb4/cm.c mpa_v2_params.ird = htons((u16)ep->ird); htons 1178 drivers/infiniband/hw/cxgb4/cm.c mpa_v2_params.ord = htons((u16)ep->ord); htons 1181 drivers/infiniband/hw/cxgb4/cm.c mpa_v2_params.ird |= htons(MPA_V2_PEER2PEER_MODEL); htons 1185 drivers/infiniband/hw/cxgb4/cm.c htons(MPA_V2_RDMA_WRITE_RTR); htons 1188 drivers/infiniband/hw/cxgb4/cm.c htons(MPA_V2_RDMA_READ_RTR); htons 1984 drivers/infiniband/hw/cxgb4/cm.c htons(FW_OFLD_CONNECTION_WR_CPLRXDATAACK_F); htons 1986 drivers/infiniband/hw/cxgb4/cm.c req->tcb.rcv_adv = htons(1); htons 3982 drivers/infiniband/hw/cxgb4/cm.c req->tcpopt.mss = htons(tmp_opt.mss_clamp); htons 4016 drivers/infiniband/hw/cxgb4/cm.c req->tcb.rcv_adv = htons(window); htons 4121 drivers/infiniband/hw/cxgb4/cm.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), ntohs(cpl->vlan)); htons 4171 drivers/infiniband/hw/cxgb4/cm.c window = (__force u16) htons((__force u16)tcph->window); htons 179 drivers/infiniband/hw/i40iw/i40iw_cm.c laddr->sin_port = htons(cm_node->loc_port); htons 180 drivers/infiniband/hw/i40iw/i40iw_cm.c raddr->sin_port = htons(cm_node->rem_port); htons 200 drivers/infiniband/hw/i40iw/i40iw_cm.c laddr6->sin6_port = htons(cm_node->loc_port); htons 201 drivers/infiniband/hw/i40iw/i40iw_cm.c raddr6->sin6_port = htons(cm_node->rem_port); htons 437 drivers/infiniband/hw/i40iw/i40iw_cm.c ((struct vlan_ethhdr *)ethh)->h_vlan_proto = htons(ETH_P_8021Q); htons 439 drivers/infiniband/hw/i40iw/i40iw_cm.c ((struct vlan_ethhdr *)ethh)->h_vlan_TCI = htons(vtag); htons 441 drivers/infiniband/hw/i40iw/i40iw_cm.c ((struct vlan_ethhdr *)ethh)->h_vlan_encapsulated_proto = htons(ETH_P_IP); htons 443 drivers/infiniband/hw/i40iw/i40iw_cm.c ethh->h_proto = htons(ETH_P_IP); htons 449 drivers/infiniband/hw/i40iw/i40iw_cm.c iph->tot_len = htons(packetsize); htons 450 drivers/infiniband/hw/i40iw/i40iw_cm.c iph->id = htons(++cm_node->tcp_cntxt.loc_id); htons 452 drivers/infiniband/hw/i40iw/i40iw_cm.c iph->frag_off = htons(0x4000); htons 467 drivers/infiniband/hw/i40iw/i40iw_cm.c ((struct vlan_ethhdr *)ethh)->h_vlan_proto = htons(ETH_P_8021Q); htons 469 drivers/infiniband/hw/i40iw/i40iw_cm.c ((struct vlan_ethhdr *)ethh)->h_vlan_TCI = htons(vtag); htons 470 drivers/infiniband/hw/i40iw/i40iw_cm.c ((struct vlan_ethhdr *)ethh)->h_vlan_encapsulated_proto = htons(ETH_P_IPV6); htons 472 drivers/infiniband/hw/i40iw/i40iw_cm.c ethh->h_proto = htons(ETH_P_IPV6); htons 479 drivers/infiniband/hw/i40iw/i40iw_cm.c ip6h->payload_len = htons(packetsize - sizeof(*ip6h)); htons 488 drivers/infiniband/hw/i40iw/i40iw_cm.c tcph->source = htons(cm_node->loc_port); htons 489 drivers/infiniband/hw/i40iw/i40iw_cm.c tcph->dest = htons(cm_node->rem_port); htons 518 drivers/infiniband/hw/i40iw/i40iw_cm.c tcph->window = htons(cm_node->tcp_cntxt.rcv_wnd); htons 752 drivers/infiniband/hw/i40iw/i40iw_cm.c mpa_frame->priv_data_len = htons(cm_node->pdata.size); htons 772 drivers/infiniband/hw/i40iw/i40iw_cm.c mpa_frame->priv_data_len += htons(IETF_RTR_MSG_SIZE); htons 805 drivers/infiniband/hw/i40iw/i40iw_cm.c rtr_msg->ctrl_ird = htons(ctrl_ird); htons 806 drivers/infiniband/hw/i40iw/i40iw_cm.c rtr_msg->ctrl_ord = htons(ctrl_ord); htons 1360 drivers/infiniband/hw/i40iw/i40iw_cm.c options->as_mss.mss = htons(cm_node->tcp_cntxt.mss); htons 2215 drivers/infiniband/hw/i40iw/i40iw_cm.c htons(cm_node->loc_port), htons 2216 drivers/infiniband/hw/i40iw/i40iw_cm.c htons(cm_node->rem_port)); htons 2228 drivers/infiniband/hw/i40iw/i40iw_cm.c htons(cm_node->loc_port), htons 2229 drivers/infiniband/hw/i40iw/i40iw_cm.c htons(cm_node->rem_port)); htons 3148 drivers/infiniband/hw/i40iw/i40iw_cm.c if (ethh->h_vlan_proto == htons(ETH_P_8021Q)) { htons 1447 drivers/infiniband/hw/i40iw/i40iw_utils.c iph->tot_len = htons(packetsize); htons 1467 drivers/infiniband/hw/i40iw/i40iw_utils.c if (ethh->h_proto == htons(0x8100)) { htons 3140 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.ip4.frag_off = htons(IP_DF); htons 3150 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.udp.dport = htons(ROCE_V2_UDP_DPORT); htons 3151 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.udp.sport = htons(MLX4_ROCEV2_QP1_SPORT); htons 3137 drivers/infiniband/hw/mlx5/main.c htons(0xffff)); htons 128 drivers/infiniband/hw/ocrdma/ocrdma_ah.c *((__be16 *)&ipv4) = htons((4 << 12) | (5 << 8) | htons 131 drivers/infiniband/hw/ocrdma/ocrdma_ah.c ipv4.frag_off = htons(IP_DF); htons 132 drivers/infiniband/hw/ocrdma/ocrdma_ah.c ipv4.tot_len = htons(0); htons 52 drivers/infiniband/hw/qedr/qedr_iw_cm.c laddr->sin_port = htons(cm_info->local_port); htons 53 drivers/infiniband/hw/qedr/qedr_iw_cm.c raddr->sin_port = htons(cm_info->remote_port); htons 71 drivers/infiniband/hw/qedr/qedr_iw_cm.c laddr6->sin6_port = htons(cm_info->local_port); htons 72 drivers/infiniband/hw/qedr/qedr_iw_cm.c raddr6->sin6_port = htons(cm_info->remote_port); htons 440 drivers/infiniband/hw/qedr/qedr_roce_cm.c udh->eth.type = htons(ETH_P_8021Q); htons 441 drivers/infiniband/hw/qedr/qedr_roce_cm.c udh->vlan.tag = htons(vlan_id); htons 442 drivers/infiniband/hw/qedr/qedr_roce_cm.c udh->vlan.type = htons(ether_type); htons 444 drivers/infiniband/hw/qedr/qedr_roce_cm.c udh->eth.type = htons(ether_type); htons 472 drivers/infiniband/hw/qedr/qedr_roce_cm.c udh->ip4.frag_off = htons(IP_DF); htons 484 drivers/infiniband/hw/qedr/qedr_roce_cm.c udh->udp.sport = htons(QEDR_ROCE_V2_UDP_SPORT); htons 485 drivers/infiniband/hw/qedr/qedr_roce_cm.c udh->udp.dport = htons(ROCE_V2_UDP_DPORT); htons 48 drivers/infiniband/sw/rxe/rxe_icrc.c (skb->protocol == htons(ETH_P_IP) ? htons 62 drivers/infiniband/sw/rxe/rxe_icrc.c if (skb->protocol == htons(ETH_P_IP)) { /* IPv4 */ htons 285 drivers/infiniband/sw/rxe/rxe_net.c udph->len = htons(skb->len); htons 316 drivers/infiniband/sw/rxe/rxe_net.c iph->tot_len = htons(skb->len); htons 335 drivers/infiniband/sw/rxe/rxe_net.c ip6h->payload_len = htons(skb->len); htons 340 drivers/infiniband/sw/rxe/rxe_net.c ip6h->payload_len = htons(skb->len - sizeof(*ip6h)); htons 348 drivers/infiniband/sw/rxe/rxe_net.c __be16 df = htons(IP_DF); htons 398 drivers/infiniband/sw/rxe/rxe_net.c if (skb->protocol == htons(ETH_P_IP)) htons 400 drivers/infiniband/sw/rxe/rxe_net.c else if (skb->protocol == htons(ETH_P_IPV6)) htons 434 drivers/infiniband/sw/rxe/rxe_net.c if (skb->protocol == htons(ETH_P_IP)) { htons 436 drivers/infiniband/sw/rxe/rxe_net.c } else if (skb->protocol == htons(ETH_P_IPV6)) { htons 500 drivers/infiniband/sw/rxe/rxe_net.c skb->protocol = htons(ETH_P_IP); htons 502 drivers/infiniband/sw/rxe/rxe_net.c skb->protocol = htons(ETH_P_IPV6); htons 642 drivers/infiniband/sw/rxe/rxe_net.c htons(ROCE_V2_UDP_DPORT), false); htons 657 drivers/infiniband/sw/rxe/rxe_net.c htons(ROCE_V2_UDP_DPORT), true); htons 168 drivers/infiniband/sw/rxe/rxe_recv.c if (skb->protocol == htons(ETH_P_IP)) { htons 188 drivers/infiniband/sw/rxe/rxe_recv.c } else if (skb->protocol == htons(ETH_P_IPV6)) { htons 286 drivers/infiniband/sw/rxe/rxe_recv.c if (skb->protocol == htons(ETH_P_IP)) htons 289 drivers/infiniband/sw/rxe/rxe_recv.c else if (skb->protocol == htons(ETH_P_IPV6)) htons 337 drivers/infiniband/sw/rxe/rxe_recv.c if (skb->protocol == htons(ETH_P_IP)) { htons 395 drivers/infiniband/sw/rxe/rxe_recv.c if (skb->protocol == htons(ETH_P_IPV6)) htons 398 drivers/infiniband/sw/rxe/rxe_recv.c else if (skb->protocol == htons(ETH_P_IP)) htons 775 drivers/infiniband/sw/rxe/rxe_resp.c if (skb->protocol == htons(ETH_P_IP)) htons 777 drivers/infiniband/sw/rxe/rxe_resp.c else if (skb->protocol == htons(ETH_P_IPV6)) htons 897 drivers/infiniband/sw/rxe/rxe_resp.c if (skb->protocol == htons(ETH_P_IP)) htons 660 drivers/infiniband/sw/siw/siw_cm.c cep->mpa.v2_ctrl.ird = htons(cep->ird); htons 661 drivers/infiniband/sw/siw/siw_cm.c cep->mpa.v2_ctrl.ord = htons(cep->ord); htons 1487 drivers/infiniband/sw/siw/siw_cm.c cep->mpa.v2_ctrl.ird = htons(cep->ird); htons 1488 drivers/infiniband/sw/siw/siw_cm.c cep->mpa.v2_ctrl.ord = htons(cep->ord); htons 1660 drivers/infiniband/sw/siw/siw_cm.c htons(params->ord & MPA_IRD_ORD_MASK) | htons 1663 drivers/infiniband/sw/siw/siw_cm.c htons(params->ird & MPA_IRD_ORD_MASK) | htons 35 drivers/infiniband/sw/siw/siw_qp.c .ctrl.mpa_len = htons(sizeof(struct iwarp_rdma_write) - 2), htons 43 drivers/infiniband/sw/siw/siw_qp.c .ctrl.mpa_len = htons(sizeof(struct iwarp_rdma_rreq) - 2), htons 50 drivers/infiniband/sw/siw/siw_qp.c .ctrl.mpa_len = htons(sizeof(struct iwarp_rdma_rresp) - 2), htons 58 drivers/infiniband/sw/siw/siw_qp.c .ctrl.mpa_len = htons(sizeof(struct iwarp_send) - 2), htons 65 drivers/infiniband/sw/siw/siw_qp.c .ctrl.mpa_len = htons(sizeof(struct iwarp_send_inv) - 2), htons 72 drivers/infiniband/sw/siw/siw_qp.c .ctrl.mpa_len = htons(sizeof(struct iwarp_send) - 2), htons 79 drivers/infiniband/sw/siw/siw_qp.c .ctrl.mpa_len = htons(sizeof(struct iwarp_send_inv) - 2), htons 86 drivers/infiniband/sw/siw/siw_qp.c .ctrl.mpa_len = htons(sizeof(struct iwarp_terminate) - 2), htons 234 drivers/infiniband/sw/siw/siw_qp_tx.c htons(c_tx->ctrl_len + data - MPA_HDR_SIZE); htons 725 drivers/infiniband/sw/siw/siw_qp_tx.c htons(c_tx->ctrl_len + data_len - MPA_HDR_SIZE); htons 1442 drivers/infiniband/ulp/ipoib/ipoib_cm.c if (skb->protocol == htons(ETH_P_IP)) { htons 1447 drivers/infiniband/ulp/ipoib/ipoib_cm.c else if (skb->protocol == htons(ETH_P_IPV6)) { htons 1109 drivers/infiniband/ulp/ipoib/ipoib_main.c if ((header->proto != htons(ETH_P_IP)) && htons 1110 drivers/infiniband/ulp/ipoib/ipoib_main.c (header->proto != htons(ETH_P_IPV6)) && htons 1111 drivers/infiniband/ulp/ipoib/ipoib_main.c (header->proto != htons(ETH_P_ARP)) && htons 1112 drivers/infiniband/ulp/ipoib/ipoib_main.c (header->proto != htons(ETH_P_RARP)) && htons 1113 drivers/infiniband/ulp/ipoib/ipoib_main.c (header->proto != htons(ETH_P_TIPC))) { htons 1132 drivers/infiniband/ulp/ipoib/ipoib_main.c case htons(ETH_P_IP): htons 1133 drivers/infiniband/ulp/ipoib/ipoib_main.c case htons(ETH_P_IPV6): htons 1134 drivers/infiniband/ulp/ipoib/ipoib_main.c case htons(ETH_P_TIPC): htons 1142 drivers/infiniband/ulp/ipoib/ipoib_main.c case htons(ETH_P_ARP): htons 1143 drivers/infiniband/ulp/ipoib/ipoib_main.c case htons(ETH_P_RARP): htons 1210 drivers/infiniband/ulp/ipoib/ipoib_main.c header->proto = htons(type); htons 417 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c case htons(ETH_P_IPV6): htons 428 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c case htons(ETH_P_IP): htons 668 drivers/isdn/mISDN/l1oip_core.c hc->sin_local.sin_port = htons((unsigned short)hc->localport); htons 673 drivers/isdn/mISDN/l1oip_core.c hc->sin_remote.sin_port = htons((unsigned short)hc->remoteport); htons 157 drivers/media/dvb-core/dvb_net.c return htons(ETH_P_802_3); htons 162 drivers/media/dvb-core/dvb_net.c return htons(ETH_P_802_2); htons 737 drivers/media/dvb-core/dvb_net.c h->ethh->h_proto = htons(h->priv->ule_sndu_type); htons 819 drivers/media/dvb-core/dvb_net.c __be16 ulen = htons(h.priv->ule_sndu_len); htons 820 drivers/media/dvb-core/dvb_net.c __be16 utype = htons(h.priv->ule_sndu_type); htons 832 drivers/media/dvb-core/dvb_net.c ulen |= htons(0x8000); htons 77 drivers/media/platform/vicodec/codec-fwht.c *output++ = (blocktype == PBLOCK ? htons(PFRAME_BIT) : 0); htons 97 drivers/media/platform/vicodec/codec-fwht.c *output++ = htons((cnt | tmp << 4)); htons 102 drivers/media/platform/vicodec/codec-fwht.c *output = htons(ALL_ZEROS | 0); htons 691 drivers/media/platform/vicodec/codec-fwht.c __be16 pframe_bit = htons(PFRAME_BIT); htons 739 drivers/media/platform/vicodec/codec-fwht.c *last_rlco = htons(hdr + 2); htons 442 drivers/media/usb/ttusb-dec/ttusb_dec.c __be16 pcr = htons(dec->pid[DMX_PES_PCR]); htons 443 drivers/media/usb/ttusb-dec/ttusb_dec.c __be16 audio = htons(dec->pid[DMX_PES_AUDIO]); htons 444 drivers/media/usb/ttusb-dec/ttusb_dec.c __be16 video = htons(dec->pid[DMX_PES_VIDEO]); htons 530 drivers/media/usb/ttusb-dec/ttusb_dec.c v_pes_payload_length = htons(dec->v_pes_length - 6 + htons 1055 drivers/media/usb/ttusb-dec/ttusb_dec.c pid = htons(dvbdmxfeed->pid); htons 1362 drivers/media/usb/ttusb-dec/ttusb_dec.c firmware_csum_ns = htons(firmware_csum); htons 1495 drivers/message/fusion/mptlan.c if (fch->dtype == htons(0xffff)) { htons 1529 drivers/message/fusion/mptlan.c (fcllc->ethertype == htons(ETH_P_IP) || htons 1530 drivers/message/fusion/mptlan.c fcllc->ethertype == htons(ETH_P_ARP))) { htons 1535 drivers/message/fusion/mptlan.c return htons(ETH_P_802_2); htons 799 drivers/net/appletalk/cops.c skb->protocol = htons(ETH_P_LOCALTALK); htons 155 drivers/net/appletalk/ipddp.c ddp->deh_len_hops = htons(skb->len + (1<<10)); htons 179 drivers/net/appletalk/ipddp.c skb->protocol = htons(ETH_P_ATALK); /* Protocol has changed */ htons 764 drivers/net/appletalk/ltpc.c skb->protocol = htons(ETH_P_LOCALTALK); htons 107 drivers/net/arcnet/rfc1051.c return htons(ETH_P_IP); htons 109 drivers/net/arcnet/rfc1051.c return htons(ETH_P_ARP); htons 117 drivers/net/arcnet/rfc1051.c return htons(ETH_P_IP); htons 111 drivers/net/arcnet/rfc1201.c return htons(ETH_P_IP); htons 113 drivers/net/arcnet/rfc1201.c return htons(ETH_P_IPV6); htons 115 drivers/net/arcnet/rfc1201.c return htons(ETH_P_ARP); htons 117 drivers/net/arcnet/rfc1201.c return htons(ETH_P_RARP); htons 121 drivers/net/arcnet/rfc1201.c return htons(ETH_P_802_3); htons 128 drivers/net/arcnet/rfc1201.c return htons(ETH_P_IP); htons 423 drivers/net/arcnet/rfc1201.c soft->sequence = htons(lp->rfc1201.sequence++); htons 458 drivers/net/arcnet/rfc1201.c excsoft.sequence = htons(0xffff); htons 788 drivers/net/bonding/bond_3ad.c lacpdu->actor_system_priority = htons(port->actor_system_priority); htons 790 drivers/net/bonding/bond_3ad.c lacpdu->actor_key = htons(port->actor_oper_port_key); htons 791 drivers/net/bonding/bond_3ad.c lacpdu->actor_port_priority = htons(port->actor_port_priority); htons 792 drivers/net/bonding/bond_3ad.c lacpdu->actor_port = htons(port->actor_port_number); htons 803 drivers/net/bonding/bond_3ad.c lacpdu->partner_system_priority = htons(partner->system_priority); htons 805 drivers/net/bonding/bond_3ad.c lacpdu->partner_key = htons(partner->key); htons 806 drivers/net/bonding/bond_3ad.c lacpdu->partner_port_priority = htons(partner->port_priority); htons 807 drivers/net/bonding/bond_3ad.c lacpdu->partner_port = htons(partner->port_number); htons 1844 drivers/net/bonding/bond_3ad.c .collector_max_delay = htons(AD_COLLECTOR_MAX_DELAY), htons 295 drivers/net/bonding/bond_alb.c if (arp->op_code == htons(ARPOP_REPLY)) { htons 449 drivers/net/bonding/bond_alb.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), htons 665 drivers/net/bonding/bond_alb.c if (arp->op_code == htons(ARPOP_REPLY)) { htons 673 drivers/net/bonding/bond_alb.c } else if (arp->op_code == htons(ARPOP_REQUEST)) { htons 1350 drivers/net/bonding/bond_alb.c case htons(ETH_P_IP): htons 1351 drivers/net/bonding/bond_alb.c case htons(ETH_P_IPX): htons 1353 drivers/net/bonding/bond_alb.c case htons(ETH_P_IPV6): htons 2571 drivers/net/bonding/bond_main.c arp->ar_hrd != htons(ARPHRD_ETHER) || htons 2572 drivers/net/bonding/bond_main.c arp->ar_pro != htons(ETH_P_IP) || htons 2619 drivers/net/bonding/bond_main.c else if (curr_arp_slave && (arp->ar_op == htons(ARPOP_REPLY)) && htons 3265 drivers/net/bonding/bond_main.c if (skb->protocol == htons(ETH_P_IP)) { htons 3273 drivers/net/bonding/bond_main.c } else if (skb->protocol == htons(ETH_P_IPV6)) { htons 3922 drivers/net/bonding/bond_main.c if (skb->protocol == htons(ETH_P_IP)) { htons 457 drivers/net/caif/caif_hsi.c skb->protocol = htons(ETH_P_CAIF); htons 586 drivers/net/caif/caif_hsi.c skb->protocol = htons(ETH_P_CAIF); htons 196 drivers/net/caif/caif_serial.c skb->protocol = htons(ETH_P_CAIF); htons 555 drivers/net/caif/caif_spi.c skb->protocol = htons(ETH_P_CAIF); htons 295 drivers/net/caif/caif_virtio.c skb->protocol = htons(ETH_P_CAIF); htons 446 drivers/net/can/dev.c (skb->protocol != htons(ETH_P_CAN) && htons 447 drivers/net/can/dev.c skb->protocol != htons(ETH_P_CANFD))) { htons 648 drivers/net/can/dev.c skb->protocol = htons(ETH_P_CAN); htons 676 drivers/net/can/dev.c skb->protocol = htons(ETH_P_CANFD); htons 1305 drivers/net/can/janz-ican3.c skb->protocol = htons(ETH_P_CAN); htons 210 drivers/net/can/slcan.c skb->protocol = htons(ETH_P_CAN); htons 247 drivers/net/ethernet/3com/3c509.c phys_addr[i] = htons(id_read_eeprom(i)); htons 421 drivers/net/ethernet/3com/3c509.c phys_addr[i] = htons(read_eeprom(ioaddr, i)); htons 586 drivers/net/ethernet/3com/3c509.c phys_addr[i] = htons(read_eeprom(ioaddr, i)); htons 647 drivers/net/ethernet/3com/3c515.c phys_addr[i] = htons(eeprom[i]); htons 350 drivers/net/ethernet/3com/3c574_cs.c phys_addr[i] = htons(le16_to_cpu(buf[i * 2])); htons 356 drivers/net/ethernet/3com/3c574_cs.c phys_addr[i] = htons(read_eeprom(ioaddr, i + 10)); htons 357 drivers/net/ethernet/3com/3c574_cs.c if (phys_addr[0] == htons(0x6060)) { htons 289 drivers/net/ethernet/3com/3c589_cs.c phys_addr[i] = htons(le16_to_cpu(buf[i*2])); htons 294 drivers/net/ethernet/3com/3c589_cs.c phys_addr[i] = htons(read_eeprom(ioaddr, i)); htons 295 drivers/net/ethernet/3com/3c589_cs.c if (phys_addr[0] == htons(0x6060)) { htons 1287 drivers/net/ethernet/3com/3c59x.c ((__be16 *)dev->dev_addr)[i] = htons(eeprom[i + 10]); htons 775 drivers/net/ethernet/3com/typhoon.c cpu_to_le32(htons(skb_vlan_tag_get(skb)) << htons 1697 drivers/net/ethernet/3com/typhoon.c __vlan_hwaccel_put_tag(new_skb, htons(ETH_P_8021Q), htons 2401 drivers/net/ethernet/3com/typhoon.c *(__be16 *)&dev->dev_addr[0] = htons(le16_to_cpu(xp_resp[0].parm1)); htons 1534 drivers/net/ethernet/adaptec/starfire.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vlid); htons 1998 drivers/net/ethernet/alteon/acenic.c skb->csum = htons(csum); htons 2006 drivers/net/ethernet/alteon/acenic.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), retdesc->vlan); htons 362 drivers/net/ethernet/altera/altera_tse_main.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vid); htons 2081 drivers/net/ethernet/amazon/ena/ena_netdev.c if (ip_hdr(skb)->frag_off & htons(IP_DF)) htons 755 drivers/net/ethernet/amd/amd8111e.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vlan_tag); htons 1790 drivers/net/ethernet/amd/xgbe/xgbe-drv.c case htons(ETH_P_IP): htons 1795 drivers/net/ethernet/amd/xgbe/xgbe-drv.c case htons(ETH_P_IPV6): htons 1806 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if ((skb->protocol == htons(ETH_P_IP)) && htons 1810 drivers/net/ethernet/amd/xgbe/xgbe-drv.c else if ((skb->protocol == htons(ETH_P_IPV6)) && htons 2802 drivers/net/ethernet/amd/xgbe/xgbe-drv.c (skb->protocol == htons(ETH_P_8021Q))) htons 2831 drivers/net/ethernet/amd/xgbe/xgbe-drv.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), htons 171 drivers/net/ethernet/apm/xgene/xgene_enet_main.c return (eth->h_proto == htons(ETH_P_8021Q)) ? VLAN_ETH_HLEN : ETH_HLEN; htons 319 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (unlikely(skb->protocol != htons(ETH_P_IP)) && htons 320 drivers/net/ethernet/apm/xgene/xgene_enet_main.c unlikely(skb->protocol != htons(ETH_P_8021Q))) htons 596 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (skb->protocol != htons(ETH_P_IP)) htons 651 drivers/net/ethernet/apm/xgene/xgene_enet_main.c skb->protocol == htons(ETH_P_8021Q)) htons 482 drivers/net/ethernet/aquantia/atlantic/aq_nic.c dx_buff->is_ip_cso = (htons(ETH_P_IP) == skb->protocol) ? htons 417 drivers/net/ethernet/aquantia/atlantic/aq_ring.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), htons 1411 drivers/net/ethernet/atheros/alx/main.c if (skb->protocol == htons(ETH_P_IP)) { htons 61 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c *(u16 *) ð_addr[0] = htons((u16)addr[1]); htons 1856 drivers/net/ethernet/atheros/atl1c/atl1c_main.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vlan); htons 1463 drivers/net/ethernet/atheros/atl1e/atl1e_main.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vlan_tag); htons 1606 drivers/net/ethernet/atheros/atl1e/atl1e_main.c if (skb->protocol == htons(ETH_P_IP) || htons 1883 drivers/net/ethernet/atheros/atl1e/atl1e_main.c if (skb->protocol == htons(ETH_P_8021Q)) htons 2014 drivers/net/ethernet/atheros/atlx/atl1.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vlan_tag); htons 2113 drivers/net/ethernet/atheros/atlx/atl1.c if (skb->protocol == htons(ETH_P_IP)) { htons 2369 drivers/net/ethernet/atheros/atlx/atl1.c if (skb->protocol == htons(ETH_P_IP)) { htons 440 drivers/net/ethernet/atheros/atlx/atl2.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vlan_tag); htons 1244 drivers/net/ethernet/broadcom/bcmsysport.c case htons(ETH_P_IP): htons 1247 drivers/net/ethernet/broadcom/bcmsysport.c case htons(ETH_P_IPV6): htons 1262 drivers/net/ethernet/broadcom/bcmsysport.c ip_ver == htons(ETH_P_IP)) htons 3253 drivers/net/ethernet/broadcom/bnx2.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), rx_hdr->l2_fhdr_vlan_tag); htons 3258 drivers/net/ethernet/broadcom/bnx2.c skb->protocol != htons(0x8100) && htons 3259 drivers/net/ethernet/broadcom/bnx2.c skb->protocol != htons(ETH_P_8021AD)) { htons 804 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), tpa_info->vlan_tag); htons 1088 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), htons 3347 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c if (protocol == htons(ETH_P_IPV6)) { htons 2558 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c htons(ETH_P_8021Q)); htons 2835 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c if (vlan_proto != htons(ETH_P_8021Q)) htons 396 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (skb->vlan_proto == htons(ETH_P_8021Q)) htons 1299 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (ip_proto == htons(ETH_P_IP)) { htons 1347 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (proto != htons(ETH_P_IP) && proto != htons(ETH_P_IPV6)) htons 1624 drivers/net/ethernet/broadcom/bnxt/bnxt.c __vlan_hwaccel_put_tag(skb, htons(vlan_proto), vtag); htons 1842 drivers/net/ethernet/broadcom/bnxt/bnxt.c __vlan_hwaccel_put_tag(skb, htons(vlan_proto), vtag); htons 4629 drivers/net/ethernet/broadcom/bnxt/bnxt.c req.ethertype = htons(ETH_P_IP); htons 4634 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (keys->basic.n_proto == htons(ETH_P_IPV6)) { htons 4637 drivers/net/ethernet/broadcom/bnxt/bnxt.c req.ethertype = htons(ETH_P_IPV6); htons 11013 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (keys1->basic.n_proto == htons(ETH_P_IP)) { htons 11070 drivers/net/ethernet/broadcom/bnxt/bnxt.c if ((fkeys->basic.n_proto != htons(ETH_P_IP) && htons 11071 drivers/net/ethernet/broadcom/bnxt/bnxt.c fkeys->basic.n_proto != htons(ETH_P_IPV6)) || htons 11077 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (fkeys->basic.n_proto == htons(ETH_P_IPV6) && htons 950 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c if (fkeys->basic.n_proto == htons(ETH_P_IP)) { htons 248 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c if (vlan_proto != htons(ETH_P_8021Q)) htons 88 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c actions->push_vlan_tci = htons(act->vlan.vid); htons 194 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c if (match.key->n_proto == htons(ETH_P_IP) || htons 195 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c match.key->n_proto == htons(ETH_P_IPV6)) { htons 222 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c flow->l2_key.inner_vlan_tpid = htons(ETH_P_8021Q); htons 223 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c flow->l2_mask.inner_vlan_tpid = htons(0xffff); htons 433 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c flow_flags |= flow->l2_key.ether_type == htons(ETH_P_IP) ? htons 463 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c req.l4_src_port = htons(flow->l4_key.icmp.type); htons 464 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c req.l4_src_port_mask = htons(flow->l4_mask.icmp.type); htons 465 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c req.l4_dst_port = htons(flow->l4_key.icmp.code); htons 466 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c req.l4_dst_port_mask = htons(flow->l4_mask.icmp.code); htons 555 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c req.ethertype = htons(ETH_P_IP); htons 989 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c l2_info->inner_vlan_tci = htons(vlan->vlan_id); htons 1514 drivers/net/ethernet/broadcom/genet/bcmgenet.c case htons(ETH_P_IP): htons 1517 drivers/net/ethernet/broadcom/genet/bcmgenet.c case htons(ETH_P_IPV6): htons 1534 drivers/net/ethernet/broadcom/genet/bcmgenet.c ip_ver == htons(ETH_P_IP)) htons 6946 drivers/net/ethernet/broadcom/tg3.c skb->protocol != htons(ETH_P_8021Q) && htons 6947 drivers/net/ethernet/broadcom/tg3.c skb->protocol != htons(ETH_P_8021AD)) { htons 6954 drivers/net/ethernet/broadcom/tg3.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), htons 7971 drivers/net/ethernet/broadcom/tg3.c if (skb->protocol == htons(ETH_P_8021Q) || htons 7972 drivers/net/ethernet/broadcom/tg3.c skb->protocol == htons(ETH_P_8021AD)) { htons 7988 drivers/net/ethernet/broadcom/tg3.c iph->tot_len = htons(mss + hdr_len); htons 8034 drivers/net/ethernet/broadcom/tg3.c if (skb->protocol == htons(ETH_P_8021Q) || htons 8035 drivers/net/ethernet/broadcom/tg3.c skb->protocol == htons(ETH_P_8021AD)) { htons 13476 drivers/net/ethernet/broadcom/tg3.c iph->tot_len = htons((u16)(mss + hdr_len)); htons 1925 drivers/net/ethernet/brocade/bna/bfa_ioc.c enable_req.clscode = htons(ioc->clscode); htons 1926 drivers/net/ethernet/brocade/bna/bfa_ioc.c enable_req.rsvd = htons(0); htons 1939 drivers/net/ethernet/brocade/bna/bfa_ioc.c disable_req.clscode = htons(ioc->clscode); htons 1940 drivers/net/ethernet/brocade/bna/bfa_ioc.c disable_req.rsvd = htons(0); htons 193 drivers/net/ethernet/brocade/bna/bfa_msgq.c dbell->idx.cmdq_pi = htons(cmdq->producer_index); htons 286 drivers/net/ethernet/brocade/bna/bfa_msgq.c rsp->mh.mtag.i2htok = htons(cmdq->token); htons 451 drivers/net/ethernet/brocade/bna/bfa_msgq.c dbell->idx.rspq_ci = htons(rspq->consumer_index); htons 518 drivers/net/ethernet/brocade/bna/bfa_msgq.c msgq_cfg->cmdq.q_depth = htons(msgq->cmdq.depth); htons 520 drivers/net/ethernet/brocade/bna/bfa_msgq.c msgq_cfg->rspq.q_depth = htons(msgq->rspq.depth); htons 412 drivers/net/ethernet/brocade/bna/bna_enet.c admin_up_req->mh.num_entries = htons( htons 429 drivers/net/ethernet/brocade/bna/bna_enet.c admin_down_req->mh.num_entries = htons( htons 446 drivers/net/ethernet/brocade/bna/bna_enet.c lpbk_up_req->mh.num_entries = htons( htons 467 drivers/net/ethernet/brocade/bna/bna_enet.c lpbk_down_req->mh.num_entries = htons( htons 1164 drivers/net/ethernet/brocade/bna/bna_enet.c pause_req->mh.num_entries = htons( htons 1626 drivers/net/ethernet/brocade/bna/bna_enet.c attr_req->mh.num_entries = htons( htons 1848 drivers/net/ethernet/brocade/bna/bna_enet.c stats_req->mh.num_entries = htons( htons 1850 drivers/net/ethernet/brocade/bna/bna_enet.c stats_req->stats_mask = htons(BFI_ENET_STATS_ALL); htons 185 drivers/net/ethernet/brocade/bna/bna_tx_rx.c req->mh.num_entries = htons( htons 201 drivers/net/ethernet/brocade/bna/bna_tx_rx.c req->mh.num_entries = htons( htons 217 drivers/net/ethernet/brocade/bna/bna_tx_rx.c req->mh.num_entries = htons( htons 219 drivers/net/ethernet/brocade/bna/bna_tx_rx.c req->handle = htons(handle); htons 232 drivers/net/ethernet/brocade/bna/bna_tx_rx.c req->mh.num_entries = htons( htons 247 drivers/net/ethernet/brocade/bna/bna_tx_rx.c req->mh.num_entries = htons( htons 264 drivers/net/ethernet/brocade/bna/bna_tx_rx.c req->mh.num_entries = htons( htons 287 drivers/net/ethernet/brocade/bna/bna_tx_rx.c req->mh.num_entries = htons( htons 302 drivers/net/ethernet/brocade/bna/bna_tx_rx.c req->mh.num_entries = htons( htons 304 drivers/net/ethernet/brocade/bna/bna_tx_rx.c req->size = htons(rxf->rit_size); htons 319 drivers/net/ethernet/brocade/bna/bna_tx_rx.c req->mh.num_entries = htons( htons 338 drivers/net/ethernet/brocade/bna/bna_tx_rx.c req->mh.num_entries = htons( htons 1297 drivers/net/ethernet/brocade/bna/bna_tx_rx.c (bfi_q)->pages = htons((u16)(bna_qpt)->page_count); \ htons 1298 drivers/net/ethernet/brocade/bna/bna_tx_rx.c (bfi_q)->page_sz = htons((u16)(bna_qpt)->page_size);\ htons 1622 drivers/net/ethernet/brocade/bna/bna_tx_rx.c cfg_req->mh.num_entries = htons( htons 1638 drivers/net/ethernet/brocade/bna/bna_tx_rx.c htons((u16)q1->buffer_size); htons 1657 drivers/net/ethernet/brocade/bna/bna_tx_rx.c htons((u16)q0->buffer_size); htons 1672 drivers/net/ethernet/brocade/bna/bna_tx_rx.c htons((u16)rxp->cq.ib.intr_vector); htons 1721 drivers/net/ethernet/brocade/bna/bna_tx_rx.c req->mh.num_entries = htons( htons 3094 drivers/net/ethernet/brocade/bna/bna_tx_rx.c cfg_req->mh.num_entries = htons( htons 3109 drivers/net/ethernet/brocade/bna/bna_tx_rx.c htons((u16)txq->ib.intr_vector); htons 3125 drivers/net/ethernet/brocade/bna/bna_tx_rx.c cfg_req->tx_cfg.vlan_id = htons((u16)tx->txf_vlan_id); htons 3141 drivers/net/ethernet/brocade/bna/bna_tx_rx.c req->mh.num_entries = htons( htons 712 drivers/net/ethernet/brocade/bna/bnad.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), ntohs(cmpl->vlan_tag)); htons 2495 drivers/net/ethernet/brocade/bna/bnad.c if (vlan_get_protocol(skb) == htons(ETH_P_IP)) { htons 2824 drivers/net/ethernet/brocade/bna/bnad.c txqent->hdr.wi.vlan_tag = htons(vlan_tag); htons 2834 drivers/net/ethernet/brocade/bna/bnad.c txqent->hdr.wi.opcode = htons(BNA_TXQ_WI_SEND); htons 2838 drivers/net/ethernet/brocade/bna/bnad.c txqent->hdr.wi.opcode = htons(BNA_TXQ_WI_SEND_LSO); htons 2839 drivers/net/ethernet/brocade/bna/bnad.c txqent->hdr.wi.lso_mss = htons(gso_size); htons 2849 drivers/net/ethernet/brocade/bna/bnad.c htons(BNA_TXQ_WI_L4_HDR_N_OFFSET( htons 2852 drivers/net/ethernet/brocade/bna/bnad.c txqent->hdr.wi.opcode = htons(BNA_TXQ_WI_SEND); htons 2864 drivers/net/ethernet/brocade/bna/bnad.c if (net_proto == htons(ETH_P_IP)) htons 2867 drivers/net/ethernet/brocade/bna/bnad.c else if (net_proto == htons(ETH_P_IPV6)) { htons 2875 drivers/net/ethernet/brocade/bna/bnad.c htons(BNA_TXQ_WI_L4_HDR_N_OFFSET htons 2889 drivers/net/ethernet/brocade/bna/bnad.c htons(BNA_TXQ_WI_L4_HDR_N_OFFSET htons 2908 drivers/net/ethernet/brocade/bna/bnad.c txqent->hdr.wi.flags = htons(flags); htons 3030 drivers/net/ethernet/brocade/bna/bnad.c txqent->vector[0].length = htons(len); htons 3054 drivers/net/ethernet/brocade/bna/bnad.c txqent->hdr.wi_ext.opcode = htons(BNA_TXQ_WI_EXTENSION); htons 3071 drivers/net/ethernet/brocade/bna/bnad.c txqent->vector[vect_id].length = htons(size); htons 3008 drivers/net/ethernet/cadence/macb_main.c htons(fs->h_u.tcp_ip4_spec.psrc), htons(fs->h_u.tcp_ip4_spec.pdst)); htons 3061 drivers/net/ethernet/cadence/macb_main.c htons(fs->h_u.tcp_ip4_spec.psrc), htons 3062 drivers/net/ethernet/cadence/macb_main.c htons(fs->h_u.tcp_ip4_spec.pdst)); htons 687 drivers/net/ethernet/cavium/liquidio/lio_core.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vtag); htons 2803 drivers/net/ethernet/cavium/liquidio/lio_main.c htons(ti->port), htons 2815 drivers/net/ethernet/cavium/liquidio/lio_main.c htons(ti->port), htons 2944 drivers/net/ethernet/cavium/liquidio/lio_main.c if (vlan_proto != htons(ETH_P_8021Q)) htons 1847 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c htons(ti->port), htons 1859 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c htons(ti->port), htons 839 drivers/net/ethernet/cavium/thunder/nicvf_main.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), htons 1378 drivers/net/ethernet/chelsio/cxgb/sge.c skb->protocol == htons(ETH_P_IP) && htons 1387 drivers/net/ethernet/chelsio/cxgb/sge.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), ntohs(p->vlan)); htons 1764 drivers/net/ethernet/chelsio/cxgb/sge.c return e->h_proto == htons(ETH_P_8021Q) ? VLAN_ETH_HLEN : ETH_HLEN; htons 1779 drivers/net/ethernet/chelsio/cxgb/sge.c if (skb->protocol == htons(ETH_P_CPL5)) htons 1808 drivers/net/ethernet/chelsio/cxgb/sge.c hdr->eth_type_mss = htons(MK_ETH_TYPE_MSS(eth_type, htons 1840 drivers/net/ethernet/chelsio/cxgb/sge.c if (skb->protocol == htons(ETH_P_ARP) && htons 1841 drivers/net/ethernet/chelsio/cxgb/sge.c arp_hdr(skb)->ar_op == htons(ARPOP_REQUEST)) { htons 1863 drivers/net/ethernet/chelsio/cxgb/sge.c cpl->vlan = htons(skb_vlan_tag_get(skb)); htons 188 drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c dev = __vlan_find_dev_deep_rcu(dev, htons(ETH_P_8021Q), vlan); htons 920 drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c skb->protocol = htons(0xffff); htons 1104 drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c req->word = htons(W_TCB_L2T_IX); htons 2030 drivers/net/ethernet/chelsio/cxgb3/sge.c if (arp->ar_op != htons(ARPOP_REQUEST)) htons 2051 drivers/net/ethernet/chelsio/cxgb3/sge.c return skb->protocol == htons(ETH_P_ARP); htons 2089 drivers/net/ethernet/chelsio/cxgb3/sge.c p->csum == htons(0xffff) && !p->fragment) { htons 2098 drivers/net/ethernet/chelsio/cxgb3/sge.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), ntohs(p->vlan)); htons 2173 drivers/net/ethernet/chelsio/cxgb3/sge.c cpl->csum_valid && cpl->csum == htons(0xffff)) { htons 2200 drivers/net/ethernet/chelsio/cxgb3/sge.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), ntohs(cpl->vlan)); htons 239 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c root_dev = __vlan_find_dev_deep_rcu(dev, htons(ETH_P_8021Q), i); htons 2205 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c htons(FW_LDST_CMD_FID_V(FW_LDST_MPS_RPLC) | htons 1787 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c htons(FW_LDST_CMD_FID_V(FW_LDST_MPS_RPLC) | htons 69 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c req->reply_ctrl = htons(REPLY_CHAN_V(0) | htons 72 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c req->word_cookie = htons(TCB_WORD_V(word) | TCB_COOKIE_V(ftid)); htons 133 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c req->reply_ctrl = htons(NO_REPLY_V(no_reply) | REPLY_CHAN_V(0) | htons 135 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c req->word_cookie = htons(TCB_WORD_V(word) | TCB_COOKIE_V(cookie)); htons 619 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->ethtype = htons(f->fs.val.ethtype); htons 620 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->ethtypem = htons(f->fs.mask.ethtype); htons 630 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c htons(FW_FILTER_WR_RX_CHAN_V(0) | htons 645 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->ivlan = htons(f->fs.val.ivlan); htons 646 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->ivlanm = htons(f->fs.mask.ivlan); htons 647 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->ovlan = htons(f->fs.val.ovlan); htons 648 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->ovlanm = htons(f->fs.mask.ovlan); htons 653 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->lp = htons(f->fs.val.lport); htons 654 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->lpm = htons(f->fs.mask.lport); htons 655 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->fp = htons(f->fs.val.fport); htons 656 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->fpm = htons(f->fs.mask.fport); htons 666 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->newlport = htons(f->fs.nat_lport); htons 667 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->newfport = htons(f->fs.nat_fport); htons 1085 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c if (skb->protocol == htons(ETH_P_FCOE)) htons 1544 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c req->peer_port = htons(0); htons 1585 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c req->peer_port = htons(0); htons 1616 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c req->reply_ctrl = htons(NO_REPLY_V(0) | (ipv6 ? LISTSVR_IPV6_V(1) : htons 2962 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c if (vlan_proto != htons(ETH_P_8021Q) || qos != 0) htons 4691 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c (caps_cmd.niccaps & htons(FW_CAPS_CONFIG_NIC_HASHFILTER))) { htons 4728 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c if (caps_cmd.niccaps & htons(FW_CAPS_CONFIG_NIC_HASHFILTER)) { htons 65 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c likely(skb->protocol == htons(ETH_P_IP)) && htons 67 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c uh->dest == htons(PTP_EVENT_PORT); htons 89 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c return uh->dest == htons(PTP_EVENT_PORT) && htons 90 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c uh->source == htons(PTP_EVENT_PORT); htons 164 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c if (protocol != htons(ETH_P_IP) && protocol != htons(ETH_P_IPV6)) htons 193 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c if (protocol == htons(ETH_P_IPV6)) { htons 155 drivers/net/ethernet/chelsio/cxgb4/l2t.c req->params = htons(L2T_W_PORT_V(e->lport) | L2T_W_NOREPLY_V(!sync)); htons 156 drivers/net/ethernet/chelsio/cxgb4/l2t.c req->l2t_idx = htons(l2t_idx); htons 157 drivers/net/ethernet/chelsio/cxgb4/l2t.c req->vlan = htons(e->vlan); htons 1191 drivers/net/ethernet/chelsio/cxgb4/sge.c if (skb->protocol != htons(ETH_P_FCOE)) htons 1224 drivers/net/ethernet/chelsio/cxgb4/sge.c skb->inner_protocol != htons(ETH_P_TEB)) htons 1228 drivers/net/ethernet/chelsio/cxgb4/sge.c case htons(ETH_P_IP): htons 1231 drivers/net/ethernet/chelsio/cxgb4/sge.c case htons(ETH_P_IPV6): htons 1285 drivers/net/ethernet/chelsio/cxgb4/sge.c htons(CPL_TX_TNL_LSO_UDPCHKCLROUT_F | htons 1294 drivers/net/ethernet/chelsio/cxgb4/sge.c htons(CPL_TX_TNL_LSO_TNLHDRLEN_V(val) | htons 1305 drivers/net/ethernet/chelsio/cxgb4/sge.c tnl_lso->IpIdOffset = htons(0); htons 1307 drivers/net/ethernet/chelsio/cxgb4/sge.c tnl_lso->IpIdSplit_to_Mss = htons(CPL_TX_TNL_LSO_MSS_V(ssi->gso_size)); htons 1525 drivers/net/ethernet/chelsio/cxgb4/sge.c lso->ipid_ofst = htons(0); htons 1526 drivers/net/ethernet/chelsio/cxgb4/sge.c lso->mss = htons(ssi->gso_size); htons 1579 drivers/net/ethernet/chelsio/cxgb4/sge.c if (skb->protocol == htons(ETH_P_FCOE)) htons 1596 drivers/net/ethernet/chelsio/cxgb4/sge.c cpl->pack = htons(0); htons 1597 drivers/net/ethernet/chelsio/cxgb4/sge.c cpl->len = htons(skb->len); htons 2711 drivers/net/ethernet/chelsio/cxgb4/sge.c skb->protocol = htons(0xffff); htons 2772 drivers/net/ethernet/chelsio/cxgb4/sge.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), ntohs(pkt->vlan)); htons 3051 drivers/net/ethernet/chelsio/cxgb4/sge.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), ntohs(pkt->vlan)); htons 3543 drivers/net/ethernet/chelsio/cxgb4/sge.c c.iqdroprss_to_iqesize = htons(FW_IQ_CMD_IQPCIECH_V(pi->tx_chan) | htons 3547 drivers/net/ethernet/chelsio/cxgb4/sge.c c.iqsize = htons(iq->size); htons 3594 drivers/net/ethernet/chelsio/cxgb4/sge.c htons(FW_IQ_CMD_FL0FBMIN_V(chip_ver <= CHELSIO_T5 ? htons 3600 drivers/net/ethernet/chelsio/cxgb4/sge.c c.fl0size = htons(flsz); htons 1668 drivers/net/ethernet/chelsio/cxgb4vf/sge.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), htons 182 drivers/net/ethernet/cisco/enic/enic_clsf.c if (!res || keys.basic.n_proto != htons(ETH_P_IP) || htons 294 drivers/net/ethernet/cisco/enic/enic_main.c case htons(ETH_P_IPV6): htons 299 drivers/net/ethernet/cisco/enic/enic_main.c case htons(ETH_P_IP): htons 1444 drivers/net/ethernet/cisco/enic/enic_main.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vlan_tci); htons 75 drivers/net/ethernet/cisco/enic/enic_pp.c const __be16 os_type = htons(VIC_GENERIC_PROV_OS_TYPE_LINUX); htons 65 drivers/net/ethernet/cisco/enic/vnic_vic.c tlv->type = htons(type); htons 66 drivers/net/ethernet/cisco/enic/vnic_vic.c tlv->length = htons(length); htons 1155 drivers/net/ethernet/cortina/gemini.c if (skb->protocol == htons(ETH_P_8021Q)) htons 1169 drivers/net/ethernet/cortina/gemini.c if (skb->protocol == htons(ETH_P_IP)) { htons 923 drivers/net/ethernet/emulex/benet/be.h return skb->protocol == htons(ETH_P_IP) && ip_hdr(skb)->version == 4; htons 1072 drivers/net/ethernet/emulex/benet/be_main.c skb = vlan_insert_tag_set_proto(skb, htons(ETH_P_8021Q), htons 1082 drivers/net/ethernet/emulex/benet/be_main.c skb = vlan_insert_tag_set_proto(skb, htons(ETH_P_8021Q), htons 1097 drivers/net/ethernet/emulex/benet/be_main.c if (eh->h_proto == htons(ETH_P_IPV6)) { htons 1150 drivers/net/ethernet/emulex/benet/be_main.c veh->h_vlan_proto == htons(ETH_P_8021Q)) htons 1269 drivers/net/ethernet/emulex/benet/be_main.c #define is_arp(skb) (skb->protocol == htons(ETH_P_ARP)) htons 1318 drivers/net/ethernet/emulex/benet/be_main.c if ((*skb)->protocol == htons(ETH_P_IPV6)) { htons 1989 drivers/net/ethernet/emulex/benet/be_main.c if (vlan_proto != htons(ETH_P_8021Q)) htons 2424 drivers/net/ethernet/emulex/benet/be_main.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), rxcp->vlan_tag); htons 2481 drivers/net/ethernet/emulex/benet/be_main.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), rxcp->vlan_tag); htons 5238 drivers/net/ethernet/emulex/benet/be_main.c case htons(ETH_P_IP): htons 5241 drivers/net/ethernet/emulex/benet/be_main.c case htons(ETH_P_IPV6): htons 5250 drivers/net/ethernet/emulex/benet/be_main.c skb->inner_protocol != htons(ETH_P_TEB) || htons 535 drivers/net/ethernet/faraday/ftgmac100.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), htons 339 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be16 *)(key + off) = htons(tmp_value >> 16); htons 340 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be16 *)(mask + off) = htons(tmp_mask >> 16); htons 344 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be16 *)(key + off) = htons(tmp_value & 0xFFFF); htons 345 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be16 *)(mask + off) = htons(tmp_mask & 0xFFFF); htons 351 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be16 *)(key + off) = htons(ETH_P_IP); htons 352 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be16 *)(mask + off) = htons(0xFFFF); htons 397 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be16 *)(key + off) = htons(ETH_P_IP); htons 398 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be16 *)(mask + off) = htons(0xFFFF); htons 75 drivers/net/ethernet/freescale/enetc/enetc.c if (skb->protocol == htons(ETH_P_IPV6)) htons 514 drivers/net/ethernet/freescale/enetc/enetc.c skb->csum = csum_unfold((__force __sum16)~htons(inet_csum)); htons 522 drivers/net/ethernet/freescale/enetc/enetc.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), htons 395 drivers/net/ethernet/freescale/enetc/enetc_pf.c if (proto != htons(ETH_P_8021Q)) htons 363 drivers/net/ethernet/freescale/fec_main.c return skb->protocol == htons(ETH_P_IP) && ip_hdr(skb)->version == 4; htons 1554 drivers/net/ethernet/freescale/fec_main.c htons(ETH_P_8021Q), htons 2524 drivers/net/ethernet/freescale/gianfar.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), htons 783 drivers/net/ethernet/fujitsu/fmvj18x_cs.c htons(inw(ioaddr + TX_STATUS)), htons 788 drivers/net/ethernet/fujitsu/fmvj18x_cs.c htons(inw(ioaddr + 0)), htons(inw(ioaddr + 2)), htons 789 drivers/net/ethernet/fujitsu/fmvj18x_cs.c htons(inw(ioaddr + 4)), htons(inw(ioaddr + 6)), htons 790 drivers/net/ethernet/fujitsu/fmvj18x_cs.c htons(inw(ioaddr + 8)), htons(inw(ioaddr + 10)), htons 791 drivers/net/ethernet/fujitsu/fmvj18x_cs.c htons(inw(ioaddr + 12)), htons(inw(ioaddr + 14))); htons 78 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (protocol == htons(ETH_P_8021Q)) { htons 84 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (skb->protocol == htons(ETH_P_IP)) { htons 98 drivers/net/ethernet/hisilicon/hns/hns_enet.c } else if (skb->protocol == htons(ETH_P_IPV6)) { htons 177 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (protocol == htons(ETH_P_8021Q)) { htons 183 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (skb->protocol == htons(ETH_P_IP)) { htons 188 drivers/net/ethernet/hisilicon/hns/hns_enet.c } else if (skb->protocol == htons(ETH_P_IPV6)) { htons 1549 drivers/net/ethernet/hisilicon/hns/hns_enet.c ethhdr->h_proto = htons(ETH_P_IP); htons 755 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c if (skb->protocol == htons(ETH_P_IPV6)) { htons 761 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c } else if (skb->protocol == htons(ETH_P_IP)) { htons 807 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c l4.udp->dest == htons(IANA_VXLAN_UDP_PORT))) htons 840 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c if (skb->protocol == htons(ETH_P_IP)) { htons 850 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c } else if (skb->protocol == htons(ETH_P_IPV6)) { htons 982 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c if (!(skb->protocol == htons(ETH_P_8021Q) || htons 994 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c if (skb->protocol == htons(ETH_P_8021Q) && htons 1008 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c if (skb->protocol == htons(ETH_P_8021Q) && htons 1807 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c if ((fkeys.basic.n_proto != htons(ETH_P_IP) && htons 1808 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c fkeys.basic.n_proto != htons(ETH_P_IPV6)) || htons 2483 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c if (type == htons(ETH_P_IP)) { htons 2491 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c } else if (type == htons(ETH_P_IPV6)) { htons 2821 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), htons 165 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c ethh->h_proto = htons(ETH_P_ARP); htons 327 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c .mac_addr_lo16 = cpu_to_le16(htons(0x000E)), htons 6015 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if (fkeys->basic.n_proto == htons(ETH_P_IP)) { htons 8001 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c return hclge_set_vlan_filter(handle, htons(ETH_P_8021Q), 0, false); htons 8027 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c ret = hclge_set_vlan_filter_hw(hdev, htons(ETH_P_8021Q), htons 8053 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c htons(ETH_P_8021Q), htons 8073 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c htons(ETH_P_8021Q), htons 8120 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c hclge_set_vlan_filter_hw(hdev, htons(vlan_proto), htons 8129 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c htons(ETH_P_8021Q), htons 8168 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c htons(new_info->vlan_proto), htons 8174 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c ret = hclge_set_vlan_filter_hw(hdev, htons(old_info->vlan_proto), htons 8200 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c htons(vlan_info->vlan_proto), htons 8209 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c htons(old_vlan_info->vlan_proto), htons 8273 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if (proto != htons(ETH_P_8021Q)) htons 8367 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c ret = hclge_set_vlan_filter_hw(hdev, htons(ETH_P_8021Q), htons 1261 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c if (proto != htons(ETH_P_8021Q)) htons 1299 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c ret = hclgevf_set_vlan_filter(handle, htons(ETH_P_8021Q), htons 2122 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c return hclgevf_set_vlan_filter(&hdev->nic, htons(ETH_P_8021Q), 0, htons 384 drivers/net/ethernet/huawei/hinic/hinic_rx.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vid); htons 725 drivers/net/ethernet/ibm/ehea/ehea_main.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), htons 1957 drivers/net/ethernet/ibm/ehea/ehea_main.c if (vlan_get_protocol(skb) != htons(ETH_P_IP)) htons 1045 drivers/net/ethernet/ibm/ibmveth.c ((skb->protocol == htons(ETH_P_IP) && htons 1047 drivers/net/ethernet/ibm/ibmveth.c (skb->protocol == htons(ETH_P_IPV6) && htons 1190 drivers/net/ethernet/ibm/ibmveth.c if (skb->protocol == htons(ETH_P_IP)) { htons 1199 drivers/net/ethernet/ibm/ibmveth.c } else if (skb->protocol == htons(ETH_P_IPV6)) { htons 1276 drivers/net/ethernet/ibm/ibmvnic.c if (skb->protocol == htons(ETH_P_IP)) { htons 1282 drivers/net/ethernet/ibm/ibmvnic.c } else if (skb->protocol == htons(ETH_P_IPV6)) { htons 1288 drivers/net/ethernet/ibm/ibmvnic.c } else if (skb->protocol == htons(ETH_P_ARP)) { htons 1527 drivers/net/ethernet/ibm/ibmvnic.c if (skb->protocol == htons(ETH_P_IP)) { htons 1530 drivers/net/ethernet/ibm/ibmvnic.c } else if (skb->protocol == htons(ETH_P_IPV6)) { htons 2270 drivers/net/ethernet/ibm/ibmvnic.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), htons 317 drivers/net/ethernet/intel/e1000/e1000_main.c e1000_vlan_rx_add_vid(netdev, htons(ETH_P_8021Q), vid); htons 325 drivers/net/ethernet/intel/e1000/e1000_main.c e1000_vlan_rx_kill_vid(netdev, htons(ETH_P_8021Q), htons 1453 drivers/net/ethernet/intel/e1000/e1000_main.c e1000_vlan_rx_kill_vid(netdev, htons(ETH_P_8021Q), htons 2707 drivers/net/ethernet/intel/e1000/e1000_main.c if (protocol == htons(ETH_P_IP)) { htons 3235 drivers/net/ethernet/intel/e1000/e1000_main.c if (protocol == htons(ETH_P_IP)) htons 3996 drivers/net/ethernet/intel/e1000/e1000_main.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vid); htons 4277 drivers/net/ethernet/intel/e1000/e1000_main.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vid); htons 4995 drivers/net/ethernet/intel/e1000/e1000_main.c e1000_vlan_rx_add_vid(adapter->netdev, htons(ETH_P_8021Q), vid); htons 562 drivers/net/ethernet/intel/e1000e/netdev.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), tag); htons 2763 drivers/net/ethernet/intel/e1000e/netdev.c e1000_vlan_rx_kill_vid(netdev, htons(ETH_P_8021Q), htons 2825 drivers/net/ethernet/intel/e1000e/netdev.c e1000_vlan_rx_add_vid(netdev, htons(ETH_P_8021Q), vid); htons 2830 drivers/net/ethernet/intel/e1000e/netdev.c e1000_vlan_rx_kill_vid(netdev, htons(ETH_P_8021Q), old_vid); htons 2837 drivers/net/ethernet/intel/e1000e/netdev.c e1000_vlan_rx_add_vid(adapter->netdev, htons(ETH_P_8021Q), 0); htons 2840 drivers/net/ethernet/intel/e1000e/netdev.c e1000_vlan_rx_add_vid(adapter->netdev, htons(ETH_P_8021Q), vid); htons 4733 drivers/net/ethernet/intel/e1000e/netdev.c e1000_vlan_rx_kill_vid(netdev, htons(ETH_P_8021Q), htons 5452 drivers/net/ethernet/intel/e1000e/netdev.c if (protocol == htons(ETH_P_IP)) { htons 5732 drivers/net/ethernet/intel/e1000e/netdev.c if (((struct ethhdr *)skb->data)->h_proto != htons(ETH_P_IP)) htons 5886 drivers/net/ethernet/intel/e1000e/netdev.c if (protocol == htons(ETH_P_IP)) htons 586 drivers/net/ethernet/intel/fm10k/fm10k_iov.c if (vlan_proto != htons(ETH_P_8021Q)) htons 472 drivers/net/ethernet/intel/fm10k/fm10k_main.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vid); htons 474 drivers/net/ethernet/intel/fm10k/fm10k_main.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), htons 656 drivers/net/ethernet/intel/fm10k/fm10k_main.c #define FM10K_NVGRE_RESERVED0_FLAGS htons(0x9FFF) htons 657 drivers/net/ethernet/intel/fm10k/fm10k_main.c #define NVGRE_TNI htons(0x2000) htons 670 drivers/net/ethernet/intel/fm10k/fm10k_main.c if (vlan_get_protocol(skb) != htons(ETH_P_IP)) htons 693 drivers/net/ethernet/intel/fm10k/fm10k_main.c skb->inner_protocol != htons(ETH_P_TEB)) htons 697 drivers/net/ethernet/intel/fm10k/fm10k_main.c case htons(ETH_P_IP): htons 700 drivers/net/ethernet/intel/fm10k/fm10k_main.c case htons(ETH_P_IPV6): htons 722 drivers/net/ethernet/intel/fm10k/fm10k_main.c case htons(ETH_P_IP): htons 725 drivers/net/ethernet/intel/fm10k/fm10k_main.c case htons(ETH_P_IPV6): htons 837 drivers/net/ethernet/intel/fm10k/fm10k_main.c case htons(ETH_P_IP): htons 840 drivers/net/ethernet/intel/fm10k/fm10k_main.c case htons(ETH_P_IPV6): htons 636 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c if ((skb->protocol == htons(ETH_P_8021Q)) && htons 665 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c htons(ETH_P_8021Q), htons 669 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c htons(ETH_P_802_2); htons 3264 drivers/net/ethernet/intel/i40e/i40e_ethtool.c fsp->m_u.tcp_ip4_spec.psrc = htons(0xFFFF); htons 3267 drivers/net/ethernet/intel/i40e/i40e_ethtool.c fsp->m_u.tcp_ip4_spec.pdst = htons(0xFFFF); htons 4126 drivers/net/ethernet/intel/i40e/i40e_ethtool.c if (tcp_ip4_spec->psrc == htons(0xFFFF)) htons 4134 drivers/net/ethernet/intel/i40e/i40e_ethtool.c if (tcp_ip4_spec->pdst == htons(0xFFFF)) htons 2948 drivers/net/ethernet/intel/i40e/i40e_main.c i40e_vlan_rx_add_vid_up(vsi->netdev, htons(ETH_P_8021Q), htons 1801 drivers/net/ethernet/intel/i40e/i40e_txrx.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), htons 2819 drivers/net/ethernet/intel/i40e/i40e_txrx.c if (protocol == htons(ETH_P_8021Q) && htons 2837 drivers/net/ethernet/intel/i40e/i40e_txrx.c } else if (protocol == htons(ETH_P_8021Q)) { htons 2866 drivers/net/ethernet/intel/i40e/i40e_txrx.c vhdr->h_vlan_TCI = htons(tx_flags >> htons 3612 drivers/net/ethernet/intel/i40e/i40e_txrx.c if (protocol == htons(ETH_P_IP)) htons 3614 drivers/net/ethernet/intel/i40e/i40e_txrx.c else if (protocol == htons(ETH_P_IPV6)) htons 4119 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c if (vlan_proto != htons(ETH_P_8021Q)) { htons 867 drivers/net/ethernet/intel/iavf/iavf_txrx.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vlan_tag); htons 1809 drivers/net/ethernet/intel/iavf/iavf_txrx.c if (protocol == htons(ETH_P_8021Q) && htons 1827 drivers/net/ethernet/intel/iavf/iavf_txrx.c } else if (protocol == htons(ETH_P_8021Q)) { htons 2461 drivers/net/ethernet/intel/iavf/iavf_txrx.c if (protocol == htons(ETH_P_IP)) htons 2463 drivers/net/ethernet/intel/iavf/iavf_txrx.c else if (protocol == htons(ETH_P_IPV6)) htons 1962 drivers/net/ethernet/intel/ice/ice_common.c cmd->sah = htons(*((const u16 *)mac_addr)); htons 1079 drivers/net/ethernet/intel/ice/ice_dcb.c tlv->typelen = htons(typelen); htons 1120 drivers/net/ethernet/intel/ice/ice_dcb.c tlv->typelen = htons(typelen); htons 1149 drivers/net/ethernet/intel/ice/ice_dcb.c tlv->typelen = htons(typelen); htons 1219 drivers/net/ethernet/intel/ice/ice_dcb.c tlv->typelen = htons(typelen); htons 606 drivers/net/ethernet/intel/ice/ice_dcb_lib.c vhdr->h_vlan_TCI = htons(first->tx_flags >> htons 989 drivers/net/ethernet/intel/ice/ice_txrx.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vlan_tag); htons 1774 drivers/net/ethernet/intel/ice/ice_txrx.c if (protocol == htons(ETH_P_IP)) { htons 1784 drivers/net/ethernet/intel/ice/ice_txrx.c } else if (protocol == htons(ETH_P_IPV6)) { htons 1849 drivers/net/ethernet/intel/ice/ice_txrx.c if (protocol == htons(ETH_P_8021Q) && htons 1866 drivers/net/ethernet/intel/ice/ice_txrx.c } else if (protocol == htons(ETH_P_8021Q)) { htons 2591 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c if (vlan_proto != htons(ETH_P_8021Q)) { htons 2478 drivers/net/ethernet/intel/igb/igb_ethtool.c fsp->m_ext.vlan_tci = htons(VLAN_PRIO_MASK); htons 2967 drivers/net/ethernet/intel/igb/igb_ethtool.c if (fsp->m_ext.vlan_tci != htons(VLAN_PRIO_MASK)) { htons 5803 drivers/net/ethernet/intel/igb/igb_main.c if (((first->protocol == htons(ETH_P_IP)) && htons 5805 drivers/net/ethernet/intel/igb/igb_main.c ((first->protocol == htons(ETH_P_IPV6)) && htons 7043 drivers/net/ethernet/intel/igb/igb_main.c if (vlan_proto != htons(ETH_P_8021Q)) htons 8254 drivers/net/ethernet/intel/igb/igb_main.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vid); htons 8659 drivers/net/ethernet/intel/igb/igb_main.c igb_vlan_rx_add_vid(adapter->netdev, htons(ETH_P_8021Q), 0); htons 8662 drivers/net/ethernet/intel/igb/igb_main.c igb_vlan_rx_add_vid(adapter->netdev, htons(ETH_P_8021Q), vid); htons 1119 drivers/net/ethernet/intel/igb/igb_ptp.c wr32(E1000_IMIR(3), htons(PTP_EV_PORT)); htons 1124 drivers/net/ethernet/intel/igb/igb_ptp.c wr32(E1000_SPQF(3), htons(PTP_EV_PORT)); htons 97 drivers/net/ethernet/intel/igbvf/netdev.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vid); htons 1272 drivers/net/ethernet/intel/igbvf/netdev.c igbvf_vlan_rx_add_vid(adapter->netdev, htons(ETH_P_8021Q), vid); htons 2101 drivers/net/ethernet/intel/igbvf/netdev.c if (((protocol == htons(ETH_P_IP)) && htons 2103 drivers/net/ethernet/intel/igbvf/netdev.c ((protocol == htons(ETH_P_IPV6)) && htons 2322 drivers/net/ethernet/intel/igbvf/netdev.c if (protocol == htons(ETH_P_IP)) htons 905 drivers/net/ethernet/intel/igc/igc_ethtool.c fsp->m_ext.vlan_tci = htons(VLAN_PRIO_MASK); htons 1402 drivers/net/ethernet/intel/igc/igc_ethtool.c if (fsp->m_ext.vlan_tci != htons(VLAN_PRIO_MASK)) { htons 866 drivers/net/ethernet/intel/igc/igc_main.c if ((first->protocol == htons(ETH_P_IP) && htons 868 drivers/net/ethernet/intel/igc/igc_main.c (first->protocol == htons(ETH_P_IPV6) && htons 2017 drivers/net/ethernet/intel/ixgb/ixgb_main.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), htons 2185 drivers/net/ethernet/intel/ixgb/ixgb_main.c ixgb_vlan_rx_add_vid(adapter->netdev, htons(ETH_P_8021Q), vid); htons 402 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c if (eth_hdr(skb)->h_proto == htons(ETH_P_8021Q)) htons 1105 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c if (first->protocol == htons(ETH_P_IP)) htons 1700 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vid); htons 4691 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c ixgbe_vlan_rx_add_vid(adapter->netdev, htons(ETH_P_8021Q), 0); htons 4694 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c ixgbe_vlan_rx_add_vid(adapter->netdev, htons(ETH_P_8021Q), vid); htons 8081 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if (((first->protocol == htons(ETH_P_IP)) && htons 8083 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c ((first->protocol == htons(ETH_P_IPV6)) && htons 8382 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if ((first->protocol != htons(ETH_P_IP)) && htons 8383 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c (first->protocol != htons(ETH_P_IPV6))) htons 8392 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c first->protocol == htons(ETH_P_IP) && htons 8452 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c vlan_id = htons(first->tx_flags >> IXGBE_TX_FLAGS_VLAN_SHIFT); htons 8468 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c common.port.src ^= th->dest ^ htons(ETH_P_8021Q); htons 8525 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c case htons(ETH_P_FCOE): htons 8526 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c case htons(ETH_P_FIP): htons 8645 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c } else if (protocol == htons(ETH_P_8021Q)) { htons 8696 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c vhdr->h_vlan_TCI = htons(tx_flags >> htons 8709 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if ((protocol == htons(ETH_P_FCOE)) && htons 9428 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if (protocol != htons(ETH_P_IP)) htons 1478 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c if (vlan_proto != htons(ETH_P_8021Q)) htons 492 drivers/net/ethernet/intel/ixgbevf/ipsec.c if (first->protocol == htons(ETH_P_IP)) htons 520 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vid); htons 2075 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c htons(ETH_P_8021Q), vid); htons 3865 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c if (((first->protocol == htons(ETH_P_IP)) && htons 3867 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c ((first->protocol == htons(ETH_P_IPV6)) && htons 3878 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c if (first->protocol == htons(ETH_P_IP)) htons 947 drivers/net/ethernet/jme.c if (skb->protocol != htons(ETH_P_IP)) htons 1036 drivers/net/ethernet/jme.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vid); htons 2071 drivers/net/ethernet/jme.c if (skb->protocol == htons(ETH_P_IP)) { htons 2101 drivers/net/ethernet/jme.c case htons(ETH_P_IP): htons 2104 drivers/net/ethernet/jme.c case htons(ETH_P_IPV6): htons 684 drivers/net/ethernet/marvell/mv643xx_eth.c BUG_ON(skb->protocol != htons(ETH_P_IP) && htons 685 drivers/net/ethernet/marvell/mv643xx_eth.c skb->protocol != htons(ETH_P_8021Q)); htons 1691 drivers/net/ethernet/marvell/mvneta.c if (l3_proto == htons(ETH_P_IP)) htons 1854 drivers/net/ethernet/marvell/mvneta.c if (l3_proto == htons(ETH_P_IP)) { htons 1860 drivers/net/ethernet/marvell/mvneta.c } else if (l3_proto == htons(ETH_P_IPV6)) { htons 2030 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c if (l3_proto == htons(ETH_P_IP)) { htons 2893 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c if (l3_proto == htons(ETH_P_IP)) { htons 2899 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c } else if (l3_proto == htons(ETH_P_IPV6)) { htons 2690 drivers/net/ethernet/marvell/sky2.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), be16_to_cpu(length)); htons 1164 drivers/net/ethernet/mediatek/mtk_eth_soc.c tcp_hdr(skb)->check = htons(skb_shinfo(skb)->gso_size); htons 1310 drivers/net/ethernet/mediatek/mtk_eth_soc.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), htons 2016 drivers/net/ethernet/mellanox/mlx4/cmd.c if (vp_admin->vlan_proto != htons(ETH_P_8021AD) || htons 2035 drivers/net/ethernet/mellanox/mlx4/cmd.c vp_oper->state.vlan_proto = htons(ETH_P_8021Q); htons 2426 drivers/net/ethernet/mellanox/mlx4/cmd.c admin_vport->vlan_proto = htons(ETH_P_8021Q); htons 2427 drivers/net/ethernet/mellanox/mlx4/cmd.c oper_vport->vlan_proto = htons(ETH_P_8021Q); htons 3025 drivers/net/ethernet/mellanox/mlx4/cmd.c if (proto == htons(ETH_P_8021AD) && htons 3029 drivers/net/ethernet/mellanox/mlx4/cmd.c if (proto != htons(ETH_P_8021Q) && htons 3030 drivers/net/ethernet/mellanox/mlx4/cmd.c proto != htons(ETH_P_8021AD)) htons 3033 drivers/net/ethernet/mellanox/mlx4/cmd.c if ((proto == htons(ETH_P_8021AD)) && htons 3042 drivers/net/ethernet/mellanox/mlx4/cmd.c if ((proto == htons(ETH_P_8021AD)) && (slave_state->active) && htons 3071 drivers/net/ethernet/mellanox/mlx4/cmd.c if ((proto == htons(ETH_P_8021AD) && htons 374 drivers/net/ethernet/mellanox/mlx4/en_netdev.c if (skb->protocol != htons(ETH_P_IP)) htons 878 drivers/net/ethernet/mellanox/mlx4/en_rx.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), htons 883 drivers/net/ethernet/mellanox/mlx4/en_rx.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021AD), htons 70 drivers/net/ethernet/mellanox/mlx4/en_selftest.c ethh->h_proto = htons(ETH_P_ARP); htons 301 drivers/net/ethernet/mellanox/mlx4/fw.c if ((vp_admin->vlan_proto != htons(ETH_P_8021AD)) || htons 446 drivers/net/ethernet/mellanox/mlx4/fw.c if (vp_oper->state.vlan_proto == htons(ETH_P_8021AD)) htons 134 drivers/net/ethernet/mellanox/mlx4/fw_qos.c htons(MLX4_RATELIMIT_100M_UNITS); htons 138 drivers/net/ethernet/mellanox/mlx4/fw_qos.c htons(MLX4_RATELIMIT_1G_UNITS); htons 140 drivers/net/ethernet/mellanox/mlx4/fw_qos.c tc->max_bw_value = htons(r); htons 142 drivers/net/ethernet/mellanox/mlx4/fw_qos.c tc->max_bw_value = htons(MLX4_RATELIMIT_DEFAULT); htons 143 drivers/net/ethernet/mellanox/mlx4/fw_qos.c tc->max_bw_units = htons(MLX4_RATELIMIT_1G_UNITS); htons 146 drivers/net/ethernet/mellanox/mlx4/fw_qos.c tc->pg = htons(pg[i]); htons 147 drivers/net/ethernet/mellanox/mlx4/fw_qos.c tc->bw_precentage = htons(tc_tx_bw[i]); htons 805 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (vp_oper->state.vlan_proto == htons(ETH_P_8021AD)) { htons 830 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (vp_oper->state.vlan_proto == htons(ETH_P_8021AD)) htons 5325 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c else if (work->vlan_proto == htons(ETH_P_8021AD)) htons 5376 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (work->vlan_proto == htons(ETH_P_8021AD)) htons 198 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c vlan->h_vlan_TCI = htons(vlan_dev_vlan_id(dev)); htons 199 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c vlan->h_vlan_encapsulated_proto = htons(proto); htons 201 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c eth->h_proto = htons(proto); htons 112 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c geneveh->proto_type = htons(ETH_P_TEB); htons 42 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_gre.c greh->protocol = htons(ETH_P_TEB); htons 208 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h if (swp_spec->l3_proto == htons(ETH_P_IPV6)) htons 218 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h if (swp_spec->tun_l3_proto == htons(ETH_P_IPV6)) htons 222 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h if (swp_spec->l3_proto == htons(ETH_P_IPV6)) htons 60 drivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h case htons(ETH_P_IP): htons 63 drivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h case htons(ETH_P_IPV6): htons 77 drivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h swp_spec.tun_l3_proto = htons(ETH_P_IPV6); htons 80 drivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h swp_spec.tun_l3_proto = htons(ETH_P_IP); htons 100 drivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h udp_hdr(skb)->len = htons(payload_len); htons 125 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c if (skb->protocol == htons(ETH_P_IP)) { htons 126 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c ipv4hdr->tot_len = htons(ntohs(ipv4hdr->tot_len) - trailer_len); htons 129 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c ipv6hdr->payload_len = htons(ntohs(ipv6hdr->payload_len) - htons 154 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c swp_spec.tun_l3_proto = htons(ETH_P_IPV6); htons 157 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c swp_spec.tun_l3_proto = htons(ETH_P_IP); htons 224 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c mdata->content.tx.seq = htons(ntohl(tcph->seq) & 0xFFFF); htons 263 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c (skb->protocol != htons(ETH_P_IP) && htons 264 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c skb->protocol != htons(ETH_P_IPV6)))) { htons 389 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c mlx5e_ipsec_inverse_table[1] = htons(0xFFFF); htons 392 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c mlx5e_ipsec_inverse_table[mss] = htons(mss_inv); htons 161 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c iph->tot_len = htons(nskb->len - skb_network_offset(nskb)); htons 177 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c pet->content.send.first_seq = htons(tcp_seq); htons 318 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c if (mdata->ethertype != htons(ETH_P_IP)) htons 443 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c if (etype == htons(ETH_P_IP) && ip_proto == IPPROTO_TCP) htons 445 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c if (etype == htons(ETH_P_IP) && ip_proto == IPPROTO_UDP) htons 447 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c if (etype == htons(ETH_P_IPV6) && ip_proto == IPPROTO_TCP) htons 449 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c if (etype == htons(ETH_P_IPV6) && ip_proto == IPPROTO_UDP) htons 504 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c if (tuple->etype == htons(ETH_P_IP)) { htons 618 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c if (tuple->etype == htons(ETH_P_IP)) { htons 645 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c if (tuple->etype == htons(ETH_P_IP)) htons 648 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c if (tuple->etype == htons(ETH_P_IPV6)) htons 683 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c if (fk.basic.n_proto != htons(ETH_P_IP) && htons 684 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c fk.basic.n_proto != htons(ETH_P_IPV6)) htons 4098 drivers/net/ethernet/mellanox/mlx5/core/en_main.c if (vlan_proto != htons(ETH_P_8021Q)) htons 4275 drivers/net/ethernet/mellanox/mlx5/core/en_main.c case htons(ETH_P_IP): htons 4278 drivers/net/ethernet/mellanox/mlx5/core/en_main.c case htons(ETH_P_IPV6): htons 743 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c if (proto == htons(ETH_P_IP)) { htons 797 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c if (*proto == htons(ETH_P_IP)) htons 800 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c if (*proto == htons(ETH_P_IPV6)) htons 817 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c rc = ((proto == htons(ETH_P_IP)) ? IP_ECN_set_ce((struct iphdr *)ip) : htons 827 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c return (proto == htons(ETH_P_IP)) ? ((struct iphdr *)ip_p)->protocol : htons 888 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c case htons(ETH_P_IP): htons 892 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c case htons(ETH_P_IPV6): htons 1012 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), htons 134 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c ethh->h_proto = htons(ETH_P_IP); htons 137 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c udph->source = htons(9); htons 138 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c udph->dest = htons(9); /* Discard Protocol */ htons 139 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c udph->len = htons(sizeof(struct mlx5ehdr) + sizeof(struct udphdr)); htons 149 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c iph->tot_len = htons(iplen); htons 166 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c skb->protocol = htons(ETH_P_IP); htons 206 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c if (udph->dest != htons(9)) htons 244 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c lbtp->pt.type = htons(ETH_P_IP); htons 1892 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (match.key->vlan_tpid == htons(ETH_P_8021AD)) { htons 1932 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (match.key->vlan_tpid == htons(ETH_P_8021AD)) { htons 3128 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c attr->vlan_proto[vlan_idx] = htons(ETH_P_8021Q); htons 3138 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c (act->vlan.proto != htons(ETH_P_8021Q) || htons 61 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c if (skb->protocol == htons(ETH_P_IP)) htons 63 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c else if (skb->protocol == htons(ETH_P_IPV6)) htons 1439 drivers/net/ethernet/mellanox/mlxsw/spectrum.c if (act->id == FLOW_ACTION_MIRRED && protocol == htons(ETH_P_ALL)) { htons 1448 drivers/net/ethernet/mellanox/mlxsw/spectrum.c protocol == htons(ETH_P_ALL)) { htons 279 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c if (match.mask->flags & htons(0x0E00)) { htons 4863 drivers/net/ethernet/micrel/ksz884x.c skb->protocol == htons(ETH_P_IPV6))) { htons 4969 drivers/net/ethernet/micrel/ksz884x.c if (protocol == htons(ETH_P_8021Q)) { htons 4974 drivers/net/ethernet/micrel/ksz884x.c if (protocol == htons(ETH_P_IP)) { htons 1181 drivers/net/ethernet/myricom/myri10ge/myri10ge.c if ((skb->protocol == htons(ETH_P_8021Q)) && htons 1182 drivers/net/ethernet/myricom/myri10ge/myri10ge.c (vh->h_vlan_encapsulated_proto == htons(ETH_P_IP) || htons 1183 drivers/net/ethernet/myricom/myri10ge/myri10ge.c vh->h_vlan_encapsulated_proto == htons(ETH_P_IPV6))) { htons 1297 drivers/net/ethernet/myricom/myri10ge/myri10ge.c veh->h_vlan_proto == htons(ETH_P_8021Q)) { htons 1304 drivers/net/ethernet/myricom/myri10ge/myri10ge.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), ntohs(veh->h_vlan_TCI)); htons 2808 drivers/net/ethernet/myricom/myri10ge/myri10ge.c req->pseudo_hdr_offset = htons(pseudo_hdr_offset); htons 2811 drivers/net/ethernet/myricom/myri10ge/myri10ge.c req->length = htons(seglen); htons 899 drivers/net/ethernet/natsemi/ns83820.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_IPV6), tag); htons 1117 drivers/net/ethernet/natsemi/ns83820.c extsts |= (EXTSTS_VPKT | htons(tag)); htons 4034 drivers/net/ethernet/neterion/s2io.c if (skb->protocol == htons(ETH_P_IP)) { htons 8260 drivers/net/ethernet/neterion/s2io.c csum_replace2(&ip->check, ip->tot_len, htons(lro->total_len)); htons 8261 drivers/net/ethernet/neterion/s2io.c ip->tot_len = htons(lro->total_len); htons 8472 drivers/net/ethernet/neterion/s2io.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vlan_tag); htons 316 drivers/net/ethernet/neterion/vxge/vxge-main.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), ext_info->vlan); htons 634 drivers/net/ethernet/neterion/vxge/vxge-main.c if (skb->protocol == htons(ETH_P_IP)) { htons 68 drivers/net/ethernet/netronome/nfp/abm/cls.c case htons(ETH_P_IP): htons 71 drivers/net/ethernet/netronome/nfp/abm/cls.c case htons(ETH_P_IPV6): htons 182 drivers/net/ethernet/netronome/nfp/abm/cls.c tos_off = proto == htons(ETH_P_IP) ? 16 : 20; htons 244 drivers/net/ethernet/netronome/nfp/abm/cls.c if (cls_u32->common.protocol != htons(ETH_P_IP) && htons 245 drivers/net/ethernet/netronome/nfp/abm/cls.c cls_u32->common.protocol != htons(ETH_P_IPV6)) { htons 126 drivers/net/ethernet/netronome/nfp/bpf/main.c if (cls_bpf->common.protocol != htons(ETH_P_ALL)) { htons 294 drivers/net/ethernet/netronome/nfp/flower/action.c case htons(IANA_VXLAN_UDP_PORT): htons 296 drivers/net/ethernet/netronome/nfp/flower/action.c case htons(GENEVE_UDP_PORT): htons 465 drivers/net/ethernet/netronome/nfp/flower/action.c set_tun->tun_proto = htons(ETH_P_TEB); htons 176 drivers/net/ethernet/netronome/nfp/flower/offload.c case htons(IANA_VXLAN_UDP_PORT): htons 186 drivers/net/ethernet/netronome/nfp/flower/offload.c case htons(GENEVE_UDP_PORT): htons 2010 drivers/net/ethernet/netronome/nfp/nfp_net_common.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), htons 3520 drivers/net/ethernet/netronome/nfp/nfp_net_common.c case htons(ETH_P_IP): htons 3523 drivers/net/ethernet/netronome/nfp/nfp_net_common.c case htons(ETH_P_IPV6): htons 3531 drivers/net/ethernet/netronome/nfp/nfp_net_common.c skb->inner_protocol != htons(ETH_P_TEB) || htons 106 drivers/net/ethernet/netronome/nfp/nfp_net_sriov.c if (vlan_proto != htons(ETH_P_8021Q)) htons 2815 drivers/net/ethernet/nvidia/forcedeth.c if (((struct vlan_ethhdr *)packet)->h_vlan_proto == htons(ETH_P_8021Q)) { htons 3025 drivers/net/ethernet/nvidia/forcedeth.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vid); htons 157 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c if (!pch_ptp_match(skb, htons(uid), htonl(lo), htons(seq))) htons 1118 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c if (skb->protocol == htons(ETH_P_IP)) { htons 152 drivers/net/ethernet/pensando/ionic/ionic_txrx.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), htons 1619 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c if (skb->protocol == htons(ETH_P_8021Q)) htons 1625 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c csum_replace2(&iph->check, iph->tot_len, htons(length)); htons 1626 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c iph->tot_len = htons(length); htons 1946 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c vh->h_vlan_proto = htons(ETH_P_8021Q); htons 1947 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c vh->h_vlan_TCI = htons(vid); htons 1143 drivers/net/ethernet/qlogic/qed/qed_iwarp.c mpa_v2_params->ird = htons(mpa_ird); htons 1144 drivers/net/ethernet/qlogic/qed/qed_iwarp.c mpa_v2_params->ord = htons(mpa_ord); htons 224 drivers/net/ethernet/qlogic/qed/qed_ll2.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), htons 2546 drivers/net/ethernet/qlogic/qed/qed_ll2.c if (!((vlan_get_protocol(skb) == htons(ETH_P_IPV6)) && htons 391 drivers/net/ethernet/qlogic/qede/qede_filter.c if (skb->protocol == htons(ETH_P_IP)) { htons 467 drivers/net/ethernet/qlogic/qede/qede_filter.c if (skb->protocol != htons(ETH_P_IP) && htons 468 drivers/net/ethernet/qlogic/qede/qede_filter.c skb->protocol != htons(ETH_P_IPV6)) htons 471 drivers/net/ethernet/qlogic/qede/qede_filter.c if (skb->protocol == htons(ETH_P_IP)) { htons 524 drivers/net/ethernet/qlogic/qede/qede_filter.c if (skb->protocol == htons(ETH_P_IP)) { htons 1424 drivers/net/ethernet/qlogic/qede/qede_filter.c if (fltr->tuple.eth_proto == htons(ETH_P_IP)) { htons 1485 drivers/net/ethernet/qlogic/qede/qede_filter.c if (t->eth_proto == htons(ETH_P_IP)) htons 1501 drivers/net/ethernet/qlogic/qede/qede_filter.c if (a->eth_proto != htons(ETH_P_IP) || htons 1502 drivers/net/ethernet/qlogic/qede/qede_filter.c b->eth_proto != htons(ETH_P_IP)) htons 1543 drivers/net/ethernet/qlogic/qede/qede_filter.c if (a->eth_proto != htons(ETH_P_IPV6) || htons 1544 drivers/net/ethernet/qlogic/qede/qede_filter.c b->eth_proto != htons(ETH_P_IPV6)) htons 1862 drivers/net/ethernet/qlogic/qede/qede_filter.c tuple->eth_proto = htons(ETH_P_IPV6); htons 1872 drivers/net/ethernet/qlogic/qede/qede_filter.c tuple->eth_proto = htons(ETH_P_IP); htons 1882 drivers/net/ethernet/qlogic/qede/qede_filter.c tuple->eth_proto = htons(ETH_P_IPV6); htons 1892 drivers/net/ethernet/qlogic/qede/qede_filter.c tuple->eth_proto = htons(ETH_P_IP); htons 1918 drivers/net/ethernet/qlogic/qede/qede_filter.c if (proto != htons(ETH_P_IP) && htons 1919 drivers/net/ethernet/qlogic/qede/qede_filter.c proto != htons(ETH_P_IPV6)) { htons 1931 drivers/net/ethernet/qlogic/qede/qede_filter.c if (ip_proto == IPPROTO_TCP && proto == htons(ETH_P_IP)) htons 1933 drivers/net/ethernet/qlogic/qede/qede_filter.c else if (ip_proto == IPPROTO_TCP && proto == htons(ETH_P_IPV6)) htons 1935 drivers/net/ethernet/qlogic/qede/qede_filter.c else if (ip_proto == IPPROTO_UDP && proto == htons(ETH_P_IP)) htons 1937 drivers/net/ethernet/qlogic/qede/qede_filter.c else if (ip_proto == IPPROTO_UDP && proto == htons(ETH_P_IPV6)) htons 2062 drivers/net/ethernet/qlogic/qede/qede_filter.c proto = htons(ETH_P_IP); htons 2066 drivers/net/ethernet/qlogic/qede/qede_filter.c proto = htons(ETH_P_IPV6); htons 209 drivers/net/ethernet/qlogic/qede/qede_fp.c if (l3_proto == htons(ETH_P_IPV6) && htons 249 drivers/net/ethernet/qlogic/qede/qede_fp.c if (vlan_get_protocol(skb) == htons(ETH_P_IPV6)) htons 620 drivers/net/ethernet/qlogic/qede/qede_fp.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vlan_tag); htons 912 drivers/net/ethernet/qlogic/qede/qede_fp.c case htons(ETH_P_IP): htons 915 drivers/net/ethernet/qlogic/qede/qede_fp.c case htons(ETH_P_IPV6): htons 1712 drivers/net/ethernet/qlogic/qede/qede_fp.c case htons(ETH_P_IP): htons 1715 drivers/net/ethernet/qlogic/qede/qede_fp.c case htons(ETH_P_IPV6): htons 153 drivers/net/ethernet/qlogic/qede/qede_main.c if (vlan_proto != htons(ETH_P_8021Q)) htons 528 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c vh->h_vlan_proto = htons(ETH_P_8021Q); htons 529 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c vh->h_vlan_TCI = htons(vlan_tci); htons 1247 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vid); htons 1326 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c ipv6h->payload_len = htons(length); htons 1331 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c csum_replace2(&iph->check, iph->tot_len, htons(length)); htons 1332 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c iph->tot_len = htons(length); htons 1341 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c if (skb->protocol == htons(ETH_P_IPV6)) htons 1348 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vid); htons 1773 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vid); htons 1849 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c ipv6h->payload_len = htons(length); htons 1854 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c csum_replace2(&iph->check, iph->tot_len, htons(length)); htons 1855 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c iph->tot_len = htons(length); htons 1864 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c if (skb->protocol == htons(ETH_P_IPV6)) htons 1871 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vid); htons 4157 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c dev = __vlan_find_dev_deep_rcu(netdev, htons(ETH_P_8021Q), vid); htons 1927 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c if (vlan_proto != htons(ETH_P_8021Q)) htons 1080 drivers/net/ethernet/qualcomm/emac/emac-mac.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vlan); htons 1260 drivers/net/ethernet/qualcomm/emac/emac-mac.c if (skb->protocol == htons(ETH_P_IP)) { htons 26 drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c skb->protocol = htons(ETH_P_IP); htons 29 drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c skb->protocol = htons(ETH_P_IPV6); htons 32 drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c skb->protocol = htons(ETH_P_MAP); htons 154 drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c skb->protocol = htons(ETH_P_MAP); htons 59 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_command.c skb->protocol = htons(ETH_P_MAP); htons 203 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c offset = htons((__force u16)(skb_transport_header(skb) - htons 215 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c *hdr = htons((__force u16)*hdr); htons 245 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c offset = htons((__force u16)(skb_transport_header(skb) - htons 258 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c *hdr = htons((__force u16)*hdr); htons 283 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c map_header->pkt_len = htons(map_datalen); htons 299 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c map_header->pkt_len = htons(map_datalen + padding); htons 369 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c if (skb->protocol == htons(ETH_P_IP)) { htons 371 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c } else if (skb->protocol == htons(ETH_P_IPV6)) { htons 407 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c if (skb->protocol == htons(ETH_P_IP)) { htons 410 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c } else if (skb->protocol == htons(ETH_P_IPV6)) { htons 429 drivers/net/ethernet/realtek/8139cp.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), swab16(opts2 & 0xffff)); htons 1635 drivers/net/ethernet/realtek/r8169_main.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), swab16(opts2 & 0xffff)); htons 5798 drivers/net/ethernet/realtek/r8169_main.c case htons(ETH_P_IP): htons 5802 drivers/net/ethernet/realtek/r8169_main.c case htons(ETH_P_IPV6): htons 5820 drivers/net/ethernet/realtek/r8169_main.c case htons(ETH_P_IP): htons 5825 drivers/net/ethernet/realtek/r8169_main.c case htons(ETH_P_IPV6): htons 254 drivers/net/ethernet/rocker/rocker_ofdpa.c vlan_id = htons(vid); htons 1266 drivers/net/ethernet/rocker/rocker_ofdpa.c __be16 eth_type = htons(ETH_P_IP); htons 1562 drivers/net/ethernet/rocker/rocker_ofdpa.c .eth_type = htons(ETH_P_ARP), htons 1569 drivers/net/ethernet/rocker/rocker_ofdpa.c .eth_type = htons(ETH_P_IP), htons 1577 drivers/net/ethernet/rocker/rocker_ofdpa.c .eth_type = htons(ETH_P_IPV6), htons 1602 drivers/net/ethernet/rocker/rocker_ofdpa.c __be16 vlan_id_mask = htons(0xffff); htons 1654 drivers/net/ethernet/rocker/rocker_ofdpa.c __be16 vlan_id_mask = htons(0xffff); htons 1717 drivers/net/ethernet/rocker/rocker_ofdpa.c ctrl, htons(vid)); htons 1731 drivers/net/ethernet/rocker/rocker_ofdpa.c __be16 vlan_id = htons(vid); htons 1732 drivers/net/ethernet/rocker/rocker_ofdpa.c __be16 vlan_id_mask = htons(0xffff); htons 2023 drivers/net/ethernet/rocker/rocker_ofdpa.c __be16 vlan_id_mask = htons(0xffff); htons 2030 drivers/net/ethernet/rocker/rocker_ofdpa.c eth_type = htons(ETH_P_IP); htons 2039 drivers/net/ethernet/rocker/rocker_ofdpa.c eth_type = htons(ETH_P_IPV6); htons 2072 drivers/net/ethernet/rocker/rocker_ofdpa.c vlan_id = htons(vid); htons 2189 drivers/net/ethernet/rocker/rocker_ofdpa.c err = ofdpa_port_router_mac(ofdpa_port, 0, htons(vid)); htons 2203 drivers/net/ethernet/rocker/rocker_ofdpa.c htons(vid)); htons 2254 drivers/net/ethernet/rocker/rocker_ofdpa.c found->vlan_id = htons(OFDPA_INTERNAL_VLAN_ID_BASE + i); htons 2272 drivers/net/ethernet/rocker/rocker_ofdpa.c __be16 eth_type = htons(ETH_P_IP); htons 522 drivers/net/ethernet/seeq/ether3.c ether3_writeword(dev, htons(next_ptr)); htons 525 drivers/net/ethernet/seeq/ether3.c ether3_writeword(dev, htons((ptr + length + 4))); htons 4013 drivers/net/ethernet/sfc/ef10.c if (spec->ether_type == htons(ETH_P_IP) && htons 4016 drivers/net/ethernet/sfc/ef10.c if (spec->ether_type == htons(ETH_P_IPV6) && htons 4088 drivers/net/ethernet/sfc/ef10.c htons(encap_type & EFX_ENCAP_FLAG_IPV6 ? htons 6317 drivers/net/ethernet/sfc/ef10.c if (proto != htons(ETH_P_8021Q)) htons 6325 drivers/net/ethernet/sfc/ef10.c if (proto != htons(ETH_P_8021Q)) htons 835 drivers/net/ethernet/sfc/ethtool.c spec.ether_type == htons(ETH_P_IP) && htons 862 drivers/net/ethernet/sfc/ethtool.c spec.ether_type == htons(ETH_P_IPV6) && htons 913 drivers/net/ethernet/sfc/ethtool.c spec.ether_type == htons(ETH_P_IP) && htons 933 drivers/net/ethernet/sfc/ethtool.c spec.ether_type == htons(ETH_P_IPV6) && htons 962 drivers/net/ethernet/sfc/ethtool.c rule->m_ext.vlan_tci = htons(0xfff); htons 1127 drivers/net/ethernet/sfc/ethtool.c spec.ether_type = htons(ETH_P_IP); htons 1162 drivers/net/ethernet/sfc/ethtool.c spec.ether_type = htons(ETH_P_IPV6); htons 1198 drivers/net/ethernet/sfc/ethtool.c spec.ether_type = htons(ETH_P_IP); htons 1223 drivers/net/ethernet/sfc/ethtool.c spec.ether_type = htons(ETH_P_IPV6); htons 1274 drivers/net/ethernet/sfc/ethtool.c if (rule->m_ext.vlan_tci != htons(0xfff)) htons 812 drivers/net/ethernet/sfc/falcon/ethtool.c spec.ether_type == htons(ETH_P_IP) && htons 839 drivers/net/ethernet/sfc/falcon/ethtool.c spec.ether_type == htons(ETH_P_IPV6) && htons 890 drivers/net/ethernet/sfc/falcon/ethtool.c spec.ether_type == htons(ETH_P_IP) && htons 910 drivers/net/ethernet/sfc/falcon/ethtool.c spec.ether_type == htons(ETH_P_IPV6) && htons 939 drivers/net/ethernet/sfc/falcon/ethtool.c rule->m_ext.vlan_tci = htons(0xfff); htons 1062 drivers/net/ethernet/sfc/falcon/ethtool.c spec.ether_type = htons(ETH_P_IP); htons 1097 drivers/net/ethernet/sfc/falcon/ethtool.c spec.ether_type = htons(ETH_P_IPV6); htons 1133 drivers/net/ethernet/sfc/falcon/ethtool.c spec.ether_type = htons(ETH_P_IP); htons 1158 drivers/net/ethernet/sfc/falcon/ethtool.c spec.ether_type = htons(ETH_P_IPV6); htons 1209 drivers/net/ethernet/sfc/falcon/ethtool.c if (rule->m_ext.vlan_tci != htons(0xfff)) htons 1994 drivers/net/ethernet/sfc/falcon/farch.c if (gen_spec->ether_type != htons(ETH_P_IP)) htons 2097 drivers/net/ethernet/sfc/falcon/farch.c gen_spec->ether_type = htons(ETH_P_IP); htons 2104 drivers/net/ethernet/sfc/falcon/farch.c port1 = htons(spec->data[0]); htons 2106 drivers/net/ethernet/sfc/falcon/farch.c port2 = htons(spec->data[1] >> 16); htons 2139 drivers/net/ethernet/sfc/falcon/farch.c gen_spec->outer_vid = htons(spec->data[0]); htons 187 drivers/net/ethernet/sfc/falcon/filter.h spec->ether_type = htons(ETH_P_IP); htons 212 drivers/net/ethernet/sfc/falcon/filter.h spec->ether_type = htons(ETH_P_IP); htons 239 drivers/net/ethernet/sfc/falcon/filter.h spec->outer_vid = htons(vid); htons 845 drivers/net/ethernet/sfc/falcon/rx.c if (fk.basic.n_proto != htons(ETH_P_IP) && fk.basic.n_proto != htons(ETH_P_IPV6)) htons 860 drivers/net/ethernet/sfc/falcon/rx.c if (fk.basic.n_proto == htons(ETH_P_IP)) { htons 880 drivers/net/ethernet/sfc/falcon/rx.c if (spec.ether_type == htons(ETH_P_IP)) htons 958 drivers/net/ethernet/sfc/falcon/rx.c if (spec->ether_type == htons(ETH_P_IP) && htons 961 drivers/net/ethernet/sfc/falcon/rx.c if (spec->ether_type == htons(ETH_P_IPV6) && htons 384 drivers/net/ethernet/sfc/falcon/selftest.c payload->header.h_proto = htons(ETH_P_IP); htons 389 drivers/net/ethernet/sfc/falcon/selftest.c payload->ip.check = (__force __sum16) htons(0xdead); htons 390 drivers/net/ethernet/sfc/falcon/selftest.c payload->ip.tot_len = htons(sizeof(*payload) - sizeof(struct ethhdr)); htons 396 drivers/net/ethernet/sfc/falcon/selftest.c payload->udp.len = htons(sizeof(*payload) - sizeof(struct ethhdr) - htons 401 drivers/net/ethernet/sfc/falcon/selftest.c payload->iteration = htons(ntohs(payload->iteration) + 1); htons 2053 drivers/net/ethernet/sfc/farch.c if (gen_spec->ether_type != htons(ETH_P_IP)) htons 2156 drivers/net/ethernet/sfc/farch.c gen_spec->ether_type = htons(ETH_P_IP); htons 2163 drivers/net/ethernet/sfc/farch.c port1 = htons(spec->data[0]); htons 2165 drivers/net/ethernet/sfc/farch.c port2 = htons(spec->data[1] >> 16); htons 2198 drivers/net/ethernet/sfc/farch.c gen_spec->outer_vid = htons(spec->data[0]); htons 213 drivers/net/ethernet/sfc/filter.h spec->ether_type = htons(ETH_P_IP); htons 238 drivers/net/ethernet/sfc/filter.h spec->ether_type = htons(ETH_P_IP); htons 265 drivers/net/ethernet/sfc/filter.h spec->outer_vid = htons(vid); htons 1292 drivers/net/ethernet/sfc/ptp.c htons(PTP_EVENT_PORT)); htons 1306 drivers/net/ethernet/sfc/ptp.c htons(PTP_GENERAL_PORT)); htons 1604 drivers/net/ethernet/sfc/ptp.c likely(skb->protocol == htons(ETH_P_IP)) && htons 1610 drivers/net/ethernet/sfc/ptp.c udp_hdr(skb)->dest == htons(PTP_EVENT_PORT); htons 1710 drivers/net/ethernet/sfc/ptp.c if ((udp_hdr(skb)->dest == htons(PTP_EVENT_PORT)) && htons 869 drivers/net/ethernet/sfc/rx.c if (req->spec.ether_type == htons(ETH_P_IP)) htons 918 drivers/net/ethernet/sfc/rx.c if (fk.basic.n_proto != htons(ETH_P_IP) && fk.basic.n_proto != htons(ETH_P_IPV6)) { htons 938 drivers/net/ethernet/sfc/rx.c if (fk.basic.n_proto == htons(ETH_P_IP)) { htons 1053 drivers/net/ethernet/sfc/rx.c if (spec->ether_type == htons(ETH_P_IP) && htons 1056 drivers/net/ethernet/sfc/rx.c if (spec->ether_type == htons(ETH_P_IPV6) && htons 384 drivers/net/ethernet/sfc/selftest.c payload->header.h_proto = htons(ETH_P_IP); htons 389 drivers/net/ethernet/sfc/selftest.c payload->ip.check = (__force __sum16) htons(0xdead); htons 390 drivers/net/ethernet/sfc/selftest.c payload->ip.tot_len = htons(sizeof(*payload) - sizeof(struct ethhdr)); htons 396 drivers/net/ethernet/sfc/selftest.c payload->udp.len = htons(sizeof(*payload) - sizeof(struct ethhdr) - htons 401 drivers/net/ethernet/sfc/selftest.c payload->iteration = htons(ntohs(payload->iteration) + 1); htons 1623 drivers/net/ethernet/sfc/siena_sriov.c vf->addr.tci = htons(tci); htons 31 drivers/net/ethernet/sfc/sriov.c if (vlan_proto != htons(ETH_P_8021Q)) htons 149 drivers/net/ethernet/sfc/tx_tso.c if (protocol == htons(ETH_P_8021Q)) { htons 155 drivers/net/ethernet/sfc/tx_tso.c if (protocol == htons(ETH_P_IP)) { htons 158 drivers/net/ethernet/sfc/tx_tso.c EFX_WARN_ON_ONCE_PARANOID(protocol != htons(ETH_P_IPV6)); htons 183 drivers/net/ethernet/sfc/tx_tso.c if (st->protocol == htons(ETH_P_IP)) { htons 494 drivers/net/ethernet/sgi/ioc3-eth.c if (eh->h_proto != htons(ETH_P_IP)) htons 508 drivers/net/ethernet/sgi/ioc3-eth.c htons((u16)ih->protocol) + htons 1137 drivers/net/ethernet/socionext/netsec.c if (skb->protocol == htons(ETH_P_IP)) { htons 2822 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c if (skb->vlan_proto == htons(ETH_P_8021AD)) { htons 3356 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c if ((vlan_proto == htons(ETH_P_8021Q) && htons 3358 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c (vlan_proto == htons(ETH_P_8021AD) && htons 117 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ehdr->h_proto = htons(ETH_P_IP); htons 122 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ptr[3] = htons(ETH_P_IP); htons 136 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c proto[0] = htons(ETH_P_8021Q); htons 137 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c tag[0] = htons(attr->vlan_id_out); htons 138 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c tag[1] = htons(ETH_P_IP); htons 140 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c proto[0] = htons(ETH_P_8021AD); htons 141 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c tag[1] = htons(ETH_P_8021Q); htons 142 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c tag[2] = htons(attr->vlan_id_in); htons 143 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c tag[3] = htons(ETH_P_IP); htons 148 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c thdr->source = htons(attr->sport); htons 149 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c thdr->dest = htons(attr->dport); htons 153 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c uhdr->source = htons(attr->sport); htons 154 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c uhdr->dest = htons(attr->dport); htons 155 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c uhdr->len = htons(sizeof(*shdr) + sizeof(*uhdr) + attr->size); htons 157 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c uhdr->len = htons(attr->max_size - htons 178 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ihdr->tot_len = htons(iplen); htons 207 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c skb->protocol = htons(ETH_P_IP); htons 286 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (thdr->dest != htons(tpriv->packet->dport)) htons 295 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (uhdr->dest != htons(tpriv->packet->dport)) htons 329 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c tpriv->pt.type = htons(ETH_P_IP); htons 721 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (ehdr->h_proto != htons(ETH_P_PAUSE)) htons 749 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c tpriv->pt.type = htons(ETH_P_PAUSE); htons 854 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (skb->vlan_proto != htons(proto)) htons 875 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (uhdr->dest != htons(tpriv->packet->dport)) htons 907 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c tpriv->pt.type = htons(ETH_P_IP); htons 921 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ret = vlan_vid_add(priv->dev, htons(ETH_P_8021Q), tpriv->vlan_id); htons 958 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c vlan_vid_del(priv->dev, htons(ETH_P_8021Q), tpriv->vlan_id); htons 983 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c tpriv->pt.type = htons(ETH_P_8021Q); htons 997 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ret = vlan_vid_add(priv->dev, htons(ETH_P_8021AD), tpriv->vlan_id); htons 1034 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c vlan_vid_del(priv->dev, htons(ETH_P_8021AD), tpriv->vlan_id); htons 1081 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c cls_u32.common.protocol = htons(ETH_P_ALL); htons 1240 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c tpriv->pt.type = svlan ? htons(ETH_P_8021Q) : htons(ETH_P_IP); htons 1248 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ret = vlan_vid_add(priv->dev, htons(proto), tpriv->vlan_id); htons 1260 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c __vlan_hwaccel_put_tag(skb, htons(proto), tpriv->vlan_id); htons 1261 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c skb->protocol = htons(proto); htons 1272 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c vlan_vid_del(priv->dev, htons(proto), tpriv->vlan_id); htons 1471 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c keys.key.src = htons(src); htons 1472 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c keys.key.dst = htons(dst); htons 1567 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (ahdr->ar_op != htons(ARPOP_REPLY)) htons 1598 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c tpriv->pt.type = htons(ETH_P_ARP); htons 2125 drivers/net/ethernet/sun/cassini.c csum = (__force __sum16)htons(CAS_VAL(RX_COMP4_TCP_CSUM, words[3])); htons 2134 drivers/net/ethernet/sun/cassini.c if (skb->protocol == htons(ETH_P_IP)) { htons 859 drivers/net/ethernet/sun/sungem.c csum = (__force __sum16)htons((status & RXDCTRL_TCPCSUM) ^ 0xffff); htons 2079 drivers/net/ethernet/sun/sunhme.c skb->csum = csum_unfold(~(__force __sum16)htons(csum)); htons 312 drivers/net/ethernet/sun/sunvnet_common.c if (skb->protocol != htons(ETH_P_IP)) htons 345 drivers/net/ethernet/sun/sunvnet_common.c if (skb->protocol != htons(ETH_P_IPV6)) htons 428 drivers/net/ethernet/sun/sunvnet_common.c if (skb->protocol == htons(ETH_P_IP)) { htons 435 drivers/net/ethernet/sun/sunvnet_common.c } else if (skb->protocol == htons(ETH_P_IPV6)) { htons 1174 drivers/net/ethernet/sun/sunvnet_common.c if (skb->protocol == htons(ETH_P_IP)) { htons 1185 drivers/net/ethernet/sun/sunvnet_common.c } else if (skb->protocol == htons(ETH_P_IPV6)) { htons 1233 drivers/net/ethernet/sun/sunvnet_common.c if (skb->protocol == htons(ETH_P_IP)) htons 1235 drivers/net/ethernet/sun/sunvnet_common.c else if (skb->protocol == htons(ETH_P_IPV6)) htons 1356 drivers/net/ethernet/sun/sunvnet_common.c if (skb->protocol == htons(ETH_P_IP)) { htons 1375 drivers/net/ethernet/sun/sunvnet_common.c else if (skb->protocol == htons(ETH_P_IPV6)) htons 1387 drivers/net/ethernet/sun/sunvnet_common.c if (skb->protocol == htons(ETH_P_IP)) htons 1390 drivers/net/ethernet/sun/sunvnet_common.c else if (skb->protocol == htons(ETH_P_IPV6)) htons 1223 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c (skb->protocol == htons(ETH_P_8021Q))) htons 1245 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), htons 1139 drivers/net/ethernet/tehuti/tehuti.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), GET_RXD_VLAN_TCI(rxd_vlan)); htons 441 drivers/net/ethernet/ti/cpsw.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vtag); htons 709 drivers/net/ethernet/toshiba/ps3_gelic_net.c if (skb->protocol == htons(ETH_P_IP)) { htons 750 drivers/net/ethernet/toshiba/ps3_gelic_net.c veth->h_vlan_TCI = htons(tag); htons 2036 drivers/net/ethernet/via/via-rhine.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vlan_tci); htons 2070 drivers/net/ethernet/via/via-velocity.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vid); htons 3040 drivers/net/ethernet/via/via-velocity.c arp->type = htons(ETH_P_ARP); htons 3041 drivers/net/ethernet/via/via-velocity.c arp->ar_op = htons(1); htons 985 drivers/net/ethernet/xilinx/ll_temac_main.c (skb->protocol == htons(ETH_P_IP)) && htons 993 drivers/net/ethernet/xilinx/ll_temac_main.c skb->csum = htons(be32_to_cpu(bd->app3) & 0xFFFF); htons 733 drivers/net/ethernet/xilinx/xilinx_axienet_main.c skb->protocol == htons(ETH_P_IP) && htons 306 drivers/net/ethernet/xscale/ixp4xx_eth.c if (!ixp_ptp_match(skb, htons(uid), htonl(lo), htons(seq))) htons 359 drivers/net/geneve.c if (unlikely(geneveh->proto_type != htons(ETH_P_TEB))) htons 372 drivers/net/geneve.c htons(ETH_P_TEB), htons 402 drivers/net/geneve.c if (geneveh->proto_type != htons(ETH_P_TEB)) htons 733 drivers/net/geneve.c geneveh->proto_type = htons(ETH_P_TEB); htons 764 drivers/net/geneve.c skb_set_inner_protocol(skb, htons(ETH_P_TEB)); htons 900 drivers/net/geneve.c df = key->tun_flags & TUNNEL_DONT_FRAGMENT ? htons(IP_DF) : 0; htons 910 drivers/net/geneve.c df = htons(IP_DF); htons 915 drivers/net/geneve.c df = htons(IP_DF); htons 919 drivers/net/geneve.c if (iph->frag_off & htons(IP_DF)) htons 920 drivers/net/geneve.c df = htons(IP_DF); htons 1324 drivers/net/geneve.c info->key.tp_dst = htons(dst_port); htons 413 drivers/net/gtp.c gtp0->length = htons(payload_len); htons 414 drivers/net/gtp.c gtp0->seq = htons((atomic_inc_return(&pctx->tx_seq) - 1) % 0xffff); htons 415 drivers/net/gtp.c gtp0->flow = htons(pctx->u.v0.flow); htons 436 drivers/net/gtp.c gtp1->length = htons(payload_len); htons 458 drivers/net/gtp.c pktinfo->gtph_port = htons(GTP0_PORT); htons 462 drivers/net/gtp.c pktinfo->gtph_port = htons(GTP1U_PORT); htons 545 drivers/net/gtp.c if (!skb_is_gso(skb) && (iph->frag_off & htons(IP_DF)) && htons 250 drivers/net/hamradio/6pack.c if (skb->protocol == htons(ETH_P_IP)) htons 765 drivers/net/hamradio/baycom_epp.c if (skb->protocol == htons(ETH_P_IP)) htons 224 drivers/net/hamradio/bpqether.c if (skb->protocol == htons(ETH_P_IP)) htons 917 drivers/net/hamradio/dmascc.c if (skb->protocol == htons(ETH_P_IP)) htons 394 drivers/net/hamradio/hdlcdrv.c if (skb->protocol == htons(ETH_P_IP)) htons 522 drivers/net/hamradio/mkiss.c if (skb->protocol == htons(ETH_P_IP)) htons 1643 drivers/net/hamradio/scc.c if (skb->protocol == htons(ETH_P_IP)) htons 585 drivers/net/hamradio/yam.c if (skb->protocol == htons(ETH_P_IP)) htons 538 drivers/net/hippi/rrunner.c htons(rr_read_eeprom_word(rrpriv, offsetof(struct eeprom, manf.BoardULA))); htons 264 drivers/net/hyperv/netvsc_drv.c if (flow.basic.n_proto == htons(ETH_P_IP)) htons 266 drivers/net/hyperv/netvsc_drv.c else if (flow.basic.n_proto == htons(ETH_P_IPV6)) htons 272 drivers/net/hyperv/netvsc_drv.c if (flow.basic.n_proto == htons(ETH_P_IP)) htons 274 drivers/net/hyperv/netvsc_drv.c else if (flow.basic.n_proto == htons(ETH_P_IPV6)) htons 283 drivers/net/hyperv/netvsc_drv.c if (flow.basic.n_proto == htons(ETH_P_IP)) htons 285 drivers/net/hyperv/netvsc_drv.c else if (flow.basic.n_proto == htons(ETH_P_IPV6)) htons 476 drivers/net/hyperv/netvsc_drv.c if (skb->protocol == htons(ETH_P_IP)) { htons 629 drivers/net/hyperv/netvsc_drv.c if (skb->protocol == htons(ETH_P_IP)) { htons 658 drivers/net/hyperv/netvsc_drv.c if (skb->protocol == htons(ETH_P_IP)) { htons 795 drivers/net/hyperv/netvsc_drv.c skb->protocol == htons(ETH_P_IP)) htons 809 drivers/net/hyperv/netvsc_drv.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), htons 141 drivers/net/ipvlan/ipvlan_core.c case htons(ETH_P_ARP): { htons 152 drivers/net/ipvlan/ipvlan_core.c case htons(ETH_P_IP): { htons 171 drivers/net/ipvlan/ipvlan_core.c case htons(ETH_P_IPV6): { htons 522 drivers/net/ipvlan/ipvlan_core.c if (skb->protocol == htons(ETH_P_IPV6)) htons 524 drivers/net/ipvlan/ipvlan_core.c else if (skb->protocol == htons(ETH_P_IP)) htons 538 drivers/net/ipvlan/ipvlan_core.c if (skb->protocol == htons(ETH_P_PAUSE)) { htons 388 drivers/net/macsec.c #define MACSEC_PORT_ES (htons(0x0001)) htons 454 drivers/net/macsec.c h->eth.h_proto = htons(ETH_P_MACSEC); htons 1095 drivers/net/macsec.c if (hdr->eth.h_proto != htons(ETH_P_MACSEC)) { htons 269 drivers/net/macvlan.c if (skb->protocol == htons(ETH_P_PAUSE)) htons 130 drivers/net/netdevsim/bpf.c if (cls_bpf->common.protocol != htons(ETH_P_ALL)) { htons 381 drivers/net/netdevsim/dev.c eth->h_proto = htons(ETH_P_IP); htons 382 drivers/net/netdevsim/dev.c skb->protocol = htons(ETH_P_IP); htons 392 drivers/net/netdevsim/dev.c iph->tot_len = htons(tot_len); htons 401 drivers/net/netdevsim/dev.c udph->len = htons(sizeof(struct udphdr) + data_len); htons 571 drivers/net/plip/plip.c return htons(ETH_P_802_3); htons 576 drivers/net/plip/plip.c return htons(ETH_P_802_2); htons 2225 drivers/net/ppp/ppp_generic.c skb->protocol = htons(npindex_to_ethertype[npi]); htons 900 drivers/net/ppp/pppoe.c ph->length = htons(total_len); htons 949 drivers/net/ppp/pppoe.c ph->length = htons(data_len); htons 205 drivers/net/ppp/pptp.c hdr->call_id = htons(opt->dst_addr.call_id); htons 214 drivers/net/ppp/pptp.c hdr->payload_len = htons(len); htons 228 drivers/net/ppp/pptp.c iph->frag_off = htons(IP_DF); htons 236 drivers/net/ppp/pptp.c iph->tot_len = htons(skb->len); htons 358 drivers/net/ppp/pptp.c po = lookup_chan(htons(header->call_id), iph->saddr); htons 355 drivers/net/slip/slhc.c || (ip->frag_off & htons(0x4000)) != (cs->cs_ip.frag_off & htons(0x4000)) htons 570 drivers/net/slip/slhc.c thp->urg_ptr = htons(x); htons 577 drivers/net/slip/slhc.c thp->window = htons( ntohs(thp->window) + x); htons 597 drivers/net/slip/slhc.c ip->id = htons (ntohs (ip->id) + x); htons 599 drivers/net/slip/slhc.c ip->id = htons (ntohs (ip->id) + 1); htons 611 drivers/net/slip/slhc.c ip->tot_len = htons(len); htons 369 drivers/net/slip/slip.c skb->protocol = htons(ETH_P_IP); htons 718 drivers/net/tap.c if ((skb->protocol == htons(ETH_P_8021Q) || htons 719 drivers/net/tap.c skb->protocol == htons(ETH_P_8021AD)) && htons 804 drivers/net/tap.c veth.h_vlan_TCI = htons(skb_vlan_tag_get(skb)); htons 1181 drivers/net/tap.c if ((skb->protocol == htons(ETH_P_8021Q) || htons 1182 drivers/net/tap.c skb->protocol == htons(ETH_P_8021AD)) && htons 20 drivers/net/team/team_mode_loadbalance.c if (unlikely(skb->protocol == htons(ETH_P_SLOW))) { htons 929 drivers/net/thunderbolt.c if (protocol == htons(ETH_P_8021Q)) { htons 944 drivers/net/thunderbolt.c if (protocol == htons(ETH_P_IP)) { htons 967 drivers/net/thunderbolt.c } else if (protocol == htons(ETH_P_IPV6)) { htons 1894 drivers/net/tun.c pi.proto = htons(ETH_P_IP); htons 1897 drivers/net/tun.c pi.proto = htons(ETH_P_IPV6); htons 2144 drivers/net/tun.c veth.h_vlan_TCI = htons(skb_vlan_tag_get(skb)); htons 1155 drivers/net/usb/aqc111.c __vlan_hwaccel_put_tag(new_skb, htons(ETH_P_8021Q), htons 55 drivers/net/usb/cdc-phonet.c if (skb->protocol != htons(ETH_P_PHONET)) htons 172 drivers/net/usb/cdc-phonet.c skb->protocol = htons(ETH_P_PHONET); htons 212 drivers/net/usb/cdc_mbim.c case htons(ETH_P_IP): htons 213 drivers/net/usb/cdc_mbim.c case htons(ETH_P_IPV6): htons 325 drivers/net/usb/cdc_mbim.c netdev = __vlan_find_dev_deep_rcu(dev->net, htons(ETH_P_8021Q), htons 367 drivers/net/usb/cdc_mbim.c __be16 proto = htons(ETH_P_802_3); htons 376 drivers/net/usb/cdc_mbim.c proto = htons(ETH_P_IP); htons 381 drivers/net/usb/cdc_mbim.c proto = htons(ETH_P_IPV6); htons 404 drivers/net/usb/cdc_mbim.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), tci); htons 3064 drivers/net/usb/lan78xx.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), htons 195 drivers/net/usb/lg-vl600.c ethhdr->h_proto = htons(ETH_P_IPV6); htons 285 drivers/net/usb/lg-vl600.c packet->h_proto = htons(ETH_P_IP); htons 234 drivers/net/usb/qmi_wwan.c skbn->protocol = htons(ETH_P_IP); htons 237 drivers/net/usb/qmi_wwan.c skbn->protocol = htons(ETH_P_IPV6); htons 559 drivers/net/usb/qmi_wwan.c proto = htons(ETH_P_IP); htons 562 drivers/net/usb/qmi_wwan.c proto = htons(ETH_P_IPV6); htons 1785 drivers/net/usb/r8152.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), htons 1810 drivers/net/usb/r8152.c case htons(ETH_P_IP): htons 1814 drivers/net/usb/r8152.c case htons(ETH_P_IPV6): htons 1841 drivers/net/usb/r8152.c case htons(ETH_P_IP): htons 1846 drivers/net/usb/r8152.c case htons(ETH_P_IPV6): htons 1183 drivers/net/vmxnet3/vmxnet3_drv.c skb->csum = htons(gdesc->rcd.csum); htons 1249 drivers/net/vmxnet3/vmxnet3_drv.c BUG_ON(hdr.eth->h_proto != htons(ETH_P_IP) && htons 1250 drivers/net/vmxnet3/vmxnet3_drv.c hdr.veth->h_vlan_encapsulated_proto != htons(ETH_P_IP)); htons 1256 drivers/net/vmxnet3/vmxnet3_drv.c BUG_ON(hdr.eth->h_proto != htons(ETH_P_IPV6) && htons 1257 drivers/net/vmxnet3/vmxnet3_drv.c hdr.veth->h_vlan_encapsulated_proto != htons(ETH_P_IPV6)); htons 1530 drivers/net/vmxnet3/vmxnet3_drv.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), rcd->tci); htons 3676 drivers/net/vmxnet3/vmxnet3_drv.c ehdr->h_proto = htons(ETH_P_ARP); htons 3680 drivers/net/vmxnet3/vmxnet3_drv.c ahdr->ar_op = htons(ARPOP_REQUEST); htons 306 drivers/net/vrf.c case htons(ETH_P_IP): htons 308 drivers/net/vrf.c case htons(ETH_P_IPV6): htons 371 drivers/net/vrf.c skb->protocol = htons(ETH_P_IPV6); htons 437 drivers/net/vrf.c skb->protocol = htons(ETH_P_IPV6); htons 606 drivers/net/vrf.c skb->protocol = htons(ETH_P_IP); htons 649 drivers/net/vrf.c skb->protocol = htons(ETH_P_IP); htons 1658 drivers/net/vxlan.c __be16 protocol = htons(ETH_P_TEB); htons 1828 drivers/net/vxlan.c if ((parp->ar_hrd != htons(ARPHRD_ETHER) && htons 1829 drivers/net/vxlan.c parp->ar_hrd != htons(ARPHRD_IEEE802)) || htons 1830 drivers/net/vxlan.c parp->ar_pro != htons(ETH_P_IP) || htons 1831 drivers/net/vxlan.c parp->ar_op != htons(ARPOP_REQUEST) || htons 1915 drivers/net/vxlan.c reply->protocol = htons(ETH_P_IPV6); htons 1940 drivers/net/vxlan.c eth_hdr(reply)->h_proto = htons(ETH_P_IPV6); htons 1941 drivers/net/vxlan.c reply->protocol = htons(ETH_P_IPV6); htons 1976 drivers/net/vxlan.c pip6->payload_len = htons(sizeof(*na)+na_olen); htons 2139 drivers/net/vxlan.c gbp->policy_id = htons(md->gbp & VXLAN_GBP_ID_MASK); htons 2163 drivers/net/vxlan.c __be16 inner_protocol = htons(ETH_P_TEB); htons 2533 drivers/net/vxlan.c df = htons(IP_DF); htons 2539 drivers/net/vxlan.c old_iph->frag_off & htons(IP_DF))) htons 2540 drivers/net/vxlan.c df = htons(IP_DF); htons 2543 drivers/net/vxlan.c df = htons(IP_DF); htons 3468 drivers/net/vxlan.c conf->dst_port = htons(4790); /* IANA VXLAN-GPE port */ htons 3470 drivers/net/vxlan.c conf->dst_port = htons(vxlan_port); htons 4078 drivers/net/vxlan.c .low = htons(vxlan->cfg.port_min), htons 4079 drivers/net/vxlan.c .high = htons(vxlan->cfg.port_max), htons 87 drivers/net/wan/dlci.c hdr.PID = htons(type); htons 155 drivers/net/wan/dlci.c skb->protocol = htons(ETH_P_IP); htons 841 drivers/net/wan/farsync.c return htons(ETH_P_CUST); htons 368 drivers/net/wan/fsl_ucc_hdlc.c *proto_head = htons(DEFAULT_HDLC_HEAD); htons 375 drivers/net/wan/fsl_ucc_hdlc.c if (*proto_head != htons(DEFAULT_PPP_HEAD)) { htons 88 drivers/net/wan/hdlc_cisco.c data->protocol = htons(type); htons 927 drivers/net/wan/hdlc_fr.c skb->protocol = htons(ETH_P_IP); htons 932 drivers/net/wan/hdlc_fr.c skb->protocol = htons(ETH_P_IPV6); htons 946 drivers/net/wan/hdlc_fr.c skb->protocol = htons(pid); htons 1089 drivers/net/wan/hdlc_fr.c *(__be16*)dev->dev_addr = htons(dlci); htons 144 drivers/net/wan/hdlc_ppp.c return htons(ETH_P_HDLC); htons 147 drivers/net/wan/hdlc_ppp.c return htons(ETH_P_HDLC); htons 152 drivers/net/wan/hdlc_ppp.c return htons(ETH_P_IP); htons 156 drivers/net/wan/hdlc_ppp.c return htons(ETH_P_IPV6); htons 159 drivers/net/wan/hdlc_ppp.c return htons(ETH_P_HDLC); htons 180 drivers/net/wan/hdlc_ppp.c data->protocol = htons(PID_IP); htons 183 drivers/net/wan/hdlc_ppp.c data->protocol = htons(PID_IPV6); htons 188 drivers/net/wan/hdlc_ppp.c data->protocol = htons(type); htons 231 drivers/net/wan/hdlc_ppp.c cp->len = htons(sizeof(struct cp_header) + magic_len + len); htons 193 drivers/net/wan/lapbether.c skb->protocol = htons(ETH_P_X25); htons 106 drivers/net/wan/lmc/lmc_proto.c return htons(ETH_P_802_2); htons 109 drivers/net/wan/lmc/lmc_proto.c return htons(ETH_P_802_2); htons 113 drivers/net/wan/lmc/lmc_proto.c return htons(ETH_P_802_2); htons 392 drivers/net/wan/sbni.c *(__be16 *)dev->dev_addr = htons( 0x00ff ); htons 483 drivers/net/wimax/i2400m/netdev.c skb->protocol = htons(ETH_P_IP); htons 534 drivers/net/wimax/i2400m/netdev.c skb->protocol = htons(ETH_P_IP); htons 332 drivers/net/wireless/ath/ath6kl/wmi.c if (llc_hdr->eth_type == htons(ip_type)) { htons 965 drivers/net/wireless/ath/wil6210/txrx.c xmit_skb->protocol = htons(ETH_P_802_3); htons 1058 drivers/net/wireless/ath/wil6210/txrx.c skb->protocol = htons(ETH_P_802_2); htons 348 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (eh->h_proto == htons(ETH_P_PAE)) htons 472 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c skb->protocol = htons(ETH_P_802_2); htons 1413 drivers/net/wireless/cisco/airo.c mic->typelen = htons(payLen + 16); //Length of Mic'd packet htons 1507 drivers/net/wireless/cisco/airo.c mic->typelen = htons(payLen + sizeof(MICBuffer) - 2); htons 3420 drivers/net/wireless/cisco/airo.c skb->protocol = htons(ETH_P_802_2); htons 3782 drivers/net/wireless/cisco/airo.c skb->protocol = htons(ETH_P_802_2); htons 46 drivers/net/wireless/intel/ipw2x00/libipw_rx.c skb->protocol = htons(ETH_P_80211_RAW); htons 748 drivers/net/wireless/intel/ipw2x00/libipw_rx.c len = htons(skb->len); htons 791 drivers/net/wireless/intel/ipw2x00/libipw_rx.c skb2->protocol = htons(ETH_P_802_3); htons 125 drivers/net/wireless/intel/ipw2x00/libipw_tx.c if (h_proto == htons(ETH_P_AARP) || h_proto == htons(ETH_P_IPX)) htons 215 drivers/net/wireless/intel/ipw2x00/libipw_tx.c if (eth->h_proto != htons(ETH_P_IP)) htons 285 drivers/net/wireless/intel/ipw2x00/libipw_tx.c encrypt = !(ether_type == htons(ETH_P_PAE) && ieee->ieee802_1x) && htons 292 drivers/net/wireless/intel/ipw2x00/libipw_tx.c ieee->drop_unencrypted && ether_type != htons(ETH_P_PAE)) { htons 4999 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c if (skb->protocol != htons(ETH_P_IP)) htons 117 drivers/net/wireless/intel/iwlwifi/mvm/tx.c (skb->protocol != htons(ETH_P_IP) && htons 118 drivers/net/wireless/intel/iwlwifi/mvm/tx.c skb->protocol != htons(ETH_P_IPV6)), htons 124 drivers/net/wireless/intel/iwlwifi/mvm/tx.c if (skb->protocol == htons(ETH_P_IP)) { htons 169 drivers/net/wireless/intel/iwlwifi/mvm/tx.c if (skb->protocol == htons(ETH_P_IP) && htons 828 drivers/net/wireless/intel/iwlwifi/mvm/tx.c bool ipv4 = (skb->protocol == htons(ETH_P_IP)); htons 858 drivers/net/wireless/intel/iwlwifi/mvm/tx.c ip_hdr(tmp)->id = htons(ip_base_id + i * num_subframes); htons 910 drivers/net/wireless/intel/iwlwifi/mvm/tx.c if (skb->protocol == htons(ETH_P_IPV6) && htons 2204 drivers/net/wireless/intel/iwlwifi/pcie/tx.c htons(ETH_P_IPV6), htons 1048 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c len = htons(skb->len); htons 395 drivers/net/wireless/intersil/orinoco/main.c hdr.eth.h_proto = htons(len); htons 1036 drivers/net/wireless/intersil/orinoco/main.c hdr->h_proto = htons(length); htons 287 drivers/net/wireless/intersil/prism54/islpci_eth.c (*skb)->protocol = htons(ETH_P_802_2); htons 873 drivers/net/wireless/mac80211_hwsim.c skb->protocol = htons(ETH_P_802_2); htons 916 drivers/net/wireless/mac80211_hwsim.c skb->protocol = htons(ETH_P_802_2); htons 81 drivers/net/wireless/marvell/mwifiex/11n_aggr.c tx_header->eth803_hdr.h_proto = htons(skb_src->len + LLC_SNAP_LEN); htons 47 drivers/net/wireless/marvell/mwifiex/sta_rx.c if (arp->hdr.ar_op == htons(ARPOP_REPLY) || htons 48 drivers/net/wireless/marvell/mwifiex/sta_rx.c arp->hdr.ar_op == htons(ARPOP_REQUEST)) { htons 501 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c if (unlikely(skb->protocol == htons(ETH_P_PAE))) { htons 947 drivers/net/wireless/ray_cs.c if (proto == htons(ETH_P_AARP) || proto == htons(ETH_P_IPX)) { htons 959 drivers/net/wireless/ray_cs.c if (proto == htons(0xffff)) { /* evil netware IPX 802.3 without LLC */ htons 2301 drivers/net/wireless/ray_cs.c peth->h_proto = htons(len - RX_MAC_HEADER_LENGTH); htons 2318 drivers/net/wireless/ray_cs.c htons(len - RX_MAC_HEADER_LENGTH); htons 814 drivers/net/wireless/zydas/zd1201.c *(__be16*)&txbuf[skb->len+6+pad] = htons(skb->len-12+6); htons 162 drivers/net/xen-netback/hash.c case htons(ETH_P_IP): htons 169 drivers/net/xen-netback/hash.c case htons(ETH_P_IPV6): htons 188 drivers/net/xen-netback/hash.c case htons(ETH_P_IP): htons 212 drivers/net/xen-netback/hash.c case htons(ETH_P_IPV6): htons 271 drivers/net/xen-netback/rx.c skb->protocol == htons(ETH_P_IP) ? htons 276 drivers/net/xen-netback/rx.c skb->protocol == htons(ETH_P_IP) ? htons 524 drivers/platform/mellanox/mlxbf-tmfifo.c hdr.len = htons(size); htons 657 drivers/platform/mellanox/mlxbf-tmfifo.c hdr.len = htons(vring->pkt_len - hdr_len); htons 813 drivers/rapidio/rio_cm.c hdr->dst_ch = htons(ch->rem_channel); htons 814 drivers/rapidio/rio_cm.c hdr->src_ch = htons(ch->id); htons 815 drivers/rapidio/rio_cm.c hdr->msg_len = htons((u16)len); htons 981 drivers/rapidio/rio_cm.c hdr->dst_ch = htons(rem_ch); htons 982 drivers/rapidio/rio_cm.c hdr->src_ch = htons(loc_ch); htons 1032 drivers/rapidio/rio_cm.c hdr->dst_ch = htons(ch->rem_channel); htons 1033 drivers/rapidio/rio_cm.c hdr->src_ch = htons(ch->id); htons 1410 drivers/rapidio/rio_cm.c hdr->dst_ch = htons(ch->rem_channel); htons 1411 drivers/rapidio/rio_cm.c hdr->src_ch = htons(ch->id); htons 1116 drivers/s390/net/ctcm_mpc.c pskb->protocol = htons(ETH_P_SNAP); htons 1118 drivers/s390/net/ctcm_mpc.c pskb->protocol = htons(ETH_P_SNA_DIX); htons 2141 drivers/s390/net/ctcm_mpc.c skb->protocol = htons(ETH_P_SNAP); htons 1541 drivers/s390/net/lcs.c if (skb->protocol == htons(ETH_P_IPV6)) { htons 1777 drivers/s390/net/lcs.c if (skb->protocol == htons(ETH_P_802_2)) htons 912 drivers/s390/net/qeth_core.h if (prot == htons(ETH_P_8021Q)) htons 916 drivers/s390/net/qeth_core.h case htons(ETH_P_IPV6): htons 918 drivers/s390/net/qeth_core.h case htons(ETH_P_IP): htons 1086 drivers/s390/net/qeth_core_main.c if (skb->protocol == htons(ETH_P_AF_IUCV) && skb->sk) htons 3566 drivers/s390/net/qeth_core_main.c if (veth->h_vlan_proto == htons(ETH_P_8021Q)) htons 561 drivers/s390/net/qeth_l2_main.c if (skb->protocol == htons(ETH_P_IPV6)) htons 1170 drivers/s390/net/qeth_l3_main.c netdev = __vlan_find_dev_deep_rcu(card->dev, htons(ETH_P_8021Q), htons 1254 drivers/s390/net/qeth_l3_main.c netdev = __vlan_find_dev_deep_rcu(card->dev, htons(ETH_P_8021Q), htons 1363 drivers/s390/net/qeth_l3_main.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), tag); htons 1948 drivers/s390/net/qeth_l3_main.c if (skb->protocol == htons(ETH_P_AF_IUCV)) { htons 1950 drivers/s390/net/qeth_l3_main.c l3_hdr->next_hop.ipv6_addr.s6_addr16[0] = htons(0xfe80); htons 1970 drivers/s390/net/qeth_l3_main.c } else if (veth->h_vlan_proto == htons(ETH_P_8021Q)) { htons 2058 drivers/s390/net/qeth_l3_main.c skb->protocol != htons(ETH_P_AF_IUCV))) htons 94 drivers/scsi/bnx2fc/bnx2fc_els.c rrq.rrq_ox_id = htons(aborted_io_req->xid); htons 95 drivers/scsi/bnx2fc/bnx2fc_els.c rrq.rrq_rx_id = htons(aborted_io_req->task->rxwr_txrd.var_ctx.rx_id); htons 607 drivers/scsi/bnx2fc/bnx2fc_els.c rec.rec_ox_id = htons(orig_io_req->xid); htons 608 drivers/scsi/bnx2fc/bnx2fc_els.c rec.rec_rx_id = htons(orig_io_req->task->rxwr_txrd.var_ctx.rx_id); htons 647 drivers/scsi/bnx2fc/bnx2fc_els.c srr.srr_ox_id = htons(orig_io_req->xid); htons 648 drivers/scsi/bnx2fc/bnx2fc_els.c srr.srr_rx_id = htons(orig_io_req->task->rxwr_txrd.var_ctx.rx_id); htons 367 drivers/scsi/bnx2fc/bnx2fc_fcoe.c skb->protocol = htons(ETH_P_FCOE); htons 372 drivers/scsi/bnx2fc/bnx2fc_fcoe.c eh->h_proto = htons(ETH_P_FCOE); htons 451 drivers/scsi/bnx2fc/bnx2fc_fcoe.c if (unlikely(eth_hdr(skb)->h_proto != htons(ETH_P_FCOE))) { htons 1266 drivers/scsi/bnx2fc/bnx2fc_fcoe.c interface->fip_packet_type.type = htons(ETH_P_FIP); htons 587 drivers/scsi/bnx2fc/bnx2fc_hwi.c fh->fh_ox_id = htons(l2_oxid); htons 1643 drivers/scsi/bnx2fc/bnx2fc_hwi.c fc_hdr->fh_rx_id = htons(0xffff); htons 885 drivers/scsi/bnx2fc/bnx2fc_io.c fc_hdr->fh_ox_id = htons(io_req->xid); htons 886 drivers/scsi/bnx2fc/bnx2fc_io.c fc_hdr->fh_rx_id = htons(io_req->task->rxwr_txrd.var_ctx.rx_id); htons 217 drivers/scsi/csiostor/csio_lnode.c cmd->ct_cmd = htons(op); htons 251 drivers/scsi/csiostor/csio_lnode.c ae->type = htons(type); htons 254 drivers/scsi/csiostor/csio_lnode.c ae->len = htons(len); htons 322 drivers/scsi/csiostor/csio_mb.c cmdp->fcoecaps |= htons(FW_CAPS_CONFIG_FCOE_CTRL_OFLD); htons 324 drivers/scsi/csiostor/csio_mb.c cmdp->fcoecaps |= htons(FW_CAPS_CONFIG_FCOE_INITIATOR); htons 326 drivers/scsi/csiostor/csio_mb.c cmdp->fcoecaps |= htons(FW_CAPS_CONFIG_FCOE_TARGET); htons 461 drivers/scsi/csiostor/csio_mb.c cmdp->fl0size = htons(iq_params->fl0size); htons 462 drivers/scsi/csiostor/csio_mb.c cmdp->fl0size = htons(iq_params->fl1size); htons 511 drivers/scsi/csiostor/csio_mb.c cmdp->iqid |= htons(iq_params->iqid); htons 512 drivers/scsi/csiostor/csio_mb.c cmdp->fl0id |= htons(iq_params->fl0id); htons 513 drivers/scsi/csiostor/csio_mb.c cmdp->fl1id |= htons(iq_params->fl1id); htons 519 drivers/scsi/csiostor/csio_mb.c cmdp->iqdroprss_to_iqesize |= htons( htons 527 drivers/scsi/csiostor/csio_mb.c cmdp->iqsize |= htons(iq_params->iqsize); htons 546 drivers/scsi/csiostor/csio_mb.c cmdp->fl0dcaen_to_fl0cidxfthresh |= htons( htons 552 drivers/scsi/csiostor/csio_mb.c cmdp->fl0size |= htons(iq_params->fl0size); htons 638 drivers/scsi/csiostor/csio_mb.c cmdp->iqid = htons(iq_params->iqid); htons 639 drivers/scsi/csiostor/csio_mb.c cmdp->fl0id = htons(iq_params->fl0id); htons 640 drivers/scsi/csiostor/csio_mb.c cmdp->fl1id = htons(iq_params->fl1id); htons 927 drivers/scsi/csiostor/csio_mb.c cmdp->iqid = htons(iqid); htons 542 drivers/scsi/csiostor/csio_rnode.c rn->rn_sparm.clsp[fc_class - 1].cp_class = htons(FC_CPC_VALID); htons 1163 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c req->word = htons(31); htons 1199 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c req->word = htons(31); htons 2013 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c req->reply_ctrl = htons(NO_REPLY_V(0) | QUEUENO_V(csk->rss_qid)); htons 2014 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c req->word_cookie = htons(0); htons 2048 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c req->reply_ctrl = htons(NO_REPLY_V(0) | QUEUENO_V(csk->rss_qid)); htons 2049 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c req->word_cookie = htons(0); htons 476 drivers/scsi/cxgbi/libcxgbi.c *port = htons(pmap->sport_base + idx); htons 354 drivers/scsi/fcoe/fcoe.c fcoe->fcoe_packet_type.type = htons(ETH_P_FCOE); htons 359 drivers/scsi/fcoe/fcoe.c fcoe->fip_packet_type.type = htons(ETH_P_FIP); htons 365 drivers/scsi/fcoe/fcoe.c fcoe->fip_vlan_packet_type.type = htons(ETH_P_FIP); htons 1550 drivers/scsi/fcoe/fcoe.c skb->protocol = htons(ETH_P_FCOE); htons 1557 drivers/scsi/fcoe/fcoe.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), htons 1564 drivers/scsi/fcoe/fcoe.c eh->h_proto = htons(ETH_P_FCOE); htons 398 drivers/scsi/fcoe/fcoe_ctlr.c sol->eth.h_proto = htons(ETH_P_FIP); htons 401 drivers/scsi/fcoe/fcoe_ctlr.c sol->fip.fip_op = htons(FIP_OP_DISC); htons 403 drivers/scsi/fcoe/fcoe_ctlr.c sol->fip.fip_dl_len = htons(sizeof(sol->desc) / FIP_BPW); htons 404 drivers/scsi/fcoe/fcoe_ctlr.c sol->fip.fip_flags = htons(FIP_FL_FPMA); htons 406 drivers/scsi/fcoe/fcoe_ctlr.c sol->fip.fip_flags |= htons(FIP_FL_SPMA); htons 419 drivers/scsi/fcoe/fcoe_ctlr.c sol->desc.size.fd_size = htons(fcoe_size); htons 422 drivers/scsi/fcoe/fcoe_ctlr.c skb->protocol = htons(ETH_P_FIP); htons 557 drivers/scsi/fcoe/fcoe_ctlr.c kal->eth.h_proto = htons(ETH_P_FIP); htons 560 drivers/scsi/fcoe/fcoe_ctlr.c kal->fip.fip_op = htons(FIP_OP_CTRL); htons 562 drivers/scsi/fcoe/fcoe_ctlr.c kal->fip.fip_dl_len = htons((sizeof(kal->mac) + htons 564 drivers/scsi/fcoe/fcoe_ctlr.c kal->fip.fip_flags = htons(FIP_FL_FPMA); htons 566 drivers/scsi/fcoe/fcoe_ctlr.c kal->fip.fip_flags |= htons(FIP_FL_SPMA); htons 580 drivers/scsi/fcoe/fcoe_ctlr.c skb->protocol = htons(ETH_P_FIP); htons 639 drivers/scsi/fcoe/fcoe_ctlr.c cap->eth.h_proto = htons(ETH_P_FIP); htons 642 drivers/scsi/fcoe/fcoe_ctlr.c cap->fip.fip_op = htons(FIP_OP_LS); htons 647 drivers/scsi/fcoe/fcoe_ctlr.c cap->fip.fip_flags = htons(fip_flags); htons 670 drivers/scsi/fcoe/fcoe_ctlr.c cap->fip.fip_dl_len = htons(dlen / FIP_BPW); htons 672 drivers/scsi/fcoe/fcoe_ctlr.c skb->protocol = htons(ETH_P_FIP); htons 2060 drivers/scsi/fcoe/fcoe_ctlr.c frame->eth.h_proto = htons(ETH_P_FIP); htons 2063 drivers/scsi/fcoe/fcoe_ctlr.c frame->fip.fip_op = htons(FIP_OP_VN2VN); htons 2065 drivers/scsi/fcoe/fcoe_ctlr.c frame->fip.fip_dl_len = htons(dlen / FIP_BPW); htons 2103 drivers/scsi/fcoe/fcoe_ctlr.c size->fd_size = htons(fcoe_ctlr_fcoe_size(fip)); htons 2107 drivers/scsi/fcoe/fcoe_ctlr.c skb->protocol = htons(ETH_P_FIP); htons 2928 drivers/scsi/fcoe/fcoe_ctlr.c frame->eth.h_proto = htons(ETH_P_FIP); htons 2931 drivers/scsi/fcoe/fcoe_ctlr.c frame->fip.fip_op = htons(FIP_OP_VLAN); htons 2933 drivers/scsi/fcoe/fcoe_ctlr.c frame->fip.fip_dl_len = htons(dlen / FIP_BPW); htons 2944 drivers/scsi/fcoe/fcoe_ctlr.c skb->protocol = htons(ETH_P_FIP); htons 401 drivers/scsi/fnic/fnic_fcs.c vlan->eth.h_proto = htons(ETH_P_FIP); htons 404 drivers/scsi/fnic/fnic_fcs.c vlan->fip.fip_op = htons(FIP_OP_VLAN); htons 406 drivers/scsi/fnic/fnic_fcs.c vlan->fip.fip_dl_len = htons(sizeof(vlan->desc) / FIP_BPW); htons 418 drivers/scsi/fnic/fnic_fcs.c skb->protocol = htons(ETH_P_FIP); htons 636 drivers/scsi/fnic/fnic_fcs.c if (eh->h_proto == htons(ETH_P_FIP)) { htons 679 drivers/scsi/fnic/fnic_fcs.c if (eh->h_proto == htons(ETH_P_8021Q)) { htons 684 drivers/scsi/fnic/fnic_fcs.c if (eh->h_proto == htons(ETH_P_FIP)) { htons 699 drivers/scsi/fnic/fnic_fcs.c if (eh->h_proto != htons(ETH_P_FCOE)) htons 1041 drivers/scsi/fnic/fnic_fcs.c vlan_hdr->h_vlan_proto = htons(ETH_P_8021Q); htons 1043 drivers/scsi/fnic/fnic_fcs.c vlan_hdr->h_vlan_TCI = htons(fnic->vlan_id); htons 1106 drivers/scsi/fnic/fnic_fcs.c vlan_hdr->h_vlan_proto = htons(ETH_P_8021Q); htons 1107 drivers/scsi/fnic/fnic_fcs.c vlan_hdr->h_vlan_encapsulated_proto = htons(ETH_P_FCOE); htons 1108 drivers/scsi/fnic/fnic_fcs.c vlan_hdr->h_vlan_TCI = htons(fnic->vlan_id); htons 1113 drivers/scsi/fnic/fnic_fcs.c eth_hdr->h_proto = htons(ETH_P_FCOE); htons 297 drivers/scsi/libfc/fc_exch.c fh->fh_ox_id = htons(ep->oxid); htons 298 drivers/scsi/libfc/fc_exch.c fh->fh_rx_id = htons(ep->rxid); htons 300 drivers/scsi/libfc/fc_exch.c fh->fh_seq_cnt = htons(ep->seq.cnt); htons 1076 drivers/scsi/libfc/fc_exch.c fh->fh_rx_id = htons(FC_XID_UNKNOWN); htons 1441 drivers/scsi/libfc/fc_exch.c ap->ba_high_seq_cnt = htons(0xffff); htons 1446 drivers/scsi/libfc/fc_exch.c ap->ba_low_seq_cnt = htons(sp->cnt); htons 1530 drivers/scsi/libfc/fc_exch.c if (fh->fh_rx_id == htons(FC_XID_UNKNOWN)) htons 2056 drivers/scsi/libfc/fc_exch.c acc->reca_rx_id = htons(ep->rxid); htons 2244 drivers/scsi/libfc/fc_exch.c rrq->rrq_ox_id = htons(ep->oxid); htons 2245 drivers/scsi/libfc/fc_exch.c rrq->rrq_rx_id = htons(ep->rxid); htons 1738 drivers/scsi/libfc/fc_fcp.c srr->srr_ox_id = htons(ep->oxid); htons 1739 drivers/scsi/libfc/fc_fcp.c srr->srr_rx_id = htons(ep->rxid); htons 360 drivers/scsi/libfc/fc_lport.c sp->sp_bb_cred = htons(10); /* this gets set by gateway */ htons 361 drivers/scsi/libfc/fc_lport.c sp->sp_bb_data = htons((u16) lport->mfs); htons 363 drivers/scsi/libfc/fc_lport.c cp->cp_class = htons(FC_CPC_VALID | FC_CPC_SEQ); htons 365 drivers/scsi/libfc/fc_lport.c sp->sp_features = htons(FC_SP_FT_CIRO); htons 366 drivers/scsi/libfc/fc_lport.c sp->sp_tot_seq = htons(255); /* seq. we accept */ htons 367 drivers/scsi/libfc/fc_lport.c sp->sp_rel_off = htons(0x1f); htons 370 drivers/scsi/libfc/fc_lport.c cp->cp_rdfs = htons((u16) lport->mfs); htons 371 drivers/scsi/libfc/fc_lport.c cp->cp_con_seq = htons(255); htons 2005 drivers/scsi/libfc/fc_rport.c pp->prli.prli_len = htons(len); htons 2117 drivers/scsi/libfc/fc_rport.c pp->prlo.prlo_len = htons(len); htons 293 drivers/scsi/qedf/qedf_els.c rrq.rrq_ox_id = htons(aborted_io_req->xid); htons 295 drivers/scsi/qedf/qedf_els.c htons(aborted_io_req->task->tstorm_st_context.read_write.rx_id); htons 322 drivers/scsi/qedf/qedf_els.c fh->fh_ox_id = htons(l2_oxid); htons 658 drivers/scsi/qedf/qedf_els.c srr.srr_ox_id = htons(orig_io_req->xid); htons 659 drivers/scsi/qedf/qedf_els.c srr.srr_rx_id = htons(orig_io_req->rx_id); htons 1028 drivers/scsi/qedf/qedf_els.c rec.rec_ox_id = htons(orig_io_req->xid); htons 1030 drivers/scsi/qedf/qedf_els.c htons(orig_io_req->task->tstorm_st_context.read_write.rx_id); htons 38 drivers/scsi/qedf/qedf_fip.c vlan->eth.h_proto = htons(ETH_P_FIP); htons 41 drivers/scsi/qedf/qedf_fip.c vlan->fip.fip_op = htons(FIP_OP_VLAN); htons 43 drivers/scsi/qedf/qedf_fip.c vlan->fip.fip_dl_len = htons(sizeof(vlan->desc) / FIP_BPW); htons 54 drivers/scsi/qedf/qedf_fip.c skb->protocol = htons(ETH_P_FIP); htons 145 drivers/scsi/qedf/qedf_fip.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), qedf->vlan_id); htons 725 drivers/scsi/qedf/qedf_io.c fc_hdr->fh_rx_id = htons(0xffff); htons 1123 drivers/scsi/qedf/qedf_main.c skb->protocol = htons(ETH_P_FCOE); htons 1129 drivers/scsi/qedf/qedf_main.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), qedf->vlan_id); htons 1133 drivers/scsi/qedf/qedf_main.c eh->h_proto = htons(ETH_P_FCOE); htons 2495 drivers/scsi/qedf/qedf_main.c if (eh->h_proto == htons(ETH_P_8021Q)) { htons 2506 drivers/scsi/qedf/qedf_main.c if (eh->h_proto == htons(ETH_P_FIP)) { htons 2509 drivers/scsi/qedf/qedf_main.c } else if (eh->h_proto == htons(ETH_P_FCOE)) { htons 1143 drivers/scsi/qedi/qedi_iscsi.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vlanid); htons 679 drivers/scsi/qedi/qedi_main.c if (eh->h_proto == htons(ETH_P_8021Q)) { htons 686 drivers/scsi/qedi/qedi_main.c if (eh->h_proto != htons(ETH_P_ARP) && htons 687 drivers/scsi/qedi/qedi_main.c eh->h_proto != htons(ETH_P_IP) && htons 688 drivers/scsi/qedi/qedi_main.c eh->h_proto != htons(ETH_P_IPV6)) { htons 718 drivers/scsi/qedi/qedi_main.c __vlan_insert_tag(work->skb, htons(ETH_P_8021Q), work->vlan_id); htons 459 drivers/scsi/qla2xxx/qla_dbg.c *buf++ = htons(RD_REG_WORD(dmp_reg)); htons 759 drivers/scsi/qla2xxx/qla_dbg.c fw->hccr = htons(RD_REG_WORD(®->hccr)); htons 780 drivers/scsi/qla2xxx/qla_dbg.c fw->pbiu_reg[cnt] = htons(RD_REG_WORD(dmp_reg)); htons 785 drivers/scsi/qla2xxx/qla_dbg.c fw->risc_host_reg[cnt] = htons(RD_REG_WORD(dmp_reg)); htons 790 drivers/scsi/qla2xxx/qla_dbg.c fw->mailbox_reg[cnt] = htons(RD_REG_WORD(dmp_reg)); htons 802 drivers/scsi/qla2xxx/qla_dbg.c fw->risc_hdw_reg[cnt] = htons(RD_REG_WORD(dmp_reg)); htons 932 drivers/scsi/qla2xxx/qla_dbg.c fw->hccr = htons(RD_REG_WORD(®->hccr)); htons 946 drivers/scsi/qla2xxx/qla_dbg.c fw->pbiu_reg[cnt] = htons(RD_REG_WORD(dmp_reg)); htons 953 drivers/scsi/qla2xxx/qla_dbg.c fw->mailbox_reg[cnt] = htons(RD_REG_WORD(dmp_reg)); htons 958 drivers/scsi/qla2xxx/qla_dbg.c fw->dma_reg[cnt] = htons(RD_REG_WORD(dmp_reg)); htons 963 drivers/scsi/qla2xxx/qla_dbg.c fw->risc_hdw_reg[cnt] = htons(RD_REG_WORD(dmp_reg)); htons 1071 drivers/scsi/qla2xxx/qla_dbg.c fw->risc_ram[cnt] = htons(mb2); htons 1180 drivers/scsi/qla2xxx/qla_dbg.c fw->mailbox_reg[cnt] = htons(RD_REG_WORD(mbx_reg)); htons 1472 drivers/scsi/qla2xxx/qla_dbg.c fw->mailbox_reg[cnt] = htons(RD_REG_WORD(mbx_reg)); htons 1796 drivers/scsi/qla2xxx/qla_dbg.c fw->mailbox_reg[cnt] = htons(RD_REG_WORD(mbx_reg)); htons 2144 drivers/scsi/qla2xxx/qla_dbg.c fw->mailbox_reg[cnt] = htons(RD_REG_WORD(mbx_reg)); htons 6571 drivers/scsi/qla4xxx/ql4_os.c addr6->sin6_port = htons(le16_to_cpu(fw_ddb_entry->port)); htons 6579 drivers/scsi/qla4xxx/ql4_os.c addr->sin_port = htons(le16_to_cpu(fw_ddb_entry->port)); htons 138 drivers/staging/gdm724x/gdm_lte.c arp_out->ar_op = htons(ARPOP_REPLY); htons 295 drivers/staging/gdm724x/gdm_lte.c ipv6_out.payload_len = htons(sizeof(struct icmp6hdr) + htons 633 drivers/staging/gdm724x/gdm_lte.c vlan_eth.h_vlan_TCI = htons(nic->vlan_id); htons 634 drivers/staging/gdm724x/gdm_lte.c vlan_eth.h_vlan_proto = htons(ETH_P_8021Q); htons 640 drivers/staging/gdm724x/gdm_lte.c eth.h_proto = htons(ETH_P_ARP); htons 641 drivers/staging/gdm724x/gdm_lte.c vlan_eth.h_vlan_encapsulated_proto = htons(ETH_P_ARP); htons 645 drivers/staging/gdm724x/gdm_lte.c eth.h_proto = htons(ETH_P_IP); htons 646 drivers/staging/gdm724x/gdm_lte.c vlan_eth.h_vlan_encapsulated_proto = htons(ETH_P_IP); htons 648 drivers/staging/gdm724x/gdm_lte.c eth.h_proto = htons(ETH_P_IPV6); htons 649 drivers/staging/gdm724x/gdm_lte.c vlan_eth.h_vlan_encapsulated_proto = htons(ETH_P_IPV6); htons 365 drivers/staging/octeon/ethernet-tx.c if ((skb->protocol == htons(ETH_P_IP)) && htons 369 drivers/staging/octeon/ethernet-tx.c (ip_hdr(skb)->frag_off == htons(1 << 14))) && htons 578 drivers/staging/octeon/ethernet-tx.c if (skb->protocol == htons(ETH_P_IP)) { htons 631 drivers/staging/octeon/ethernet-tx.c work->word2.snoip.is_rarp = skb->protocol == htons(ETH_P_RARP); htons 632 drivers/staging/octeon/ethernet-tx.c work->word2.snoip.is_arp = skb->protocol == htons(ETH_P_ARP); htons 1533 drivers/staging/qlge/qlge_main.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vlan_id); htons 1608 drivers/staging/qlge/qlge_main.c htons(IP_MF|IP_OFFSET))) { htons 1619 drivers/staging/qlge/qlge_main.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vlan_id); htons 1722 drivers/staging/qlge/qlge_main.c htons(IP_MF|IP_OFFSET))) { htons 1733 drivers/staging/qlge/qlge_main.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vlan_id); htons 2033 drivers/staging/qlge/qlge_main.c htons(IP_MF|IP_OFFSET))) { htons 2045 drivers/staging/qlge/qlge_main.c __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vlan_id); htons 2583 drivers/staging/qlge/qlge_main.c if (likely(l3_proto == htons(ETH_P_IP))) { htons 2591 drivers/staging/qlge/qlge_main.c } else if (l3_proto == htons(ETH_P_IPV6)) { htons 1309 drivers/staging/rtl8188eu/core/rtw_recv.c be_tmp = htons(len); htons 1580 drivers/staging/rtl8188eu/core/rtw_recv.c len = htons(sub_skb->len); htons 1082 drivers/staging/rtl8188eu/core/rtw_xmit.c *(__be16 *)(data + SNAP_SIZE) = htons(h_proto); htons 238 drivers/staging/rtl8188eu/os_dep/os_intfs.c case htons(ETH_P_IP): htons 273 drivers/staging/rtl8188eu/os_dep/os_intfs.c case htons(ETH_P_IP): htons 51 drivers/staging/rtl8192e/rtllib_rx.c skb->protocol = htons(ETH_P_80211_RAW); htons 152 drivers/staging/rtl8192e/rtllib_tx.c *(__be16 *)(data + SNAP_SIZE) = htons(h_proto); htons 240 drivers/staging/rtl8192e/rtllib_tx.c if (eth->h_proto != htons(ETH_P_IP)) htons 54 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c skb->protocol = htons(ETH_P_80211_RAW); htons 1284 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c len = be16_to_cpu(htons(sub_skb->len)); htons 159 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c *(__be16 *)(data + SNAP_SIZE) = htons(h_proto); htons 266 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c if (eth->h_proto != htons(ETH_P_IP)) htons 396 drivers/staging/rtl8712/rtl8712_recv.c len = htons(sub_skb->len); htons 644 drivers/staging/rtl8712/rtl871x_recv.c __be16 be_tmp = htons(len); htons 569 drivers/staging/rtl8712/rtl871x_xmit.c *(__be16 *)(data + SNAP_SIZE) = htons(h_proto); htons 1700 drivers/staging/rtl8723bs/core/rtw_recv.c be_tmp = htons(len); htons 1546 drivers/staging/rtl8723bs/core/rtw_xmit.c *(__be16 *)(data + SNAP_SIZE) = htons(h_proto); htons 387 drivers/staging/rtl8723bs/os_dep/os_intfs.c case htons(ETH_P_IP): htons 90 drivers/staging/rtl8723bs/os_dep/recv_linux.c len = htons(sub_skb->len); htons 92 drivers/staging/wilc1000/wilc_mon.c skb->protocol = htons(ETH_P_802_2); htons 185 drivers/staging/wilc1000/wilc_mon.c skb2->protocol = htons(ETH_P_802_2); htons 148 drivers/staging/wilc1000/wilc_wlan.c if (eth_hdr_ptr->h_proto != htons(ETH_P_IP)) htons 153 drivers/staging/wlan-ng/p80211conv.c e_snap->type = htons(proto); htons 411 drivers/staging/wlan-ng/p80211conv.c e_hdr->type = htons(payload_length); htons 479 drivers/staging/wlan-ng/p80211conv.c e_hdr->type = htons(payload_length); htons 289 drivers/staging/wlan-ng/p80211netdev.c skb->protocol = htons(ETH_P_80211_RAW); htons 1506 drivers/target/iscsi/cxgbit/cxgbit_cm.c req->reply_ctrl = htons(NO_REPLY_V(0) | QUEUENO_V(csk->rss_qid)); htons 1507 drivers/target/iscsi/cxgbit/cxgbit_cm.c req->word_cookie = htons(0); htons 1542 drivers/target/iscsi/cxgbit/cxgbit_cm.c req->reply_ctrl = htons(NO_REPLY_V(0) | QUEUENO_V(csk->rss_qid)); htons 1543 drivers/target/iscsi/cxgbit/cxgbit_cm.c req->word_cookie = htons(0); htons 148 drivers/target/iscsi/cxgbit/cxgbit_target.c cpl->mpdu = htons(DIV_ROUND_UP(iso_info->mpdu, 4)); htons 2736 drivers/tty/n_gsm.c skb->protocol = htons(ETH_P_IP); htons 2795 drivers/tty/n_gsm.c if (nc->protocol != htons(ETH_P_IP)) htons 231 drivers/usb/gadget/function/f_phonet.c if (skb->protocol != htons(ETH_P_PHONET)) htons 334 drivers/usb/gadget/function/f_phonet.c skb->protocol = htons(ETH_P_PHONET); htons 54 fs/afs/addr_list.c srx->transport.sin6.sin6_port = htons(port); htons 306 fs/afs/addr_list.c srx->transport.sin.sin_port = htons(port); htons 346 fs/afs/addr_list.c srx->transport.sin6.sin6_port = htons(port); htons 457 fs/afs/cmservice.c r->time_mid = htons(ntohl(b[1])); htons 458 fs/afs/cmservice.c r->time_hi_and_version = htons(ntohl(b[2])); htons 568 fs/afs/cmservice.c r->time_mid = htons(ntohl(b[1])); htons 569 fs/afs/cmservice.c r->time_hi_and_version = htons(ntohl(b[2])); htons 159 fs/afs/dir_edit.c block->hdr.npages = htons(1); htons 58 fs/afs/rxrpc.c srx.transport.sin6.sin6_port = htons(AFS_CM_PORT); htons 78 fs/afs/vlclient.c uuid->time_mid = htons(ntohl(xdr->time_mid)); htons 79 fs/afs/vlclient.c uuid->time_hi_and_version = htons(ntohl(xdr->time_hi_and_version)); htons 71 fs/afs/xdr_fs.h #define AFS_DIR_MAGIC htons(1234) htons 2571 fs/cifs/connect.c port = htons(CIFS_PORT); htons 2575 fs/cifs/connect.c port = htons(RFC1001_PORT); htons 3948 fs/cifs/connect.c if (sport == htons(RFC1001_PORT)) htons 3970 fs/cifs/connect.c *sport = htons(CIFS_PORT); htons 3977 fs/cifs/connect.c *sport = htons(RFC1001_PORT); htons 195 fs/cifs/netmisc.c ((struct sockaddr_in *)addr)->sin_port = htons(port); htons 198 fs/cifs/netmisc.c ((struct sockaddr_in6 *)addr)->sin6_port = htons(port); htons 599 fs/cifs/smbdirect.c *sport = htons(port); htons 869 fs/nfs/pnfs_nfs.c port = htons((tmp[0] << 8) | (tmp[1])); htons 258 fs/ocfs2/cluster/nodemanager.c node->nd_ipv4_port = htons(tmp); htons 1631 fs/ocfs2/cluster/tcp.c myaddr.sin_port = htons(0); /* any port */ htons 120 include/keys/trusted.h *(uint16_t *) & buf->data[buf->len] = htons(value); htons 131 include/linux/can/dev.h if (skb->protocol == htons(ETH_P_CAN)) { htons 135 include/linux/can/dev.h } else if (skb->protocol == htons(ETH_P_CANFD)) { htons 226 include/linux/ceph/decode.h __be16 ss_family = htons(a->in_addr.ss_family); htons 210 include/linux/etherdevice.h proto &= htons(0xFF00); htons 213 include/linux/etherdevice.h return (__force u16)proto >= (__force u16)htons(ETH_P_802_3_MIN); htons 112 include/linux/hdlc.h return htons(ETH_P_HDLC); htons 303 include/linux/if_vlan.h case htons(ETH_P_8021Q): htons 304 include/linux/if_vlan.h case htons(ETH_P_8021AD): htons 314 include/linux/if_vlan.h if (proto == htons(ETH_P_8021Q) && features & NETIF_F_HW_VLAN_CTAG_TX) htons 316 include/linux/if_vlan.h if (proto == htons(ETH_P_8021AD) && features & NETIF_F_HW_VLAN_STAG_TX) htons 365 include/linux/if_vlan.h veth->h_vlan_TCI = htons(vlan_tci); htons 654 include/linux/if_vlan.h skb->protocol = htons(ETH_P_802_3); htons 659 include/linux/if_vlan.h skb->protocol = htons(ETH_P_802_2); htons 4376 include/linux/netdevice.h if (protocol == htons(ETH_P_FCOE)) htons 4387 include/linux/netdevice.h case htons(ETH_P_IP): htons 4389 include/linux/netdevice.h case htons(ETH_P_IPV6): htons 39 include/linux/sunrpc/addr.h ((struct sockaddr_in *)sap)->sin_port = htons(port); htons 42 include/linux/sunrpc/addr.h ((struct sockaddr_in6 *)sap)->sin6_port = htons(port); htons 90 include/linux/virtio_net.h skb->protocol == htons(ETH_P_IP)) { htons 91 include/linux/virtio_net.h skb->protocol = htons(ETH_P_IPV6); htons 298 include/net/ax25.h return htons(ETH_P_AX25); htons 39 include/net/dsfield.h iph->check = (__force __sum16)htons(check); htons 49 include/net/dsfield.h *p = (*p & htons((((u16)mask << 4) | 0xf00f))) | htons((u16)value << 4); htons 179 include/net/erspan.h if (eth->h_proto == htons(ETH_P_8021Q)) { htons 273 include/net/erspan.h if (eth->h_proto == htons(ETH_P_8021Q)) { htons 294 include/net/erspan.h md2->sgt = htons(sgt); htons 56 include/net/gue.h #define GUE_FLAG_PRIV htons(1<<0) /* Private flags are in options */ htons 95 include/net/inet_ecn.h check += (__force u16)htons(0xFFFB) + (__force u16)htons(ecn); htons 109 include/net/inet_ecn.h check += (__force u16)htons(0x100); htons 275 include/net/inet_ecn.h if (skb->protocol == htons(ETH_P_IP)) htons 277 include/net/inet_ecn.h else if (skb->protocol == htons(ETH_P_IPV6)) htons 290 include/net/inet_ecn.h if (skb->protocol == htons(ETH_P_IP)) htons 292 include/net/inet_ecn.h else if (skb->protocol == htons(ETH_P_IPV6)) htons 387 include/net/ip.h return (iph->frag_off & htons(IP_MF | IP_OFFSET)) != 0; htons 399 include/net/ip.h check += (__force u32)htons(0x0100); htons 502 include/net/ip.h if ((iph->frag_off & htons(IP_DF)) && !skb->ignore_df) { htons 509 include/net/ip.h iph->id = htons(inet_sk(sk)->inet_id); htons 318 include/net/ip_tunnels.h case htons(ETH_P_IPV6): htons 322 include/net/ip_tunnels.h case htons(ETH_P_IP): htons 377 include/net/ip_tunnels.h if (skb->protocol == htons(ETH_P_IP)) htons 379 include/net/ip_tunnels.h else if (skb->protocol == htons(ETH_P_IPV6)) htons 388 include/net/ip_tunnels.h if (skb->protocol == htons(ETH_P_IP)) htons 390 include/net/ip_tunnels.h else if (skb->protocol == htons(ETH_P_IPV6)) htons 253 include/net/llc_pdu.h if (skb->protocol == htons(ETH_P_802_2)) htons 266 include/net/llc_pdu.h if (skb->protocol == htons(ETH_P_802_2)) htons 340 include/net/llc_pdu.h if (ev_skb->protocol == htons(ETH_P_802_2)) { htons 20 include/net/mpls.h return eth_type == htons(ETH_P_MPLS_UC) || htons 21 include/net/mpls.h eth_type == htons(ETH_P_MPLS_MC); htons 85 include/net/netfilter/nf_queue.h case htons(ETH_P_IP): htons 91 include/net/netfilter/nf_queue.h case htons(ETH_P_IPV6): htons 287 include/net/nsh.h = (nsh->ver_flags_ttl_len & ~htons(xmask)) | htons(xflag); htons 19 include/net/tun_proto.h return htons(ETH_P_IP); htons 21 include/net/tun_proto.h return htons(ETH_P_IPV6); htons 23 include/net/tun_proto.h return htons(ETH_P_TEB); htons 25 include/net/tun_proto.h return htons(ETH_P_NSH); htons 27 include/net/tun_proto.h return htons(ETH_P_MPLS_UC); htons 35 include/net/tun_proto.h case htons(ETH_P_IP): htons 37 include/net/tun_proto.h case htons(ETH_P_IPV6): htons 39 include/net/tun_proto.h case htons(ETH_P_TEB): htons 41 include/net/tun_proto.h case htons(ETH_P_NSH): htons 43 include/net/tun_proto.h case htons(ETH_P_MPLS_UC): htons 243 include/net/udp.h return htons((((u64) hash * (max - min)) >> 32) + min); htons 88 include/net/udplite.h udp_hdr(skb)->len = htons(up->pcslen); htons 126 include/net/udplite.h udp_hdr(skb)->len = htons(up->pcslen); htons 304 include/net/vxlan.h case htons(ETH_P_IP): htons 307 include/net/vxlan.h case htons(ETH_P_IPV6): htons 316 include/net/vxlan.h skb->inner_protocol != htons(ETH_P_TEB) || htons 16 include/net/x25device.h return htons(ETH_P_X25); htons 855 include/net/xfrm.h port = htons(uli->icmpt.type); htons 858 include/net/xfrm.h port = htons(uli->mht.type); htons 861 include/net/xfrm.h port = htons(ntohl(uli->gre_key) >> 16); htons 882 include/net/xfrm.h port = htons(uli->icmpt.code); htons 885 include/net/xfrm.h port = htons(ntohl(uli->gre_key) & 0xffff); htons 264 include/rdma/ib_sa.h ib->ib.dlid = htons(ntohl(opa->opa.dlid)); htons 265 include/rdma/ib_sa.h ib->ib.slid = htons(ntohl(opa->opa.slid)); htons 106 include/scsi/fc_encode.h ct->hdr.ct_cmd = htons((u16) op); htons 537 include/scsi/fc_encode.h csp->sp_bb_cred = htons(10); /* this gets set by gateway */ htons 538 include/scsi/fc_encode.h csp->sp_bb_data = htons((u16) lport->mfs); htons 540 include/scsi/fc_encode.h cp->cp_class = htons(FC_CPC_VALID | FC_CPC_SEQ); htons 541 include/scsi/fc_encode.h csp->sp_features = htons(FC_SP_FT_CIRO); htons 542 include/scsi/fc_encode.h csp->sp_tot_seq = htons(255); /* seq. we accept */ htons 543 include/scsi/fc_encode.h csp->sp_rel_off = htons(0x1f); htons 546 include/scsi/fc_encode.h cp->cp_rdfs = htons((u16) lport->mfs); htons 547 include/scsi/fc_encode.h cp->cp_con_seq = htons(255); htons 568 include/scsi/fc_encode.h sp->sp_bb_cred = htons(10); /* this gets set by gateway */ htons 569 include/scsi/fc_encode.h sp->sp_bb_data = htons((u16) lport->mfs); htons 571 include/scsi/fc_encode.h cp->cp_class = htons(FC_CPC_VALID | FC_CPC_SEQ); htons 573 include/scsi/fc_encode.h sp->sp_features = htons(FC_SP_FT_NPIV); htons 593 include/scsi/fc_encode.h sp->sp_bb_cred = htons(10); /* this gets set by gateway */ htons 594 include/scsi/fc_encode.h sp->sp_bb_data = htons((u16) lport->mfs); htons 596 include/scsi/fc_encode.h cp->cp_class = htons(FC_CPC_VALID | FC_CPC_SEQ); htons 637 include/scsi/fc_encode.h rec->rec_ox_id = htons(ep->oxid); htons 638 include/scsi/fc_encode.h rec->rec_rx_id = htons(ep->rxid); htons 655 include/scsi/fc_encode.h pp->prli.prli_len = htons(sizeof(*pp)); htons 288 include/uapi/linux/tipc_config.h tlv->tlv_len = htons(len); htons 298 include/uapi/linux/tipc_config.h tlv->tlv_type = htons(type); htons 308 include/uapi/linux/tipc_config.h tlv_ptr->tlv_type = htons(type); htons 309 include/uapi/linux/tipc_config.h tlv_ptr->tlv_len = htons(tlv_len); htons 408 include/uapi/linux/tipc_config.h tcm_hdr->tcm_type = htons(cmd); htons 409 include/uapi/linux/tipc_config.h tcm_hdr->tcm_flags = htons(flags); htons 52 lib/test_blackhole_dev.c uh->source = uh->dest = htons(UDP_PORT); htons 53 lib/test_blackhole_dev.c uh->len = htons(data_len); htons 67 lib/test_blackhole_dev.c skb->protocol = htons(ETH_P_IPV6); htons 6483 lib/test_bpf.c skb->protocol = htons(ETH_P_IP); htons 6490 lib/test_bpf.c skb->vlan_proto = htons(ETH_P_IP); htons 6830 lib/test_bpf.c skb[i]->protocol = htons(ETH_P_IP); htons 754 net/6lowpan/iphc.c hdr.payload_len = htons(lowpan_802154_cb(skb)->d_size - htons 757 net/6lowpan/iphc.c hdr.payload_len = htons(skb->len); htons 760 net/6lowpan/iphc.c hdr.payload_len = htons(skb->len); htons 1140 net/6lowpan/iphc.c if (skb->protocol != htons(ETH_P_IPV6)) htons 55 net/6lowpan/nhc_udp.c uh.dest = htons(val + LOWPAN_NHC_UDP_8BIT_PORT); htons 59 net/6lowpan/nhc_udp.c uh.source = htons(val + LOWPAN_NHC_UDP_8BIT_PORT); htons 64 net/6lowpan/nhc_udp.c uh.source = htons(LOWPAN_NHC_UDP_4BIT_PORT + (val >> 4)); htons 65 net/6lowpan/nhc_udp.c uh.dest = htons(LOWPAN_NHC_UDP_4BIT_PORT + (val & 0x0f)); htons 92 net/6lowpan/nhc_udp.c uh.len = htons(lowpan_802154_cb(skb)->d_size - htons 95 net/6lowpan/nhc_udp.c uh.len = htons(skb->len + sizeof(struct udphdr)); htons 98 net/6lowpan/nhc_udp.c uh.len = htons(skb->len + sizeof(struct udphdr)); htons 53 net/802/fc.c fcllc->ethertype = htons(type); htons 67 net/802/fddi.c fddi->hdr.llc_snap.ethertype = htons(type); htons 109 net/802/fddi.c type = htons(ETH_P_802_2); htons 218 net/802/garp.c skb->protocol = htons(ETH_P_802_2); htons 222 net/802/garp.c put_unaligned(htons(GARP_PROTOCOL_ID), &gp->protocol); htons 516 net/802/garp.c if (get_unaligned(&gp->protocol) != htons(GARP_PROTOCOL_ID)) htons 76 net/802/hippi.c hip->snap.ethertype = htons(type); htons 225 net/8021q/vlan.c err = vlan_check_real_dev(real_dev, htons(ETH_P_8021Q), vlan_id, htons 269 net/8021q/vlan.c vlan->vlan_proto = htons(ETH_P_8021Q); htons 386 net/8021q/vlan.c vlan_vid_add(dev, htons(ETH_P_8021Q), 0); htons 390 net/8021q/vlan.c vlan_vid_del(dev, htons(ETH_P_8021Q), 0); htons 508 net/8021q/vlan.c err = vlan_filter_push_vids(vlan_info, htons(ETH_P_8021Q)); htons 514 net/8021q/vlan.c vlan_filter_drop_vids(vlan_info, htons(ETH_P_8021Q)); htons 518 net/8021q/vlan.c err = vlan_filter_push_vids(vlan_info, htons(ETH_P_8021AD)); htons 524 net/8021q/vlan.c vlan_filter_drop_vids(vlan_info, htons(ETH_P_8021AD)); htons 42 net/8021q/vlan.h case htons(ETH_P_8021Q): htons 44 net/8021q/vlan.h case htons(ETH_P_8021AD): htons 170 net/8021q/vlan_core.c if (proto == htons(ETH_P_8021Q) && htons 173 net/8021q/vlan_core.c if (proto == htons(ETH_P_8021AD) && htons 60 net/8021q/vlan_dev.c vhdr->h_vlan_TCI = htons(vlan_tci); htons 67 net/8021q/vlan_dev.c vhdr->h_vlan_encapsulated_proto = htons(type); htons 69 net/8021q/vlan_dev.c vhdr->h_vlan_encapsulated_proto = htons(len); htons 30 net/8021q/vlan_gvrp.c __be16 vlan_id = htons(vlan->vlan_id); htons 32 net/8021q/vlan_gvrp.c if (vlan->vlan_proto != htons(ETH_P_8021Q)) htons 41 net/8021q/vlan_gvrp.c __be16 vlan_id = htons(vlan->vlan_id); htons 43 net/8021q/vlan_gvrp.c if (vlan->vlan_proto != htons(ETH_P_8021Q)) htons 28 net/8021q/vlan_mvrp.c .pkttype.type = htons(ETH_P_MVRP), htons 36 net/8021q/vlan_mvrp.c __be16 vlan_id = htons(vlan->vlan_id); htons 38 net/8021q/vlan_mvrp.c if (vlan->vlan_proto != htons(ETH_P_8021Q)) htons 47 net/8021q/vlan_mvrp.c __be16 vlan_id = htons(vlan->vlan_id); htons 49 net/8021q/vlan_mvrp.c if (vlan->vlan_proto != htons(ETH_P_8021Q)) htons 64 net/8021q/vlan_netlink.c case htons(ETH_P_8021Q): htons 65 net/8021q/vlan_netlink.c case htons(ETH_P_8021AD): htons 165 net/8021q/vlan_netlink.c proto = htons(ETH_P_8021Q); htons 934 net/9p/trans_fd.c cl.sin_port = htons((ushort)port); htons 964 net/9p/trans_fd.c sin_server.sin_port = htons(opts.port); htons 611 net/9p/trans_rdma.c cl.sin_port = htons((ushort)port); htons 669 net/9p/trans_rdma.c rdma->addr.sin_port = htons(opts.port); htons 121 net/appletalk/aarp.c skb->protocol = htons(ETH_P_ATALK); htons 126 net/appletalk/aarp.c eah->hw_type = htons(AARP_HW_TYPE_ETHERNET); htons 127 net/appletalk/aarp.c eah->pa_type = htons(ETH_P_ATALK); htons 130 net/appletalk/aarp.c eah->function = htons(AARP_REQUEST); htons 168 net/appletalk/aarp.c skb->protocol = htons(ETH_P_ATALK); htons 173 net/appletalk/aarp.c eah->hw_type = htons(AARP_HW_TYPE_ETHERNET); htons 174 net/appletalk/aarp.c eah->pa_type = htons(ETH_P_ATALK); htons 177 net/appletalk/aarp.c eah->function = htons(AARP_REPLY); htons 219 net/appletalk/aarp.c skb->protocol = htons(ETH_P_ATALK); htons 224 net/appletalk/aarp.c eah->hw_type = htons(AARP_HW_TYPE_ETHERNET); htons 225 net/appletalk/aarp.c eah->pa_type = htons(ETH_P_ATALK); htons 228 net/appletalk/aarp.c eah->function = htons(AARP_PROBE); htons 451 net/appletalk/aarp.c if (iface->address.s_net != htons(sa->sat_addr.s_net) || htons 455 net/appletalk/aarp.c iface->address.s_net = htons(sa->sat_addr.s_net); htons 574 net/appletalk/aarp.c *((__be16 *)skb->data) = htons(skb->len); htons 592 net/appletalk/aarp.c skb->protocol = htons(ETH_P_PPPTALK); htons 602 net/appletalk/aarp.c skb->protocol = htons(ETH_P_ATALK); htons 263 net/appletalk/ddp.c atif->address.s_net = htons(probe_net); htons 312 net/appletalk/ddp.c proxy_addr->s_net = htons(probe_net); htons 486 net/appletalk/ddp.c atrtr_default.gateway.s_net = htons(0); htons 757 net/appletalk/ddp.c if (nr->nr_firstnet == htons(0) && htons 758 net/appletalk/ddp.c nr->nr_lastnet == htons(0xFFFE)) { htons 772 net/appletalk/ddp.c sa->sat_addr.s_net = htons(ct); htons 998 net/appletalk/ddp.c return sum ? htons((unsigned short)sum) : htons(0xFFFF); htons 1116 net/appletalk/ddp.c if (!ap || ap->s_net == htons(ATADDR_ANYNET)) htons 1145 net/appletalk/ddp.c if (addr->sat_addr.s_net == htons(ATADDR_ANYNET)) { htons 1296 net/appletalk/ddp.c skb->protocol = htons(ETH_P_IP); htons 1363 net/appletalk/ddp.c ddp->deh_len_hops = htons(len_hops); htons 1550 net/appletalk/ddp.c ddp->deh_len_hops = htons(skb->len + (DDP_MAXHOPS << 10)); htons 1649 net/appletalk/ddp.c ddp->deh_len_hops = htons(len + sizeof(*ddp)); htons 395 net/atm/br2684.c if (type == htons(ETH_P_IP) && htons 399 net/atm/br2684.c if (type == htons(ETH_P_ARP)) htons 458 net/atm/br2684.c skb->protocol = htons(ETH_P_IPV6); htons 461 net/atm/br2684.c skb->protocol = htons(ETH_P_IP); htons 486 net/atm/br2684.c skb->protocol = htons(ETH_P_IP); htons 488 net/atm/br2684.c skb->protocol = htons(ETH_P_IPV6); htons 222 net/atm/clip.c skb->protocol = htons(ETH_P_IP); htons 226 net/atm/clip.c if (skb->protocol == htons(ETH_P_ARP)) { htons 248 net/atm/lec.c lec_h->le_header = htons(priv->lecid); htons 620 net/atm/lec.c if (*(__be16 *) skb->data == htons(priv->lecid) || htons 584 net/atm/mpc.c if (eth->h_proto != htons(ETH_P_IP)) htons 127 net/ax25/ax25_in.c skb->protocol = htons(ETH_P_IP); htons 245 net/ax25/ax25_in.c skb->protocol = htons(ETH_P_IP); htons 255 net/ax25/ax25_in.c skb->protocol = htons(ETH_P_ARP); htons 818 net/batman-adv/bat_iv_ogm.c batadv_ogm_packet->tvlv_len = htons(tvlv_len); htons 301 net/batman-adv/bat_v_ogm.c ogm_packet->tvlv_len = htons(tvlv_len); htons 428 net/batman-adv/bridge_loop_avoidance.c skb = vlan_insert_tag(skb, htons(ETH_P_8021Q), htons 665 net/batman-adv/bridge_loop_avoidance.c crc = htons(backbone_gw->crc); htons 1109 net/batman-adv/bridge_loop_avoidance.c } while (proto == htons(ETH_P_8021Q)); htons 1112 net/batman-adv/bridge_loop_avoidance.c if (proto != htons(ETH_P_ARP)) htons 1127 net/batman-adv/bridge_loop_avoidance.c if (arphdr->ar_hrd != htons(ARPHRD_ETHER)) htons 1129 net/batman-adv/bridge_loop_avoidance.c if (arphdr->ar_pro != htons(ETH_P_IP)) htons 1333 net/batman-adv/bridge_loop_avoidance.c group = htons(crc16(0, primary_if->net_dev->dev_addr, ETH_ALEN)); htons 1540 net/batman-adv/bridge_loop_avoidance.c bat_priv->bla.claim_dest.group = htons(crc); htons 298 net/batman-adv/distributed-arp-table.c vid = htons(dat->vid); htons 1069 net/batman-adv/distributed-arp-table.c if (ethhdr->h_proto != htons(ETH_P_ARP)) htons 1080 net/batman-adv/distributed-arp-table.c if (arphdr->ar_hrd != htons(ARPHRD_ETHER)) htons 1083 net/batman-adv/distributed-arp-table.c if (arphdr->ar_pro != htons(ETH_P_IP)) htons 1108 net/batman-adv/distributed-arp-table.c if (arphdr->ar_op != htons(ARPOP_REQUEST)) { htons 1175 net/batman-adv/distributed-arp-table.c skb = vlan_insert_tag(skb, htons(ETH_P_8021Q), htons 1511 net/batman-adv/distributed-arp-table.c if (!udphdr || udphdr->source != htons(67)) htons 1545 net/batman-adv/distributed-arp-table.c if (proto != htons(ETH_P_IP)) htons 480 net/batman-adv/fragmentation.c frag_header.seqno = htons(atomic_inc_return(&bat_priv->frag_seqno)); htons 483 net/batman-adv/fragmentation.c frag_header.total_size = htons(skb->len); htons 643 net/batman-adv/gateway_client.c if (proto == htons(ETH_P_8021Q)) { htons 654 net/batman-adv/gateway_client.c case htons(ETH_P_IP): htons 666 net/batman-adv/gateway_client.c case htons(ETH_P_IPV6): htons 690 net/batman-adv/gateway_client.c case htons(ETH_P_IP): htons 691 net/batman-adv/gateway_client.c if (udphdr->dest == htons(67)) htons 693 net/batman-adv/gateway_client.c else if (udphdr->source == htons(67)) htons 696 net/batman-adv/gateway_client.c case htons(ETH_P_IPV6): htons 697 net/batman-adv/gateway_client.c if (udphdr->dest == htons(547)) htons 699 net/batman-adv/gateway_client.c else if (udphdr->source == htons(547)) htons 716 net/batman-adv/hard-interface.c __be16 ethertype = htons(ETH_P_BATMAN); htons 397 net/batman-adv/main.c case htons(ETH_P_8021Q): htons 405 net/batman-adv/main.c case htons(ETH_P_IP): htons 412 net/batman-adv/main.c case htons(ETH_P_IPV6): htons 650 net/batman-adv/main.c if (ethhdr->h_proto != htons(ETH_P_8021Q)) htons 222 net/batman-adv/multicast.c if (br_ip_entry->addr.proto == htons(ETH_P_IPV6) && htons 563 net/batman-adv/multicast.c if (src->proto == htons(ETH_P_IP)) htons 566 net/batman-adv/multicast.c else if (src->proto == htons(ETH_P_IPV6)) htons 606 net/batman-adv/multicast.c if (br_ip_entry->addr.proto == htons(ETH_P_IP)) { htons 620 net/batman-adv/multicast.c if (br_ip_entry->addr.proto == htons(ETH_P_IPV6)) { htons 1163 net/batman-adv/network-coding.c coded_packet->coded_len = htons(coding_len); htons 94 net/batman-adv/send.c ethhdr->h_proto = htons(ETH_P_BATMAN); htons 97 net/batman-adv/send.c skb->protocol = htons(ETH_P_BATMAN); htons 228 net/batman-adv/soft-interface.c if (proto != htons(ETH_P_BATMAN)) { htons 455 net/batman-adv/soft-interface.c if (vhdr->h_vlan_encapsulated_proto != htons(ETH_P_BATMAN)) htons 670 net/batman-adv/soft-interface.c if (proto != htons(ETH_P_8021Q)) htons 728 net/batman-adv/soft-interface.c if (proto != htons(ETH_P_8021Q)) htons 483 net/batman-adv/translation-table.c tt_change_node->change.vid = htons(common->vid); htons 888 net/batman-adv/translation-table.c (*tt_data)->num_vlan = htons(num_vlan); htons 892 net/batman-adv/translation-table.c tt_vlan->vid = htons(vlan->vid); htons 967 net/batman-adv/translation-table.c (*tt_data)->num_vlan = htons(num_vlan); htons 975 net/batman-adv/translation-table.c tt_vlan->vid = htons(vlan->vid); htons 2723 net/batman-adv/translation-table.c tmp_vid = htons(tt_common->vid); htons 2782 net/batman-adv/translation-table.c tmp_vid = htons(tt_common->vid); htons 3019 net/batman-adv/translation-table.c tt_change->vid = htons(tt_common_entry->vid); htons 3173 net/batman-adv/translation-table.c tvlv_tt_data->num_vlan = htons(num_vlan); htons 3780 net/batman-adv/translation-table.c tvlv_roam.vid = htons(vid); htons 240 net/batman-adv/tvlv.c tvlv_new->tvlv_hdr.len = htons(tvlv_value_len); htons 615 net/batman-adv/tvlv.c unicast_tvlv_packet->tvlv_len = htons(tvlv_len); htons 624 net/batman-adv/tvlv.c tvlv_hdr->len = htons(tvlv_value_len); htons 315 net/bluetooth/6lowpan.c local_skb->protocol = htons(ETH_P_IPV6); htons 345 net/bluetooth/6lowpan.c local_skb->protocol = htons(ETH_P_IPV6); htons 84 net/bluetooth/bnep/core.c rsp.resp = htons(resp); htons 80 net/bluetooth/bnep/netdev.c r->len = htons(ETH_ALEN * 2); htons 101 net/bluetooth/bnep/netdev.c r->len = htons(skb->len - len); htons 142 net/bluetooth/bnep/netdev.c if (get_unaligned((__be16 *) skb->data) == htons(0xFFFF)) htons 138 net/bridge/br_arp_nd_proxy.c if (parp->ar_pro != htons(ETH_P_IP) || htons 165 net/bridge/br_arp_nd_proxy.c if (parp->ar_op != htons(ARPOP_REQUEST)) htons 267 net/bridge/br_arp_nd_proxy.c reply->protocol = htons(ETH_P_IPV6); htons 292 net/bridge/br_arp_nd_proxy.c eth_hdr(reply)->h_proto = htons(ETH_P_IPV6); htons 293 net/bridge/br_arp_nd_proxy.c reply->protocol = htons(ETH_P_IPV6); htons 331 net/bridge/br_arp_nd_proxy.c pip6->payload_len = htons(sizeof(*na) + na_olen); htons 63 net/bridge/br_device.c (eth->h_proto == htons(ETH_P_ARP) || htons 64 net/bridge/br_device.c eth->h_proto == htons(ETH_P_RARP)) && htons 68 net/bridge/br_device.c skb->protocol == htons(ETH_P_IPV6) && htons 42 net/bridge/br_forward.c (skb->protocol == htons(ETH_P_8021Q) || htons 43 net/bridge/br_forward.c skb->protocol == htons(ETH_P_8021AD))) { htons 113 net/bridge/br_input.c (skb->protocol == htons(ETH_P_ARP) || htons 114 net/bridge/br_input.c skb->protocol == htons(ETH_P_RARP))) { htons 117 net/bridge/br_input.c skb->protocol == htons(ETH_P_IPV6) && htons 72 net/bridge/br_mdb.c if (ip->proto == htons(ETH_P_IP)) htons 103 net/bridge/br_mdb.c if (mp->addr.proto == htons(ETH_P_IP)) htons 106 net/bridge/br_mdb.c if (mp->addr.proto == htons(ETH_P_IPV6)) htons 354 net/bridge/br_mdb.c if (entry->addr.proto == htons(ETH_P_IP)) htons 399 net/bridge/br_mdb.c if (entry->addr.proto == htons(ETH_P_IP)) htons 532 net/bridge/br_mdb.c if (entry->addr.proto == htons(ETH_P_IP)) { htons 538 net/bridge/br_mdb.c } else if (entry->addr.proto == htons(ETH_P_IPV6)) { htons 89 net/bridge/br_multicast.c br_dst.proto = htons(ETH_P_IP); htons 104 net/bridge/br_multicast.c br_dst.proto = htons(ETH_P_IPV6); htons 127 net/bridge/br_multicast.c case htons(ETH_P_IP): htons 131 net/bridge/br_multicast.c case htons(ETH_P_IPV6): htons 235 net/bridge/br_multicast.c skb->protocol = htons(ETH_P_IP); htons 247 net/bridge/br_multicast.c eth->h_proto = htons(ETH_P_IP); htons 256 net/bridge/br_multicast.c iph->tot_len = htons(sizeof(*iph) + igmp_hdr_size + 4); htons 258 net/bridge/br_multicast.c iph->frag_off = htons(IP_DF); htons 331 net/bridge/br_multicast.c skb->protocol = htons(ETH_P_IPV6); htons 338 net/bridge/br_multicast.c eth->h_proto = htons(ETH_P_IPV6); htons 346 net/bridge/br_multicast.c ip6h->payload_len = htons(8 + mld_hdr_size); htons 384 net/bridge/br_multicast.c mldq->mld_maxdelay = htons((u16)jiffies_to_msecs(interval)); htons 395 net/bridge/br_multicast.c mld2q->mld2q_mrc = htons((u16)jiffies_to_msecs(interval)); htons 428 net/bridge/br_multicast.c case htons(ETH_P_IP): htons 431 net/bridge/br_multicast.c case htons(ETH_P_IPV6): htons 599 net/bridge/br_multicast.c br_group.proto = htons(ETH_P_IP); htons 619 net/bridge/br_multicast.c br_group.proto = htons(ETH_P_IPV6); htons 704 net/bridge/br_multicast.c if (ip->proto == htons(ETH_P_IP)) htons 756 net/bridge/br_multicast.c br_group.proto = htons(ETH_P_IP); htons 760 net/bridge/br_multicast.c br_group.proto = htons(ETH_P_IPV6); htons 1114 net/bridge/br_multicast.c case htons(ETH_P_IP): htons 1117 net/bridge/br_multicast.c case htons(ETH_P_IPV6): htons 1258 net/bridge/br_multicast.c saddr.proto = htons(ETH_P_IP); htons 1340 net/bridge/br_multicast.c saddr.proto = htons(ETH_P_IPV6); htons 1502 net/bridge/br_multicast.c br_group.proto = htons(ETH_P_IP); htons 1526 net/bridge/br_multicast.c br_group.proto = htons(ETH_P_IPV6); htons 1555 net/bridge/br_multicast.c case htons(ETH_P_IP): htons 1559 net/bridge/br_multicast.c case htons(ETH_P_IPV6): htons 1742 net/bridge/br_multicast.c case htons(ETH_P_IP): htons 1746 net/bridge/br_multicast.c case htons(ETH_P_IPV6): htons 2253 net/bridge/br_multicast.c eth.h_proto = htons(proto); htons 2321 net/bridge/br_multicast.c case htons(ETH_P_IP): htons 2356 net/bridge/br_multicast.c case htons(ETH_P_IPV6): htons 67 net/bridge/br_netfilter_hooks.c (!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_IP)) htons 70 net/bridge/br_netfilter_hooks.c (!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_IPV6)) htons 73 net/bridge/br_netfilter_hooks.c (!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_ARP)) htons 79 net/bridge/br_netfilter_hooks.c else if (skb->protocol == htons(ETH_P_8021Q)) htons 89 net/bridge/br_netfilter_hooks.c return vlan_proto(skb) == htons(ETH_P_IP) && brnet->filter_vlan_tagged; htons 97 net/bridge/br_netfilter_hooks.c return vlan_proto(skb) == htons(ETH_P_IPV6) && htons 105 net/bridge/br_netfilter_hooks.c return vlan_proto(skb) == htons(ETH_P_ARP) && brnet->filter_vlan_tagged; htons 118 net/bridge/br_netfilter_hooks.c return skb->protocol == htons(ETH_P_PPP_SES) && htons 119 net/bridge/br_netfilter_hooks.c pppoe_proto(skb) == htons(PPP_IP) && brnet->filter_pppoe_tagged; htons 127 net/bridge/br_netfilter_hooks.c return skb->protocol == htons(ETH_P_PPP_SES) && htons 128 net/bridge/br_netfilter_hooks.c pppoe_proto(skb) == htons(PPP_IPV6) && htons 251 net/bridge/br_netfilter_hooks.c skb->protocol = htons(ETH_P_8021Q); htons 254 net/bridge/br_netfilter_hooks.c skb->protocol = htons(ETH_P_PPP_SES); htons 459 net/bridge/br_netfilter_hooks.c if (skb->protocol == htons(ETH_P_8021Q)) htons 461 net/bridge/br_netfilter_hooks.c else if (skb->protocol == htons(ETH_P_PPP_SES)) htons 528 net/bridge/br_netfilter_hooks.c skb->protocol = htons(ETH_P_IP); htons 547 net/bridge/br_netfilter_hooks.c if (skb->protocol == htons(ETH_P_IP)) htons 550 net/bridge/br_netfilter_hooks.c if (skb->protocol == htons(ETH_P_IPV6)) htons 630 net/bridge/br_netfilter_hooks.c skb->protocol = htons(ETH_P_IP); htons 632 net/bridge/br_netfilter_hooks.c skb->protocol = htons(ETH_P_IPV6); htons 710 net/bridge/br_netfilter_hooks.c if (unlikely(((iph->frag_off & htons(IP_DF)) && !skb->ignore_df) || htons 750 net/bridge/br_netfilter_hooks.c skb->protocol == htons(ETH_P_IP)) { htons 778 net/bridge/br_netfilter_hooks.c skb->protocol == htons(ETH_P_IPV6)) { htons 847 net/bridge/br_netfilter_hooks.c skb->protocol = htons(ETH_P_IP); htons 849 net/bridge/br_netfilter_hooks.c skb->protocol = htons(ETH_P_IPV6); htons 233 net/bridge/br_netfilter_ipv6.c skb->protocol = htons(ETH_P_IPV6); htons 956 net/bridge/br_netlink.c case htons(ETH_P_8021Q): htons 957 net/bridge/br_netlink.c case htons(ETH_P_8021AD): htons 742 net/bridge/br_private.h case (htons(ETH_P_IP)): htons 746 net/bridge/br_private.h case (htons(ETH_P_IPV6)): htons 45 net/bridge/br_stp_bpdu.c skb->protocol = htons(ETH_P_802_2); htons 741 net/bridge/br_vlan.c br->vlan_proto == htons(ETH_P_8021Q)) { htons 755 net/bridge/br_vlan.c br->vlan_proto == htons(ETH_P_8021Q)) htons 864 net/bridge/br_vlan.c return __br_vlan_set_proto(br, htons(val)); htons 1067 net/bridge/br_vlan.c br->vlan_proto = htons(ETH_P_8021Q); htons 73 net/bridge/netfilter/ebt_among.c if (eth_hdr(skb)->h_proto == htons(ETH_P_IP)) { htons 81 net/bridge/netfilter/ebt_among.c } else if (eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) { htons 104 net/bridge/netfilter/ebt_among.c if (eth_hdr(skb)->h_proto == htons(ETH_P_IP)) { htons 112 net/bridge/netfilter/ebt_among.c } else if (eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) { htons 43 net/bridge/netfilter/ebt_arp.c if (ah->ar_pln != sizeof(__be32) || ah->ar_pro != htons(ETH_P_IP)) htons 72 net/bridge/netfilter/ebt_arp.c if (ah->ar_hln != ETH_ALEN || ah->ar_hrd != htons(ARPHRD_ETHER)) htons 106 net/bridge/netfilter/ebt_arp.c if ((e->ethproto != htons(ETH_P_ARP) && htons 107 net/bridge/netfilter/ebt_arp.c e->ethproto != htons(ETH_P_RARP)) || htons 34 net/bridge/netfilter/ebt_arpreply.c if (ap->ar_op != htons(ARPOP_REQUEST) || htons 36 net/bridge/netfilter/ebt_arpreply.c ap->ar_pro != htons(ETH_P_IP) || htons 69 net/bridge/netfilter/ebt_arpreply.c if (e->ethproto != htons(ETH_P_ARP) || htons 109 net/bridge/netfilter/ebt_ip.c if (e->ethproto != htons(ETH_P_IP) || htons 111 net/bridge/netfilter/ebt_ip6.c if (e->ethproto != htons(ETH_P_IPV6) || e->invflags & EBT_IPROTO) htons 98 net/bridge/netfilter/ebt_log.c htons(ETH_P_IP)) { htons 115 net/bridge/netfilter/ebt_log.c htons(ETH_P_IPV6)) { htons 139 net/bridge/netfilter/ebt_log.c ((eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) || htons 140 net/bridge/netfilter/ebt_log.c (eth_hdr(skb)->h_proto == htons(ETH_P_RARP)))) { htons 156 net/bridge/netfilter/ebt_log.c if (ah->ar_hrd == htons(1) && htons 30 net/bridge/netfilter/ebt_snat.c eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) { htons 83 net/bridge/netfilter/ebt_vlan.c if (e->ethproto != htons(ETH_P_8021Q)) { htons 126 net/bridge/netfilter/ebtables.c ethproto = htons(ETH_P_8021Q); htons 244 net/bridge/netfilter/nf_conntrack_bridge.c case htons(ETH_P_IP): htons 258 net/bridge/netfilter/nf_conntrack_bridge.c case htons(ETH_P_IPV6): htons 309 net/bridge/netfilter/nf_conntrack_bridge.c case htons(ETH_P_IP): htons 312 net/bridge/netfilter/nf_conntrack_bridge.c case htons(ETH_P_IPV6): htons 369 net/bridge/netfilter/nf_conntrack_bridge.c case htons(ETH_P_IP): htons 372 net/bridge/netfilter/nf_conntrack_bridge.c case htons(ETH_P_IPV6): { htons 378 net/bridge/netfilter/nf_conntrack_bridge.c if (protoff < 0 || (frag_off & htons(~0x7)) != 0) htons 56 net/bridge/netfilter/nft_meta_bridge.c nft_reg_store16(dest, htons(p_proto)); htons 95 net/bridge/netfilter/nft_reject_bridge.c niph->tot_len = htons(nskb->len); htons 119 net/bridge/netfilter/nft_reject_bridge.c if (ip_hdr(oldskb)->frag_off & htons(IP_OFFSET)) htons 157 net/bridge/netfilter/nft_reject_bridge.c niph->tot_len = htons(nskb->len); htons 211 net/bridge/netfilter/nft_reject_bridge.c nip6h->payload_len = htons(nskb->len - sizeof(struct ipv6hdr)); htons 234 net/bridge/netfilter/nft_reject_bridge.c if (thoff < 0 || thoff >= skb->len || (fo & htons(~0x7)) != 0) htons 282 net/bridge/netfilter/nft_reject_bridge.c nip6h->payload_len = htons(nskb->len - sizeof(struct ipv6hdr)); htons 309 net/bridge/netfilter/nft_reject_bridge.c case htons(ETH_P_IP): htons 330 net/bridge/netfilter/nft_reject_bridge.c case htons(ETH_P_IPV6): htons 179 net/caif/caif_dev.c skb->protocol = htons(ETH_P_CAIF); htons 59 net/caif/caif_usb.c skb->protocol = htons(ETH_P_IP); htons 101 net/caif/chnl_net.c skb->protocol = htons(ETH_P_IP); htons 104 net/caif/chnl_net.c skb->protocol = htons(ETH_P_IPV6); htons 207 net/can/af_can.c skb->protocol = htons(ETH_P_CAN); htons 211 net/can/af_can.c skb->protocol = htons(ETH_P_CANFD); htons 1833 net/ceph/messenger.c put_unaligned(htons(p), &((struct sockaddr_in *)&addr->in_addr)->sin_port); htons 1836 net/ceph/messenger.c put_unaligned(htons(p), &((struct sockaddr_in6 *)&addr->in_addr)->sin6_port); htons 304 net/core/dev.c if (pt->type == htons(ETH_P_ALL)) htons 2923 net/core/dev.c if (type == htons(ETH_P_TEB)) { htons 3151 net/core/dev.c if (!(iph->frag_off & htons(IP_DF))) htons 4684 net/core/dev.c case htons(ETH_P_ARP): htons 4685 net/core/dev.c case htons(ETH_P_IP): htons 4686 net/core/dev.c case htons(ETH_P_IPV6): htons 4687 net/core/dev.c case htons(ETH_P_8021Q): htons 4688 net/core/dev.c case htons(ETH_P_8021AD): htons 2891 net/core/ethtool.c match->mask.basic.n_proto = htons(0xffff); htons 2922 net/core/ethtool.c match->key.basic.n_proto = htons(ETH_P_IP); htons 2971 net/core/ethtool.c match->key.basic.n_proto = htons(ETH_P_IPV6); htons 3056 net/core/ethtool.c !!(ext_h_spec->vlan_tci & htons(0x1000)); htons 3058 net/core/ethtool.c !!(ext_m_spec->vlan_tci & htons(0x1000)); htons 2725 net/core/filter.c if (unlikely(vlan_proto != htons(ETH_P_8021Q) && htons 2726 net/core/filter.c vlan_proto != htons(ETH_P_8021AD))) htons 2727 net/core/filter.c vlan_proto = htons(ETH_P_8021Q); htons 2869 net/core/filter.c skb->protocol = htons(ETH_P_IPV6); htons 2910 net/core/filter.c skb->protocol = htons(ETH_P_IP); htons 2920 net/core/filter.c if (from_proto == htons(ETH_P_IP) && htons 2921 net/core/filter.c to_proto == htons(ETH_P_IPV6)) htons 2924 net/core/filter.c if (from_proto == htons(ETH_P_IPV6) && htons 2925 net/core/filter.c to_proto == htons(ETH_P_IP)) htons 2992 net/core/filter.c case htons(ETH_P_IP): htons 2994 net/core/filter.c case htons(ETH_P_IPV6): htons 3032 net/core/filter.c if (skb->protocol != htons(ETH_P_IP) && htons 3033 net/core/filter.c skb->protocol != htons(ETH_P_IPV6)) htons 3086 net/core/filter.c if (skb->protocol == htons(ETH_P_IP) && htons 3088 net/core/filter.c skb->protocol = htons(ETH_P_IPV6); htons 3089 net/core/filter.c else if (skb->protocol == htons(ETH_P_IPV6) && htons 3091 net/core/filter.c skb->protocol = htons(ETH_P_IP); htons 3168 net/core/filter.c if (unlikely(proto != htons(ETH_P_IP) && htons 3169 net/core/filter.c proto != htons(ETH_P_IPV6))) htons 4523 net/core/filter.c if (((struct sockaddr_in *)addr)->sin_port != htons(0)) htons 4530 net/core/filter.c if (((struct sockaddr_in6 *)addr)->sin6_port != htons(0)) htons 4931 net/core/filter.c if (skb->protocol != htons(ETH_P_IPV6)) htons 4949 net/core/filter.c ipv6_hdr(skb)->payload_len = htons(skb->len - sizeof(struct ipv6hdr)); htons 5186 net/core/filter.c hdr->payload_len = htons(skb->len - sizeof(struct ipv6hdr)); htons 473 net/core/flow_dissector.c if (arp->ar_hrd != htons(ARPHRD_ETHER) || htons 474 net/core/flow_dissector.c arp->ar_pro != htons(ETH_P_IP) || htons 477 net/core/flow_dissector.c (arp->ar_op != htons(ARPOP_REPLY) && htons 478 net/core/flow_dissector.c arp->ar_op != htons(ARPOP_REQUEST))) htons 572 net/core/flow_dissector.c if (*p_proto == htons(ETH_P_TEB)) { htons 606 net/core/flow_dissector.c *p_proto = htons(ETH_P_IP); htons 609 net/core/flow_dissector.c *p_proto = htons(ETH_P_IPV6); htons 699 net/core/flow_dissector.c key_tcp->flags = (*(__be16 *) &tcp_flag_word(th) & htons(0x0FFF)); htons 921 net/core/flow_dissector.c proto == htons(ETH_P_XDSA))) { htons 1006 net/core/flow_dissector.c case htons(ETH_P_IP): { htons 1034 net/core/flow_dissector.c if (iph->frag_off & htons(IP_OFFSET)) { htons 1052 net/core/flow_dissector.c case htons(ETH_P_IPV6): { htons 1100 net/core/flow_dissector.c case htons(ETH_P_8021AD): htons 1101 net/core/flow_dissector.c case htons(ETH_P_8021Q): { htons 1151 net/core/flow_dissector.c case htons(ETH_P_PPP_SES): { htons 1165 net/core/flow_dissector.c case htons(PPP_IP): htons 1166 net/core/flow_dissector.c proto = htons(ETH_P_IP); htons 1169 net/core/flow_dissector.c case htons(PPP_IPV6): htons 1170 net/core/flow_dissector.c proto = htons(ETH_P_IPV6); htons 1179 net/core/flow_dissector.c case htons(ETH_P_TIPC): { htons 1201 net/core/flow_dissector.c case htons(ETH_P_MPLS_UC): htons 1202 net/core/flow_dissector.c case htons(ETH_P_MPLS_MC): htons 1207 net/core/flow_dissector.c case htons(ETH_P_FCOE): htons 1217 net/core/flow_dissector.c case htons(ETH_P_ARP): htons 1218 net/core/flow_dissector.c case htons(ETH_P_RARP): htons 1224 net/core/flow_dissector.c case htons(ETH_P_BATMAN): htons 1265 net/core/flow_dissector.c if (proto != htons(ETH_P_IPV6)) htons 1284 net/core/flow_dissector.c if (proto != htons(ETH_P_IPV6)) htons 1300 net/core/flow_dissector.c if (!(fh->frag_off & htons(IP6_OFFSET))) { htons 1312 net/core/flow_dissector.c proto = htons(ETH_P_IP); htons 1324 net/core/flow_dissector.c proto = htons(ETH_P_IPV6); htons 1337 net/core/flow_dissector.c proto = htons(ETH_P_MPLS_UC); htons 90 net/core/lwt_bpf.c if (skb->protocol == htons(ETH_P_IP)) { htons 99 net/core/lwt_bpf.c } else if (skb->protocol == htons(ETH_P_IPV6)) { htons 185 net/core/lwt_bpf.c if (skb->protocol == htons(ETH_P_IP)) htons 187 net/core/lwt_bpf.c else if (skb->protocol == htons(ETH_P_IPV6)) htons 637 net/core/lwt_bpf.c skb->protocol = htons(ETH_P_IP); htons 644 net/core/lwt_bpf.c skb->protocol = htons(ETH_P_IPV6); htons 226 net/core/net-procfs.c if (pt->type == htons(ETH_P_ALL)) { htons 256 net/core/net-procfs.c if (pt->type == htons(ETH_P_ALL)) htons 393 net/core/netpoll.c udph->source = htons(np->local_port); htons 394 net/core/netpoll.c udph->dest = htons(np->remote_port); htons 395 net/core/netpoll.c udph->len = htons(udp_len); htons 416 net/core/netpoll.c ip6h->payload_len = htons(sizeof(struct udphdr) + len); htons 424 net/core/netpoll.c skb->protocol = eth->h_proto = htons(ETH_P_IPV6); htons 441 net/core/netpoll.c put_unaligned(htons(ip_len), &(iph->tot_len)); htons 442 net/core/netpoll.c iph->id = htons(atomic_inc_return(&ip_ident)); htons 453 net/core/netpoll.c skb->protocol = eth->h_proto = htons(ETH_P_IP); htons 2586 net/core/pktgen.c iph->tot_len = htons(skb->len - ETH_HLEN); htons 2610 net/core/pktgen.c return htons(id | (cfi << 12) | (prio << 13)); htons 2727 net/core/pktgen.c __be16 protocol = htons(ETH_P_IP); htons 2736 net/core/pktgen.c protocol = htons(ETH_P_MPLS_UC); htons 2739 net/core/pktgen.c protocol = htons(ETH_P_8021Q); htons 2770 net/core/pktgen.c *svlan_encapsulated_proto = htons(ETH_P_8021Q); htons 2777 net/core/pktgen.c *vlan_encapsulated_proto = htons(ETH_P_IP); htons 2798 net/core/pktgen.c udph->source = htons(pkt_dev->cur_udp_src); htons 2799 net/core/pktgen.c udph->dest = htons(pkt_dev->cur_udp_dst); htons 2800 net/core/pktgen.c udph->len = htons(datalen + 8); /* DATA + udphdr */ htons 2810 net/core/pktgen.c iph->id = htons(pkt_dev->ip_id); htons 2814 net/core/pktgen.c iph->tot_len = htons(iplen); htons 2855 net/core/pktgen.c __be16 protocol = htons(ETH_P_IPV6); htons 2864 net/core/pktgen.c protocol = htons(ETH_P_MPLS_UC); htons 2867 net/core/pktgen.c protocol = htons(ETH_P_8021Q); htons 2898 net/core/pktgen.c *svlan_encapsulated_proto = htons(ETH_P_8021Q); htons 2905 net/core/pktgen.c *vlan_encapsulated_proto = htons(ETH_P_IPV6); htons 2931 net/core/pktgen.c udph->source = htons(pkt_dev->cur_udp_src); htons 2932 net/core/pktgen.c udph->dest = htons(pkt_dev->cur_udp_dst); htons 2933 net/core/pktgen.c udph->len = htons(udplen); htons 2945 net/core/pktgen.c iph->payload_len = htons(udplen); htons 1223 net/core/rtnetlink.c ivi.vlan_proto = htons(ETH_P_8021Q); htons 2217 net/core/rtnetlink.c htons(ETH_P_8021Q)); htons 4755 net/core/skbuff.c if (ip_hdr(skb)->frag_off & htons(IP_OFFSET | IP_MF)) htons 4856 net/core/skbuff.c if (hp->frag_off & htons(IP6_OFFSET | IP6_MF)) htons 4898 net/core/skbuff.c case htons(ETH_P_IP): htons 4902 net/core/skbuff.c case htons(ETH_P_IPV6): htons 27 net/core/tso.c iph->id = htons(tso->ip_id); htons 28 net/core/tso.c iph->tot_len = htons(size + hdr_len - mac_hdr_len); htons 33 net/core/tso.c iph->payload_len = htons(size + tcp_hdrlen(skb)); htons 72 net/core/tso.c tso->ipv6 = vlan_get_protocol(skb) == htons(ETH_P_IPV6); htons 315 net/core/utils.c addr4->sin_port = htons(port_num); htons 354 net/core/utils.c addr6->sin6_port = htons(port_num); htons 405 net/dccp/dccp.h dh->dccph_seq = htons((gss >> 32) & 0xfffff); htons 413 net/dccp/dccp.h dhack->dccph_ack_nr_high = htons(gsr >> 32); htons 205 net/dccp/ipv6.c fl6.fl6_sport = htons(ireq->ir_num); htons 316 net/dccp/ipv6.c if (skb->protocol == htons(ETH_P_IP)) htons 411 net/dccp/ipv6.c if (skb->protocol == htons(ETH_P_IP)) { htons 578 net/dccp/ipv6.c if (skb->protocol == htons(ETH_P_IP)) htons 385 net/dccp/options.c const __be16 var16 = htons((u16)elapsed_time); htons 429 net/dccp/output.c dh->dccph_sport = htons(inet_rsk(req)->ir_num); htons 1900 net/decnet/af_decnet.c skb->protocol = htons(ETH_P_DNA_RT); htons 118 net/decnet/dn_nsp_out.c skb->protocol = htons(ETH_P_DNA_RT); htons 1678 net/decnet/dn_route.c skb->protocol = htons(ETH_P_DNA_RT); htons 882 net/dsa/slave.c if (act->id == FLOW_ACTION_MIRRED && protocol == htons(ETH_P_ALL)) { htons 298 net/dsa/tag_8021q.c return vlan_insert_tag(skb, htons(tpid), tci); htons 25 net/dsa/tag_dsa.c if (skb->protocol == htons(ETH_P_8021Q)) { htons 27 net/dsa/tag_edsa.c if (skb->protocol == htons(ETH_P_8021Q)) { htons 76 net/dsa/tag_lan9303.c lan9303_tag[0] = htons(ETH_P_8021Q); htons 80 net/dsa/tag_lan9303.c lan9303_tag[1] = htons(lan9303_tag[1]); htons 106 net/dsa/tag_lan9303.c if (lan9303_tag[0] != htons(ETH_P_8021Q)) { htons 48 net/dsa/tag_qca.c *phdr = htons(hdr); htons 86 net/ethernet/eth.c eth->h_proto = htons(type); htons 88 net/ethernet/eth.c eth->h_proto = htons(len); htons 190 net/ethernet/eth.c return htons(ETH_P_XDSA); htons 203 net/ethernet/eth.c return htons(ETH_P_802_3); htons 208 net/ethernet/eth.c return htons(ETH_P_802_2); htons 241 net/ethernet/eth.c if (type == htons(ETH_P_802_3)) htons 267 net/hsr/hsr_device.c skb->protocol = htons(hsr_ver ? ETH_P_HSR : ETH_P_PRP); htons 280 net/hsr/hsr_device.c hsr_tag->encap_proto = htons(ETH_P_PRP); htons 291 net/hsr/hsr_device.c hsr_stag->sequence_nr = htons(master->hsr->sup_sequence_nr); htons 292 net/hsr/hsr_device.c hsr_tag->sequence_nr = htons(master->hsr->sequence_nr); htons 296 net/hsr/hsr_device.c hsr_stag->sequence_nr = htons(master->hsr->sequence_nr); htons 60 net/hsr/hsr_forward.c if (!(eth_hdr->h_proto == htons(ETH_P_PRP) || htons 61 net/hsr/hsr_forward.c eth_hdr->h_proto == htons(ETH_P_HSR))) htons 65 net/hsr/hsr_forward.c if (eth_hdr->h_proto == htons(ETH_P_HSR)) { /* Okay HSRv1. */ htons 67 net/hsr/hsr_forward.c if (hsr_V1_hdr->hsr.encap_proto != htons(ETH_P_PRP)) htons 143 net/hsr/hsr_forward.c hsr_ethhdr->hsr_tag.sequence_nr = htons(frame->sequence_nr); htons 145 net/hsr/hsr_forward.c hsr_ethhdr->ethhdr.h_proto = htons(proto_version ? htons 321 net/hsr/hsr_forward.c if (ethhdr->h_proto == htons(ETH_P_8021Q)) { htons 326 net/hsr/hsr_forward.c if (ethhdr->h_proto == htons(ETH_P_PRP) || htons 327 net/hsr/hsr_forward.c ethhdr->h_proto == htons(ETH_P_HSR)) { htons 199 net/hsr/hsr_framereg.c if (ethhdr->h_proto == htons(ETH_P_PRP) || htons 200 net/hsr/hsr_framereg.c ethhdr->h_proto == htons(ETH_P_HSR)) { htons 237 net/hsr/hsr_framereg.c if (ethhdr->h_proto == htons(ETH_P_HSR)) htons 78 net/hsr/hsr_main.h htons((ntohs(ht->path_and_LSDU_size) & 0x0FFF) | (path << 12)); htons 83 net/hsr/hsr_main.h ht->path_and_LSDU_size = htons((ntohs(ht->path_and_LSDU_size) & htons 40 net/hsr/hsr_slave.c if (protocol != htons(ETH_P_PRP) && protocol != htons(ETH_P_HSR)) htons 23 net/ieee802154/6lowpan/rx.c skb->protocol = htons(ETH_P_IPV6); htons 311 net/ieee802154/6lowpan/rx.c .type = htons(ETH_P_IEEE802154), htons 167 net/ieee802154/6lowpan/tx.c frag_tag = htons(lowpan_802154_dev(ldev)->fragment_tag); htons 293 net/ieee802154/socket.c skb->protocol = htons(ETH_P_IEEE802154); htons 684 net/ieee802154/socket.c skb->protocol = htons(ETH_P_IEEE802154); htons 1092 net/ieee802154/socket.c .type = htons(ETH_P_IEEE802154), htons 60 net/ife/ife.c ifehdr->metalen = htons(metalen); htons 186 net/ipv4/af_inet.c inet->inet_sport = htons(inet->inet_num); htons 369 net/ipv4/af_inet.c inet->inet_sport = htons(inet->inet_num); htons 540 net/ipv4/af_inet.c inet->inet_sport = htons(inet->inet_num); htons 1342 net/ipv4/af_inet.c if (fixedid && !(ip_hdr(skb)->frag_off & htons(IP_DF))) htons 1359 net/ipv4/af_inet.c iph->frag_off = htons(offset >> 3); htons 1361 net/ipv4/af_inet.c iph->frag_off |= htons(IP_MF); htons 1366 net/ipv4/af_inet.c iph->id = htons(id); htons 1378 net/ipv4/af_inet.c iph->id = htons(id++); htons 1381 net/ipv4/af_inet.c iph->tot_len = htons(tot_len); htons 1472 net/ipv4/af_inet.c ((iph->frag_off ^ iph2->frag_off) & htons(IP_DF)); htons 1489 net/ipv4/af_inet.c !(iph->frag_off & htons(IP_DF))) { htons 1503 net/ipv4/af_inet.c NAPI_GRO_CB(skb)->is_atomic = !!(iph->frag_off & htons(IP_DF)); htons 1583 net/ipv4/af_inet.c __be16 newlen = htons(skb->len - nhoff); htons 210 net/ipv4/ah4.c top_iph->tot_len = htons(skb->len); htons 545 net/ipv4/arp.c skb->protocol = htons(ETH_P_ARP); htons 569 net/ipv4/arp.c arp->ar_hrd = htons(dev->type); htons 570 net/ipv4/arp.c arp->ar_pro = htons(ETH_P_IP); htons 575 net/ipv4/arp.c arp->ar_hrd = htons(ARPHRD_AX25); htons 576 net/ipv4/arp.c arp->ar_pro = htons(AX25_P_IP); htons 581 net/ipv4/arp.c arp->ar_hrd = htons(ARPHRD_NETROM); htons 582 net/ipv4/arp.c arp->ar_pro = htons(AX25_P_IP); htons 589 net/ipv4/arp.c arp->ar_hrd = htons(ARPHRD_ETHER); htons 590 net/ipv4/arp.c arp->ar_pro = htons(ETH_P_IP); htons 597 net/ipv4/arp.c arp->ar_op = htons(type); htons 655 net/ipv4/arp.c if (is_garp && ar_op == htons(ARPOP_REPLY)) htons 702 net/ipv4/arp.c if (arp->ar_pro != htons(ETH_P_IP) || htons 703 net/ipv4/arp.c htons(dev_type) != arp->ar_hrd) htons 718 net/ipv4/arp.c if ((arp->ar_hrd != htons(ARPHRD_ETHER) && htons 719 net/ipv4/arp.c arp->ar_hrd != htons(ARPHRD_IEEE802)) || htons 720 net/ipv4/arp.c arp->ar_pro != htons(ETH_P_IP)) htons 724 net/ipv4/arp.c if (arp->ar_pro != htons(AX25_P_IP) || htons 725 net/ipv4/arp.c arp->ar_hrd != htons(ARPHRD_AX25)) htons 729 net/ipv4/arp.c if (arp->ar_pro != htons(AX25_P_IP) || htons 730 net/ipv4/arp.c arp->ar_hrd != htons(ARPHRD_NETROM)) htons 737 net/ipv4/arp.c if (arp->ar_op != htons(ARPOP_REPLY) && htons 738 net/ipv4/arp.c arp->ar_op != htons(ARPOP_REQUEST)) htons 798 net/ipv4/arp.c if (arp->ar_op == htons(ARPOP_REQUEST) && skb_metadata_dst(skb)) htons 805 net/ipv4/arp.c if (arp->ar_op == htons(ARPOP_REQUEST) && htons 813 net/ipv4/arp.c if (arp->ar_op == htons(ARPOP_REQUEST) && htons 880 net/ipv4/arp.c (arp->ar_op == htons(ARPOP_REPLY) && htons 906 net/ipv4/arp.c if (arp->ar_op != htons(ARPOP_REPLY) || htons 965 net/ipv4/cipso_ipv4.c *((__be16 *)&net_cat[cat_iter]) = htons(cat); htons 1092 net/ipv4/cipso_ipv4.c *((__be16 *)&net_cat[iter]) = htons(array[--array_cnt]); htons 1096 net/ipv4/cipso_ipv4.c *((__be16 *)&net_cat[iter]) = htons(array[array_cnt]); htons 2230 net/ipv4/cipso_ipv4.c iph->tot_len = htons(skb->len); htons 251 net/ipv4/esp4.c uh->len = htons(len); htons 272 net/ipv4/esp4_offload.c ip_hdr(skb)->tot_len = htons(skb->len); htons 60 net/ipv4/fou.c ip_hdr(skb)->tot_len = htons(ntohs(ip_hdr(skb)->tot_len) - len); htons 63 net/ipv4/fou.c htons(ntohs(ipv6_hdr(skb)->payload_len) - len); htons 181 net/ipv4/fou.c ip_hdr(skb)->tot_len = htons(ntohs(ip_hdr(skb)->tot_len) - len); htons 184 net/ipv4/fou.c htons(ntohs(ipv6_hdr(skb)->payload_len) - len); htons 1042 net/ipv4/fou.c pd[0] = htons(csum_start); htons 1043 net/ipv4/fou.c pd[1] = htons(csum_start + skb->csum_offset); htons 1074 net/ipv4/fou.c uh->len = htons(skb->len); htons 114 net/ipv4/gre_demux.c if (greh->flags == 0 && tpi->proto == htons(ETH_P_WCCP)) { htons 131 net/ipv4/gre_demux.c if (greh->protocol == htons(ETH_P_ERSPAN) || htons 132 net/ipv4/gre_demux.c greh->protocol == htons(ETH_P_ERSPAN2)) { htons 622 net/ipv4/icmp.c if (iph->frag_off & htons(IP_OFFSET)) htons 392 net/ipv4/igmp.c pip->frag_off = htons(IP_DF); htons 452 net/ipv4/igmp.c pih->ngrec = htons(ntohs(pih->ngrec)+1); htons 532 net/ipv4/igmp.c pgr->grec_nsrcs = htons(scount); htons 579 net/ipv4/igmp.c pgr->grec_nsrcs = htons(scount); htons 775 net/ipv4/igmp.c iph->frag_off = htons(IP_DF); htons 583 net/ipv4/inet_connection_sock.c htons(ireq->ir_num), sk->sk_uid); htons 621 net/ipv4/inet_connection_sock.c htons(ireq->ir_num), sk->sk_uid); htons 820 net/ipv4/inet_connection_sock.c inet_sk(newsk)->inet_sport = htons(inet_rsk(req)->ir_num); htons 910 net/ipv4/inet_connection_sock.c inet->inet_sport = htons(inet->inet_num); htons 70 net/ipv4/inet_diag.c r->id.idiag_sport = htons(sk->sk_num); htons 991 net/ipv4/inet_diag.c if (r->id.idiag_sport != htons(sk->sk_num) && htons 437 net/ipv4/inet_hashtables.c inet->inet_sport = htons(lport); htons 719 net/ipv4/inet_hashtables.c inet_sk(sk)->inet_sport = htons(port); htons 48 net/ipv4/ip_forward.c if (unlikely((ip_hdr(skb)->frag_off & htons(IP_DF)) == 0)) htons 362 net/ipv4/ip_fragment.c if (ip_hdr(skb)->frag_off & htons(IP_DF) && htons 436 net/ipv4/ip_fragment.c iph->tot_len = htons(len); htons 449 net/ipv4/ip_fragment.c iph->frag_off = htons(IP_DF); htons 509 net/ipv4/ip_fragment.c if (skb->protocol != htons(ETH_P_IP)) htons 144 net/ipv4/ip_gre.c if (tpi->proto == htons(ETH_P_TEB)) htons 146 net/ipv4/ip_gre.c else if (tpi->proto == htons(ETH_P_ERSPAN) || htons 147 net/ipv4/ip_gre.c tpi->proto == htons(ETH_P_ERSPAN2)) htons 190 net/ipv4/ip_gre.c if (tpi->proto == htons(ETH_P_IPV6) && htons 233 net/ipv4/ip_gre.c if (gre_parse_header(skb, &tpi, NULL, htons(ETH_P_IP), htons 281 net/ipv4/ip_gre.c htons(ETH_P_TEB), htons 379 net/ipv4/ip_gre.c if (tpi->proto == htons(ETH_P_TEB)) htons 385 net/ipv4/ip_gre.c if (res == PACKET_NEXT && tpi->proto == htons(ETH_P_TEB)) { htons 409 net/ipv4/ip_gre.c hdr_len = gre_parse_header(skb, &tpi, &csum_err, htons(ETH_P_IP), 0); htons 413 net/ipv4/ip_gre.c if (unlikely(tpi.proto == htons(ETH_P_ERSPAN) || htons 414 net/ipv4/ip_gre.c tpi.proto == htons(ETH_P_ERSPAN2))) { htons 532 net/ipv4/ip_gre.c if (skb->protocol == htons(ETH_P_IP) && htons 537 net/ipv4/ip_gre.c if (skb->protocol == htons(ETH_P_IPV6) && htons 544 net/ipv4/ip_gre.c proto = htons(ETH_P_ERSPAN); htons 551 net/ipv4/ip_gre.c proto = htons(ETH_P_ERSPAN2); htons 668 net/ipv4/ip_gre.c proto = htons(ETH_P_ERSPAN); htons 673 net/ipv4/ip_gre.c proto = htons(ETH_P_ERSPAN2); htons 697 net/ipv4/ip_gre.c gre_fb_xmit(skb, dev, htons(ETH_P_TEB)); htons 707 net/ipv4/ip_gre.c __gre_xmit(skb, dev, &tunnel->parms.iph, htons(ETH_P_TEB)); htons 757 net/ipv4/ip_gre.c p.iph.ihl != 5 || (p.iph.frag_off & htons(~IP_DF)) || htons 826 net/ipv4/ip_gre.c greh->protocol = htons(type); htons 1133 net/ipv4/ip_gre.c parms->iph.frag_off = htons(IP_DF); htons 1144 net/ipv4/ip_gre.c && (parms->iph.frag_off & htons(IP_DF))) htons 1485 net/ipv4/ip_gre.c !!(p->iph.frag_off & htons(IP_DF))) || htons 102 net/ipv4/ip_output.c iph->tot_len = htons(skb->len); htons 112 net/ipv4/ip_output.c skb->protocol = htons(ETH_P_IP); htons 164 net/ipv4/ip_output.c iph->frag_off = htons(IP_DF); htons 372 net/ipv4/ip_output.c skb->protocol = htons(ETH_P_IP); htons 430 net/ipv4/ip_output.c skb->protocol = htons(ETH_P_IP); htons 509 net/ipv4/ip_output.c *((__be16 *)iph) = htons((4 << 12) | (5 << 8) | (tos & 0xff)); htons 511 net/ipv4/ip_output.c iph->frag_off = htons(IP_DF); htons 574 net/ipv4/ip_output.c if ((iph->frag_off & htons(IP_DF)) == 0) htons 604 net/ipv4/ip_output.c iph->tot_len = htons(first_len); htons 605 net/ipv4/ip_output.c iph->frag_off = htons(IP_MF); htons 636 net/ipv4/ip_output.c iph->tot_len = htons(frag->len); htons 639 net/ipv4/ip_output.c iph->frag_off = htons(iter->offset >> 3); htons 641 net/ipv4/ip_output.c iph->frag_off |= htons(IP_MF); htons 662 net/ipv4/ip_output.c state->not_last_frag = iph->frag_off & htons(IP_MF); htons 738 net/ipv4/ip_output.c iph->frag_off = htons((state->offset >> 3)); htons 740 net/ipv4/ip_output.c iph->frag_off |= htons(IP_DF); htons 747 net/ipv4/ip_output.c iph->frag_off |= htons(IP_MF); htons 751 net/ipv4/ip_output.c iph->tot_len = htons(len + state->hlen); htons 1512 net/ipv4/ip_output.c df = htons(IP_DF); htons 506 net/ipv4/ip_tunnel.c if (skb->protocol == htons(ETH_P_IP)) { htons 508 net/ipv4/ip_tunnel.c (inner_iph->frag_off & htons(IP_DF)) && htons 516 net/ipv4/ip_tunnel.c else if (skb->protocol == htons(ETH_P_IPV6)) { htons 566 net/ipv4/ip_tunnel.c if (skb->protocol == htons(ETH_P_IP)) htons 568 net/ipv4/ip_tunnel.c else if (skb->protocol == htons(ETH_P_IPV6)) htons 597 net/ipv4/ip_tunnel.c df = htons(IP_DF); htons 607 net/ipv4/ip_tunnel.c if (skb->protocol == htons(ETH_P_IP)) htons 609 net/ipv4/ip_tunnel.c else if (skb->protocol == htons(ETH_P_IPV6)) htons 615 net/ipv4/ip_tunnel.c if (!df && skb->protocol == htons(ETH_P_IP)) htons 616 net/ipv4/ip_tunnel.c df = inner_iph->frag_off & htons(IP_DF); htons 677 net/ipv4/ip_tunnel.c else if (skb->protocol == htons(ETH_P_IP)) { htons 682 net/ipv4/ip_tunnel.c else if (skb->protocol == htons(ETH_P_IPV6)) { htons 722 net/ipv4/ip_tunnel.c if (skb->protocol == htons(ETH_P_IP)) { htons 725 net/ipv4/ip_tunnel.c } else if (skb->protocol == htons(ETH_P_IPV6)) { htons 788 net/ipv4/ip_tunnel.c if (skb->protocol == htons(ETH_P_IP)) htons 791 net/ipv4/ip_tunnel.c else if (skb->protocol == htons(ETH_P_IPV6)) htons 799 net/ipv4/ip_tunnel.c if (skb->protocol == htons(ETH_P_IP) && !tunnel->ignore_df) htons 800 net/ipv4/ip_tunnel.c df |= (inner_iph->frag_off&htons(IP_DF)); htons 886 net/ipv4/ip_tunnel.c p->iph.frag_off |= htons(IP_DF); htons 96 net/ipv4/ip_tunnel_core.c if (!raw_proto && inner_proto == htons(ETH_P_TEB)) { htons 106 net/ipv4/ip_tunnel_core.c skb->protocol = htons(ETH_P_802_2); htons 104 net/ipv4/ip_vti.c .proto = htons(ETH_P_IP), htons 212 net/ipv4/ip_vti.c case htons(ETH_P_IP): { htons 227 net/ipv4/ip_vti.c case htons(ETH_P_IPV6): htons 270 net/ipv4/ip_vti.c if (skb->protocol == htons(ETH_P_IP)) { htons 316 net/ipv4/ip_vti.c case htons(ETH_P_IP): htons 320 net/ipv4/ip_vti.c case htons(ETH_P_IPV6): htons 503 net/ipv4/ipconfig.c if (rarp->ar_op != htons(ARPOP_RREPLY)) htons 507 net/ipv4/ipconfig.c if (rarp->ar_pro != htons(ETH_P_IP)) htons 818 net/ipv4/ipconfig.c h->tot_len = htons(sizeof(struct bootp_pkt)); htons 819 net/ipv4/ipconfig.c h->frag_off = htons(IP_DF); htons 826 net/ipv4/ipconfig.c b->udph.source = htons(68); htons 827 net/ipv4/ipconfig.c b->udph.dest = htons(67); htons 828 net/ipv4/ipconfig.c b->udph.len = htons(sizeof(struct bootp_pkt) - sizeof(struct iphdr)); htons 846 net/ipv4/ipconfig.c b->secs = htons(jiffies_diff / HZ); htons 859 net/ipv4/ipconfig.c skb->protocol = htons(ETH_P_IP); htons 999 net/ipv4/ipconfig.c if (b->udph.source != htons(67) || b->udph.dest != htons(68)) htons 202 net/ipv4/ipip.c .proto = htons(ETH_P_IP), htons 208 net/ipv4/ipip.c .proto = htons(ETH_P_MPLS_UC), htons 282 net/ipv4/ipip.c case htons(ETH_P_IP): htons 286 net/ipv4/ipip.c case htons(ETH_P_MPLS_UC): htons 341 net/ipv4/ipip.c p.iph.ihl != 5 || (p.iph.frag_off&htons(~IP_DF))) htons 441 net/ipv4/ipip.c parms->iph.frag_off = htons(IP_DF); htons 451 net/ipv4/ipip.c parms->iph.frag_off = htons(IP_DF); htons 586 net/ipv4/ipip.c !!(parm->iph.frag_off & htons(IP_DF))) || htons 629 net/ipv4/ipmr.c skb->protocol = htons(ETH_P_IP); htons 1075 net/ipv4/ipmr.c ip_hdr(skb)->tot_len = htons(ntohs(ip_hdr(pkt)->tot_len) + htons 1092 net/ipv4/ipmr.c ip_hdr(skb)->tot_len = htons(skb->len); /* Fix the length */ htons 1792 net/ipv4/ipmr.c iph->tot_len = htons(skb->len); htons 615 net/ipv4/netfilter/ipt_CLUSTERIP.c if (arp->ar_hrd != htons(ARPHRD_ETHER) || htons 616 net/ipv4/netfilter/ipt_CLUSTERIP.c arp->ar_pro != htons(ETH_P_IP) || htons 621 net/ipv4/netfilter/ipt_CLUSTERIP.c if (arp->ar_op != htons(ARPOP_REPLY) && htons 622 net/ipv4/netfilter/ipt_CLUSTERIP.c arp->ar_op != htons(ARPOP_REQUEST)) htons 38 net/ipv4/netfilter/ipt_ECN.c csum_replace2(&iph->check, htons(oldtos), htons(iph->tos)); htons 45 net/ipv4/netfilter/nf_dup_ipv4.c skb->protocol = htons(ETH_P_IP); htons 81 net/ipv4/netfilter/nf_dup_ipv4.c iph->frag_off |= htons(IP_DF); htons 62 net/ipv4/netfilter/nf_log_arp.c if (ah->ar_hrd != htons(ARPHRD_ETHER) || htons 204 net/ipv4/netfilter/nf_nat_h323.c htons(ntohs(info->rtp_port[i][dir]) + 1); htons 223 net/ipv4/netfilter/nf_nat_h323.c rtp_exp->tuple.dst.u.udp.port = htons(nated_port); htons 227 net/ipv4/netfilter/nf_nat_h323.c htons(nated_port + 1); htons 253 net/ipv4/netfilter/nf_nat_h323.c htons((port & htons(1)) ? nated_port + 1 : htons 262 net/ipv4/netfilter/nf_nat_h323.c info->rtp_port[i][!dir] = htons(nated_port); htons 298 net/ipv4/netfilter/nf_nat_h323.c exp->tuple.dst.u.tcp.port = htons(nated_port); htons 316 net/ipv4/netfilter/nf_nat_h323.c htons(nated_port)) < 0) { htons 354 net/ipv4/netfilter/nf_nat_h323.c exp->tuple.dst.u.tcp.port = htons(nated_port); htons 372 net/ipv4/netfilter/nf_nat_h323.c htons(nated_port))) { htons 379 net/ipv4/netfilter/nf_nat_h323.c info->sig_port[!dir] = htons(nated_port); htons 446 net/ipv4/netfilter/nf_nat_h323.c exp->tuple.dst.u.tcp.port = htons(nated_port); htons 464 net/ipv4/netfilter/nf_nat_h323.c htons(nated_port))) { htons 471 net/ipv4/netfilter/nf_nat_h323.c info->sig_port[!dir] = htons(nated_port); htons 539 net/ipv4/netfilter/nf_nat_h323.c exp->tuple.dst.u.tcp.port = htons(nated_port); htons 557 net/ipv4/netfilter/nf_nat_h323.c htons(nated_port))) { htons 170 net/ipv4/netfilter/nf_nat_snmp_basic_main.c if (udph->source == htons(SNMP_PORT) && dir != IP_CT_DIR_REPLY) htons 172 net/ipv4/netfilter/nf_nat_snmp_basic_main.c if (udph->dest == htons(SNMP_TRAP_PORT) && dir != IP_CT_DIR_ORIGINAL) htons 21 net/ipv4/netfilter/nf_reject_ipv4.c if (ip_hdr(oldskb)->frag_off & htons(IP_OFFSET)) htons 56 net/ipv4/netfilter/nf_reject_ipv4.c niph->frag_off = htons(IP_DF); htons 63 net/ipv4/netfilter/nf_reject_ipv4.c nskb->protocol = htons(ETH_P_IP); htons 153 net/ipv4/netfilter/nf_reject_ipv4.c niph->tot_len = htons(nskb->len); htons 175 net/ipv4/netfilter/nf_reject_ipv4.c if (iph->frag_off & htons(IP_OFFSET)) htons 177 net/ipv4/ping.c if (skb->protocol == htons(ETH_P_IP)) { htons 181 net/ipv4/ping.c } else if (skb->protocol == htons(ETH_P_IPV6)) { htons 196 net/ipv4/ping.c if (skb->protocol == htons(ETH_P_IP) && htons 206 net/ipv4/ping.c } else if (skb->protocol == htons(ETH_P_IPV6) && htons 444 net/ipv4/ping.c isk->inet_sport = htons(isk->inet_num); htons 488 net/ipv4/ping.c if (skb->protocol == htons(ETH_P_IP)) { htons 493 net/ipv4/ping.c } else if (skb->protocol == htons(ETH_P_IPV6)) { htons 522 net/ipv4/ping.c if (skb->protocol == htons(ETH_P_IP)) { htons 561 net/ipv4/ping.c } else if (skb->protocol == htons(ETH_P_IPV6)) { htons 920 net/ipv4/ping.c if (skb->protocol == htons(ETH_P_IPV6) && htons 923 net/ipv4/ping.c else if (skb->protocol == htons(ETH_P_IP) && isk->cmsg_flags) htons 416 net/ipv4/raw.c iph->tot_len = htons(length); htons 520 net/ipv4/route.c iph->id = htons(id); htons 1697 net/ipv4/route.c skb->protocol != htons(ETH_P_IP)) htons 1813 net/ipv4/route.c skb->protocol == htons(ETH_P_IP)) { htons 1822 net/ipv4/route.c if (skb->protocol != htons(ETH_P_IP)) { htons 1889 net/ipv4/route.c if (unlikely((outer_iph->frag_off & htons(IP_OFFSET)) != 0)) htons 2152 net/ipv4/route.c if (skb->protocol != htons(ETH_P_IP)) htons 2961 net/ipv4/route.c skb->protocol = htons(ETH_P_IP); htons 843 net/ipv4/tcp_ipv4.c rep.th.window = htons(win); htons 1112 net/ipv4/tcp_output.c *(((__be16 *)th) + 6) = htons(((tcp_header_size >> 2) << 12) | htons 1121 net/ipv4/tcp_output.c th->urg_ptr = htons(tp->snd_up - tcb->seq); htons 1124 net/ipv4/tcp_output.c th->urg_ptr = htons(0xFFFF); htons 1132 net/ipv4/tcp_output.c th->window = htons(tcp_select_window(sk)); htons 1138 net/ipv4/tcp_output.c th->window = htons(min(tp->rcv_wnd, 65535U)); htons 3339 net/ipv4/tcp_output.c th->source = htons(ireq->ir_num); htons 3348 net/ipv4/tcp_output.c th->window = htons(min(req->rsk_rcv_wnd, 65535U)); htons 833 net/ipv4/udp.c uh->len = htons(len); htons 121 net/ipv4/udp_offload.c uh->len = htons(skb_shinfo(skb)->gso_size + htons 125 net/ipv4/udp_offload.c uh->len = htons(len); htons 233 net/ipv4/udp_offload.c newlen = htons(sizeof(*uh) + mss); htons 260 net/ipv4/udp_offload.c newlen = htons(skb_tail_pointer(seg) - skb_transport_header(seg) + htons 510 net/ipv4/udp_offload.c __be16 newlen = htons(skb->len - nhoff); htons 186 net/ipv4/udp_tunnel.c uh->len = htons(skb->len); htons 65 net/ipv4/xfrm4_input.c iph->tot_len = htons(skb->len); htons 152 net/ipv4/xfrm4_input.c iph->tot_len = htons(ntohs(iph->tot_len) - len); htons 24 net/ipv4/xfrm4_output.c if (!(ip_hdr(skb)->frag_off & htons(IP_DF)) || skb->ignore_df) htons 31 net/ipv4/xfrm4_output.c skb->protocol = htons(ETH_P_IP); htons 245 net/ipv6/af_inet6.c inet->inet_sport = htons(inet->inet_num); htons 421 net/ipv6/af_inet6.c inet->inet_sport = htons(inet->inet_num); htons 377 net/ipv6/ah6.c top_iph->payload_len = htons(skb->len - sizeof(*top_iph)); htons 1345 net/ipv6/calipso.c ip6_hdr->payload_len = htons(payload + len_delta); htons 301 net/ipv6/datagram.c skb->protocol = htons(ETH_P_IPV6); htons 336 net/ipv6/datagram.c skb->protocol = htons(ETH_P_IPV6); htons 469 net/ipv6/datagram.c if (skb->protocol == htons(ETH_P_IPV6)) { htons 494 net/ipv6/datagram.c if (skb->protocol == htons(ETH_P_IPV6)) { htons 577 net/ipv6/datagram.c bool is_ipv6 = skb->protocol == htons(ETH_P_IPV6); htons 304 net/ipv6/esp6_offload.c ipv6_hdr(skb)->payload_len = htons(len); htons 33 net/ipv6/fou6.c uh->len = htons(skb->len); htons 46 net/ipv6/ila/ila_lwt.c if (skb->protocol != htons(ETH_P_IPV6)) htons 106 net/ipv6/ila/ila_lwt.c if (skb->protocol != htons(ETH_P_IPV6)) htons 47 net/ipv6/inet6_connection_sock.c fl6->fl6_sport = htons(ireq->ir_num); htons 241 net/ipv6/inet6_hashtables.c inet->inet_sport = htons(lport); htons 125 net/ipv6/ip6_gre.c int dev_type = (gre_proto == htons(ETH_P_TEB) || htons 126 net/ipv6/ip6_gre.c gre_proto == htons(ETH_P_ERSPAN) || htons 127 net/ipv6/ip6_gre.c gre_proto == htons(ETH_P_ERSPAN2)) ? htons 232 net/ipv6/ip6_gre.c if (gre_proto == htons(ETH_P_ERSPAN) || htons 233 net/ipv6/ip6_gre.c gre_proto == htons(ETH_P_ERSPAN2)) htons 429 net/ipv6/ip6_gre.c if (gre_parse_header(skb, &tpi, NULL, htons(ETH_P_IPV6), htons 546 net/ipv6/ip6_gre.c htons(ETH_P_TEB), htons 602 net/ipv6/ip6_gre.c hdr_len = gre_parse_header(skb, &tpi, &csum_err, htons(ETH_P_IPV6), 0); htons 609 net/ipv6/ip6_gre.c if (unlikely(tpi.proto == htons(ETH_P_ERSPAN) || htons 610 net/ipv6/ip6_gre.c tpi.proto == htons(ETH_P_ERSPAN2))) { htons 725 net/ipv6/ip6_gre.c protocol = (dev->type == ARPHRD_ETHER) ? htons(ETH_P_TEB) : proto; htons 889 net/ipv6/ip6_gre.c case htons(ETH_P_IP): htons 892 net/ipv6/ip6_gre.c case htons(ETH_P_IPV6): htons 943 net/ipv6/ip6_gre.c if (skb->protocol == htons(ETH_P_IP) && htons 948 net/ipv6/ip6_gre.c if (skb->protocol == htons(ETH_P_IPV6) && htons 1004 net/ipv6/ip6_gre.c case htons(ETH_P_IP): htons 1009 net/ipv6/ip6_gre.c case htons(ETH_P_IPV6): htons 1037 net/ipv6/ip6_gre.c proto = (t->parms.erspan_ver == 1) ? htons(ETH_P_ERSPAN) htons 1038 net/ipv6/ip6_gre.c : htons(ETH_P_ERSPAN2); htons 1050 net/ipv6/ip6_gre.c if (skb->protocol == htons(ETH_P_IP)) htons 1352 net/ipv6/ip6_gre.c p[1] = htons(type); htons 519 net/ipv6/ip6_input.c if (opt->ra == htons(IPV6_OPT_ROUTERALERT_MLD)) { htons 129 net/ipv6/ip6_offload.c ipv6h->payload_len = htons(payload_len); htons 140 net/ipv6/ip6_offload.c fptr->frag_off = htons(offset); htons 142 net/ipv6/ip6_offload.c fptr->frag_off |= htons(IP6_MF); htons 335 net/ipv6/ip6_offload.c iph->payload_len = htons(skb->len - nhoff - sizeof(*iph)); htons 166 net/ipv6/ip6_output.c skb->protocol = htons(ETH_P_IPV6); htons 253 net/ipv6/ip6_output.c hdr->payload_len = htons(seg_len); htons 260 net/ipv6/ip6_output.c skb->protocol = htons(ETH_P_IPV6); htons 628 net/ipv6/ip6_output.c fh->frag_off = htons(IP6_MF); htons 634 net/ipv6/ip6_output.c ipv6_hdr(skb)->payload_len = htons(first_len - sizeof(struct ipv6hdr)); htons 656 net/ipv6/ip6_output.c fh->frag_off = htons(iter->offset); htons 658 net/ipv6/ip6_output.c fh->frag_off |= htons(IP6_MF); htons 660 net/ipv6/ip6_output.c ipv6_hdr(frag)->payload_len = htons(frag->len - sizeof(struct ipv6hdr)); htons 750 net/ipv6/ip6_output.c fh->frag_off = htons(state->offset); htons 752 net/ipv6/ip6_output.c fh->frag_off |= htons(IP6_MF); htons 753 net/ipv6/ip6_output.c ipv6_hdr(frag)->payload_len = htons(frag->len - sizeof(struct ipv6hdr)); htons 1528 net/ipv6/ip6_output.c skb->protocol = htons(ETH_P_IPV6); htons 870 net/ipv6/ip6_tunnel.c .proto = htons(ETH_P_IPV6), htons 875 net/ipv6/ip6_tunnel.c .proto = htons(ETH_P_IP), htons 1060 net/ipv6/ip6_tunnel.c if (skb->protocol == htons(ETH_P_IPV6)) { htons 1132 net/ipv6/ip6_tunnel.c mtu = max(mtu, skb->protocol == htons(ETH_P_IPV6) ? htons 1184 net/ipv6/ip6_tunnel.c if (skb->protocol == htons(ETH_P_IP)) htons 1186 net/ipv6/ip6_tunnel.c else if (skb->protocol == htons(ETH_P_IPV6)) htons 1398 net/ipv6/ip6_tunnel.c case htons(ETH_P_IP): htons 1401 net/ipv6/ip6_tunnel.c case htons(ETH_P_IPV6): htons 98 net/ipv6/ip6_udp_tunnel.c uh->len = htons(skb->len); htons 108 net/ipv6/ip6_udp_tunnel.c ip6h->payload_len = htons(skb->len); htons 454 net/ipv6/ip6_vti.c case htons(ETH_P_IP): { htons 466 net/ipv6/ip6_vti.c case htons(ETH_P_IPV6): htons 511 net/ipv6/ip6_vti.c if (skb->protocol == htons(ETH_P_IPV6)) { htons 557 net/ipv6/ip6_vti.c case htons(ETH_P_IPV6): htons 565 net/ipv6/ip6_vti.c case htons(ETH_P_IP): htons 568 net/ipv6/ip6mr.c skb->protocol = htons(ETH_P_IPV6); htons 1365 net/ipv6/mcast.c IP6CB(skb)->ra != htons(IPV6_OPT_ROUTERALERT_MLD)) htons 1572 net/ipv6/mcast.c skb->protocol = htons(ETH_P_IPV6); htons 1581 net/ipv6/mcast.c hdr->payload_len = htons(len); htons 1661 net/ipv6/mcast.c pip6->payload_len = htons(payload_len); htons 1723 net/ipv6/mcast.c pmr->mld2r_ngrec = htons(ntohs(pmr->mld2r_ngrec)+1); htons 1801 net/ipv6/mcast.c pgr->grec_nsrcs = htons(scount); htons 1848 net/ipv6/mcast.c pgr->grec_nsrcs = htons(scount); htons 237 net/ipv6/mip6.c sel.dport_mask = htons(~0); htons 240 net/ipv6/mip6.c sel.sport_mask = htons(~0); htons 424 net/ipv6/ndisc.c skb->protocol = htons(ETH_P_IPV6); htons 458 net/ipv6/ndisc.c hdr->payload_len = htons(len); htons 33 net/ipv6/netfilter/ip6t_eui64.c if (eth_hdr(skb)->h_proto == htons(ETH_P_IPV6)) { htons 59 net/ipv6/netfilter/ip6t_frag.c pr_debug("MF %04X ", fh->frag_off & htons(IP6_MF)); htons 204 net/ipv6/netfilter/nf_conntrack_reasm.c if (!(fhdr->frag_off & htons(IP6_MF))) { htons 355 net/ipv6/netfilter/nf_conntrack_reasm.c ipv6_hdr(skb)->payload_len = htons(payload_len); htons 42 net/ipv6/netfilter/nf_dup_ipv6.c skb->protocol = htons(ETH_P_IPV6); htons 104 net/ipv6/netfilter/nf_log_ipv6.c if (fh->frag_off & htons(0x0001)) htons 81 net/ipv6/netfilter/nf_reject_ipv6.c nskb->protocol = htons(ETH_P_IPV6); htons 203 net/ipv6/netfilter/nf_reject_ipv6.c nskb->protocol = htons(ETH_P_IPV6); htons 204 net/ipv6/netfilter/nf_reject_ipv6.c ip6h->payload_len = htons(sizeof(struct tcphdr)); htons 230 net/ipv6/netfilter/nf_reject_ipv6.c if (thoff < 0 || thoff >= skb->len || (fo & htons(~0x7)) != 0) htons 155 net/ipv6/output_core.c ipv6_hdr(skb)->payload_len = htons(len); htons 165 net/ipv6/output_core.c skb->protocol = htons(ETH_P_IPV6); htons 647 net/ipv6/raw.c skb->protocol = htons(ETH_P_IPV6); htons 141 net/ipv6/reassembly.c if (!(fhdr->frag_off & htons(IP6_MF))) { htons 288 net/ipv6/reassembly.c ipv6_hdr(skb)->payload_len = htons(payload_len); htons 343 net/ipv6/reassembly.c if (!(fhdr->frag_off & htons(0xFFF9))) { htons 101 net/ipv6/seg6_iptunnel.c } else if (!do_flowlabel && skb->protocol == htons(ETH_P_IPV6)) { htons 137 net/ipv6/seg6_iptunnel.c if (skb->protocol == htons(ETH_P_IPV6)) { htons 234 net/ipv6/seg6_iptunnel.c if (skb->protocol != htons(ETH_P_IPV6)) htons 246 net/ipv6/seg6_iptunnel.c if (skb->protocol == htons(ETH_P_IPV6)) htons 248 net/ipv6/seg6_iptunnel.c else if (skb->protocol == htons(ETH_P_IP)) htons 259 net/ipv6/seg6_iptunnel.c skb->protocol = htons(ETH_P_IPV6); htons 275 net/ipv6/seg6_iptunnel.c skb->protocol = htons(ETH_P_IPV6); htons 279 net/ipv6/seg6_iptunnel.c ipv6_hdr(skb)->payload_len = htons(skb->len - sizeof(struct ipv6hdr)); htons 369 net/ipv6/seg6_local.c skb->protocol = htons(ETH_P_IP); htons 424 net/ipv6/seg6_local.c ipv6_hdr(skb)->payload_len = htons(skb->len - sizeof(struct ipv6hdr)); htons 456 net/ipv6/seg6_local.c ipv6_hdr(skb)->payload_len = htons(skb->len - sizeof(struct ipv6hdr)); htons 623 net/ipv6/seg6_local.c if (skb->protocol != htons(ETH_P_IPV6)) { htons 664 net/ipv6/sit.c if (iptunnel_pull_header(skb, 0, htons(ETH_P_IPV6), htons 704 net/ipv6/sit.c .proto = htons(ETH_P_IP), htons 710 net/ipv6/sit.c .proto = htons(ETH_P_MPLS_UC), htons 794 net/ipv6/sit.c if (v6dst->s6_addr16[0] == htons(0x2002)) { htons 1035 net/ipv6/sit.c case htons(ETH_P_IP): htons 1038 net/ipv6/sit.c case htons(ETH_P_IPV6): htons 1042 net/ipv6/sit.c case htons(ETH_P_MPLS_UC): htons 1228 net/ipv6/sit.c p.iph.ihl != 5 || (p.iph.frag_off&htons(~IP_DF))) htons 1231 net/ipv6/sit.c p.iph.frag_off |= htons(IP_DF); htons 1474 net/ipv6/sit.c parms->iph.frag_off = htons(IP_DF); htons 1481 net/ipv6/sit.c parms->iph.frag_off = htons(IP_DF); htons 1710 net/ipv6/sit.c !!(parm->iph.frag_off & htons(IP_DF))) || htons 847 net/ipv6/tcp_ipv6.c t1->window = htons(win); htons 1090 net/ipv6/tcp_ipv6.c if (skb->protocol == htons(ETH_P_IP)) htons 1132 net/ipv6/tcp_ipv6.c if (skb->protocol == htons(ETH_P_IP)) { htons 1341 net/ipv6/tcp_ipv6.c if (skb->protocol == htons(ETH_P_IP)) htons 299 net/ipv6/udp.c is_udp4 = (skb->protocol == htons(ETH_P_IP)); htons 1120 net/ipv6/udp.c uh->len = htons(len); htons 57 net/ipv6/xfrm6_input.c ipv6_hdr(skb)->payload_len = htons(skb->len - sizeof(struct ipv6hdr)); htons 83 net/ipv6/xfrm6_output.c skb->protocol = htons(ETH_P_IPV6); htons 160 net/ipv6/xfrm6_output.c if (skb->protocol == htons(ETH_P_IPV6)) htons 30 net/ipv6/xfrm6_state.c XFRM_MODE_SKB_CB(skb)->frag_off = htons(IP_DF); htons 2273 net/key/af_key.c xp->selector.sport_mask = htons(0xffff); htons 2286 net/key/af_key.c xp->selector.dport_mask = htons(0xffff); htons 2380 net/key/af_key.c sel.sport_mask = htons(0xffff); htons 2388 net/key/af_key.c sel.dport_mask = htons(0xffff); htons 2588 net/key/af_key.c sel.sport_mask = htons(0xffff); htons 2597 net/key/af_key.c sel.dport_mask = htons(0xffff); htons 950 net/l2tp/l2tp_core.c *bufp++ = htons(flags); htons 951 net/l2tp/l2tp_core.c *bufp++ = htons(tunnel_id); htons 952 net/l2tp/l2tp_core.c *bufp++ = htons(session_id); htons 954 net/l2tp/l2tp_core.c *bufp++ = htons(session->ns); htons 976 net/l2tp/l2tp_core.c *((__be16 *) bufp) = htons(flags); htons 1119 net/l2tp/l2tp_core.c uh->len = htons(udp_len); htons 1325 net/l2tp/l2tp_core.c udp_conf.local_udp_port = htons(cfg->local_udp_port); htons 1326 net/l2tp/l2tp_core.c udp_conf.peer_udp_port = htons(cfg->peer_udp_port); htons 76 net/llc/af_llc.c return htons(ETH_P_802_2); htons 129 net/llc/llc_input.c if (skb->protocol == htons(ETH_P_802_2)) { htons 61 net/llc/llc_sap.c skb->protocol = htons(ETH_P_802_2); htons 749 net/mac80211/rx.c skb->protocol = htons(ETH_P_802_2); htons 2559 net/mac80211/rx.c xmit_skb->protocol = htons(ETH_P_802_3); htons 3546 net/mac80211/rx.c skb->protocol = htons(ETH_P_802_2); htons 4315 net/mac80211/rx.c xmit_skb->protocol = htons(ETH_P_802_3); htons 829 net/mac80211/status.c skb->protocol = htons(ETH_P_802_2); htons 3976 net/mac80211/tx.c if (ethertype == htons(ETH_P_8021Q) && skb->len >= VLAN_ETH_HLEN) htons 3979 net/mac80211/tx.c case htons(ETH_P_ARP): htons 3980 net/mac80211/tx.c case htons(ETH_P_IP): htons 3981 net/mac80211/tx.c case htons(ETH_P_IPV6): htons 5121 net/mac80211/tx.c skb->protocol = htons(ETH_P_802_3); htons 5149 net/mac80211/tx.c skb->protocol = htons(ETH_P_802_3); htons 27 net/mac802154/rx.c skb->protocol = htons(ETH_P_IEEE802154); htons 229 net/mac802154/rx.c skb->protocol = htons(ETH_P_IEEE802154); htons 136 net/mpls/af_mpls.c if (skb->protocol == htons(ETH_P_MPLS_UC)) { htons 142 net/mpls/af_mpls.c } else if (skb->protocol == htons(ETH_P_IP)) { htons 145 net/mpls/af_mpls.c } else if (skb->protocol == htons(ETH_P_IPV6)) { htons 296 net/mpls/af_mpls.c skb->protocol = htons(ETH_P_IP); htons 310 net/mpls/af_mpls.c htons(hdr4->ttl << 8), htons 311 net/mpls/af_mpls.c htons(new_ttl << 8)); htons 318 net/mpls/af_mpls.c skb->protocol = htons(ETH_P_IPV6); htons 430 net/mpls/af_mpls.c skb->protocol = htons(ETH_P_MPLS_UC); htons 2416 net/mpls/af_mpls.c skb->protocol = htons(ETH_P_MPLS_UC); htons 122 net/mpls/mpls_iptunnel.c skb->protocol = htons(ETH_P_MPLS_UC); htons 49 net/ncsi/ncsi-cmd.c h->length = htons(nca->payload); htons 139 net/ncsi/ncsi-cmd.c cmd->vlan = htons(nca->words[1]); htons 305 net/ncsi/ncsi-cmd.c skb->protocol = htons(ETH_P_NCSI); htons 370 net/ncsi/ncsi-cmd.c eh->h_proto = htons(ETH_P_NCSI); htons 89 net/netfilter/ipset/ip_set_bitmap_port.c htons(map->first_port + id)); htons 95 net/netfilter/ipset/ip_set_bitmap_port.c return nla_put_net16(skb, IPSET_ATTR_PORT, htons(map->first_port)) || htons 96 net/netfilter/ipset/ip_set_bitmap_port.c nla_put_net16(skb, IPSET_ATTR_PORT_TO, htons(map->last_port)); htons 1445 net/netfilter/ipset/ip_set_core.c nla_put_net16(skb, IPSET_ATTR_INDEX, htons(index))) htons 1891 net/netfilter/ipset/ip_set_core.c nla_put_net16(skb2, IPSET_ATTR_INDEX, htons(id))) htons 74 net/netfilter/ipset/ip_set_getport.c *port = (__force __be16)htons((ic->type << 8) | ic->code); htons 86 net/netfilter/ipset/ip_set_getport.c htons((ic->icmp6_type << 8) | ic->icmp6_code); htons 144 net/netfilter/ipset/ip_set_getport.c if (protoff < 0 || (frag_off & htons(~0x7)) != 0) htons 182 net/netfilter/ipset/ip_set_hash_ipport.c e.port = htons(p); htons 325 net/netfilter/ipset/ip_set_hash_ipport.c e.port = htons(port); htons 189 net/netfilter/ipset/ip_set_hash_ipportip.c e.port = htons(p); htons 340 net/netfilter/ipset/ip_set_hash_ipportip.c e.port = htons(port); htons 279 net/netfilter/ipset/ip_set_hash_ipportnet.c e.port = htons(p); htons 496 net/netfilter/ipset/ip_set_hash_ipportnet.c e.port = htons(port); htons 249 net/netfilter/ipset/ip_set_hash_netport.c e.port = htons(p); htons 444 net/netfilter/ipset/ip_set_hash_netport.c e.port = htons(port); htons 300 net/netfilter/ipset/ip_set_hash_netportnet.c e.port = htons(p); htons 541 net/netfilter/ipset/ip_set_hash_netportnet.c e.port = htons(port); htons 92 net/netfilter/ipvs/ip_vs_app.c inc->port = htons(port); htons 781 net/netfilter/ipvs/ip_vs_conn.c if (ct->vport != htons(0xffff)) { htons 783 net/netfilter/ipvs/ip_vs_conn.c ct->dport = htons(0xffff); htons 784 net/netfilter/ipvs/ip_vs_conn.c ct->vport = htons(0xffff); htons 988 net/netfilter/ipvs/ip_vs_core.c if (unlikely(cih->frag_off & htons(IP_OFFSET) && htons 1636 net/netfilter/ipvs/ip_vs_core.c if (type != htons(ETH_P_IP)) htons 1711 net/netfilter/ipvs/ip_vs_core.c if (unlikely(cih->frag_off & htons(IP_OFFSET))) htons 1733 net/netfilter/ipvs/ip_vs_core.c if (unlikely(cih->frag_off & htons(IP_OFFSET))) htons 1762 net/netfilter/ipvs/ip_vs_core.c if (unlikely(cih->frag_off & htons(IP_OFFSET) && htons 1821 net/netfilter/ipvs/ip_vs_core.c if (!(frag_off & htons(IP_DF))) htons 230 net/netfilter/ipvs/ip_vs_ftp.c *port = htons(hport); htons 533 net/netfilter/ipvs/ip_vs_ftp.c htons(ntohs(cp->vport)-1), &p); htons 537 net/netfilter/ipvs/ip_vs_ftp.c htons(ntohs(cp->dport)-1), htons 226 net/netfilter/ipvs/ip_vs_proto.c else if (ih->frag_off & htons(IP_OFFSET)) htons 46 net/netfilter/ipvs/ip_vs_proto_ah_esp.c &iph->saddr, htons(PORT_ISAKMP), htons 47 net/netfilter/ipvs/ip_vs_proto_ah_esp.c &iph->daddr, htons(PORT_ISAKMP), p); htons 50 net/netfilter/ipvs/ip_vs_proto_ah_esp.c &iph->daddr, htons(PORT_ISAKMP), htons 51 net/netfilter/ipvs/ip_vs_proto_ah_esp.c &iph->saddr, htons(PORT_ISAKMP), p); htons 188 net/netfilter/ipvs/ip_vs_proto_tcp.c htons(oldlen), htons 189 net/netfilter/ipvs/ip_vs_proto_tcp.c htons(skb->len - tcphoff)); htons 271 net/netfilter/ipvs/ip_vs_proto_tcp.c htons(oldlen), htons 272 net/netfilter/ipvs/ip_vs_proto_tcp.c htons(skb->len - tcphoff)); htons 181 net/netfilter/ipvs/ip_vs_proto_udp.c htons(oldlen), htons 182 net/netfilter/ipvs/ip_vs_proto_udp.c htons(skb->len - udphoff)); htons 265 net/netfilter/ipvs/ip_vs_proto_udp.c htons(oldlen), htons 266 net/netfilter/ipvs/ip_vs_proto_udp.c htons(skb->len - udphoff)); htons 349 net/netfilter/ipvs/ip_vs_sync.c sb->mesg->size = htons(sizeof(struct ip_vs_sync_mesg)); htons 437 net/netfilter/ipvs/ip_vs_sync.c mesg->size = htons(sizeof(struct ip_vs_sync_mesg_v0)); htons 604 net/netfilter/ipvs/ip_vs_sync.c s->flags = htons(cp->flags & ~IP_VS_CONN_F_HASHED); htons 605 net/netfilter/ipvs/ip_vs_sync.c s->state = htons(cp->state); htons 613 net/netfilter/ipvs/ip_vs_sync.c m->size = htons(ntohs(m->size) + len); htons 717 net/netfilter/ipvs/ip_vs_sync.c m->size = htons(ntohs(m->size) + pad + len); htons 726 net/netfilter/ipvs/ip_vs_sync.c s->v4.ver_size = htons(len & SVER_MASK); /* Version 0 */ htons 728 net/netfilter/ipvs/ip_vs_sync.c s->v4.state = htons(cp->state); htons 1456 net/netfilter/ipvs/ip_vs_sync.c .sin6_port = htons(c->mcast_port + id), htons 1463 net/netfilter/ipvs/ip_vs_sync.c .sin_port = htons(c->mcast_port + id), htons 242 net/netfilter/ipvs/ip_vs_xmit.c if (unlikely(ip_hdr(skb)->frag_off & htons(IP_DF) && htons 989 net/netfilter/ipvs/ip_vs_xmit.c *df = (old_iph->frag_off & htons(IP_DF)); htons 1067 net/netfilter/ipvs/ip_vs_xmit.c pd[0] = htons(csum_start); htons 1068 net/netfilter/ipvs/ip_vs_xmit.c pd[1] = htons(csum_start + skb->csum_offset); htons 1087 net/netfilter/ipvs/ip_vs_xmit.c udph->len = htons(skb->len); htons 1100 net/netfilter/ipvs/ip_vs_xmit.c htons(ETH_P_IP) : htons(ETH_P_IPV6); htons 1401 net/netfilter/ipvs/ip_vs_xmit.c iph->payload_len = htons(payload_len); htons 141 net/netfilter/nf_conntrack_amanda.c port = htons(simple_strtoul(pbuf, &tmp, 10)); htons 64 net/netfilter/nf_conntrack_broadcast.c exp->mask.src.u.udp.port = htons(0xFFFF); htons 333 net/netfilter/nf_conntrack_core.c if (iph->frag_off & htons(IP_OFFSET)) htons 367 net/netfilter/nf_conntrack_core.c if (protoff < 0 || (frag_off & htons(~0x7)) != 0) { htons 1980 net/netfilter/nf_conntrack_core.c if (protoff < 0 || (frag_off & htons(~0x7)) != 0) htons 333 net/netfilter/nf_conntrack_expect.c exp->mask.src.u.all = htons(0xFFFF); htons 167 net/netfilter/nf_conntrack_ftp.c cmd->u.tcp.port = htons((array[4] << 8) | array[5]); htons 210 net/netfilter/nf_conntrack_ftp.c *port = htons(tmp_port); htons 277 net/netfilter/nf_conntrack_h323_main.c rtp_port = port & ~htons(1); htons 278 net/netfilter/nf_conntrack_h323_main.c rtcp_port = port | htons(1); htons 58 net/netfilter/nf_conntrack_helper.c struct nf_conntrack_tuple_mask mask = { .src.u.all = htons(0xFFFF) }; htons 398 net/netfilter/nf_conntrack_helper.c struct nf_conntrack_tuple_mask mask = { .src.u.all = htons(0xFFFF) }; htons 492 net/netfilter/nf_conntrack_helper.c helper->tuple.src.u.all = htons(spec_port); htons 204 net/netfilter/nf_conntrack_irc.c port = htons(dcc_port); htons 150 net/netfilter/nf_conntrack_netlink.c if (nla_put_be16(skb, attrtype, htons(zone->id))) htons 2215 net/netfilter/nf_conntrack_netlink.c nfmsg->res_id = htons(cpu); htons 3446 net/netfilter/nf_conntrack_netlink.c nfmsg->res_id = htons(cpu); htons 379 net/netfilter/nf_conntrack_proto.c if (protoff < 0 || (frag_off & htons(~0x7)) != 0) { htons 275 net/netfilter/nf_conntrack_sip.c *port = htons(p); htons 277 net/netfilter/nf_conntrack_sip.c *port = htons(SIP_PORT); htons 528 net/netfilter/nf_conntrack_sip.c *port = htons(p); htons 530 net/netfilter/nf_conntrack_sip.c *port = htons(SIP_PORT); htons 945 net/netfilter/nf_conntrack_sip.c rtp_port = htons(base_port); htons 946 net/netfilter/nf_conntrack_sip.c rtcp_port = htons(base_port + 1); htons 1103 net/netfilter/nf_conntrack_sip.c &rtp_addr, htons(port), t->class, htons 15 net/netfilter/nf_flow_table_inet.c case htons(ETH_P_IP): htons 17 net/netfilter/nf_flow_table_inet.c case htons(ETH_P_IPV6): htons 251 net/netfilter/nf_flow_table_ip.c if (skb->protocol != htons(ETH_P_IP)) htons 481 net/netfilter/nf_flow_table_ip.c if (skb->protocol != htons(ETH_P_IPV6)) htons 185 net/netfilter/nf_log_common.c case htons(ETH_P_IP): htons 189 net/netfilter/nf_log_common.c case htons(ETH_P_IPV6): htons 193 net/netfilter/nf_log_common.c case htons(ETH_P_ARP): htons 194 net/netfilter/nf_log_common.c case htons(ETH_P_RARP): htons 50 net/netfilter/nf_nat_amanda.c exp->tuple.dst.u.tcp.port = htons(port); htons 505 net/netfilter/nf_nat_core.c *keyptr = htons(min + off % range_size); htons 93 net/netfilter/nf_nat_ftp.c exp->tuple.dst.u.tcp.port = htons(port); htons 59 net/netfilter/nf_nat_helper.c ip_hdr(skb)->tot_len = htons(skb->len); htons 63 net/netfilter/nf_nat_helper.c htons(skb->len - sizeof(struct ipv6hdr)); htons 164 net/netfilter/nf_nat_helper.c udph->len = htons(datalen); htons 55 net/netfilter/nf_nat_irc.c exp->tuple.dst.u.tcp.port = htons(port); htons 402 net/netfilter/nf_nat_proto.c if ((frag_off & htons(~0x7)) == 0 && htons 514 net/netfilter/nf_nat_proto.c htons(oldlen), htons(datalen), true); htons 534 net/netfilter/nf_nat_proto.c htons(oldlen), htons(datalen), true); htons 247 net/netfilter/nf_nat_sip.c htons(n) == ct->tuplehash[dir].tuple.dst.u.udp.port && htons 248 net/netfilter/nf_nat_sip.c htons(n) != ct->tuplehash[!dir].tuple.src.u.udp.port) { htons 416 net/netfilter/nf_nat_sip.c exp->tuple.dst.u.udp.port = htons(port); htons 609 net/netfilter/nf_nat_sip.c rtp_exp->tuple.dst.u.udp.port = htons(port); htons 618 net/netfilter/nf_nat_sip.c rtcp_exp->tuple.dst.u.udp.port = htons(port + 1); htons 425 net/netfilter/nf_synproxy_core.c iph->frag_off = htons(IP_DF); htons 448 net/netfilter/nf_synproxy_core.c nskb->protocol = htons(ETH_P_IP); htons 582 net/netfilter/nf_synproxy_core.c nth->window = htons(state->seen[IP_CT_DIR_ORIGINAL].td_maxwin); htons 620 net/netfilter/nf_synproxy_core.c nth->window = htons(ntohs(th->window) >> opts->wscale); htons 997 net/netfilter/nf_synproxy_core.c nth->window = htons(state->seen[IP_CT_DIR_ORIGINAL].td_maxwin); htons 1036 net/netfilter/nf_synproxy_core.c nth->window = htons(ntohs(th->window) >> opts->wscale); htons 610 net/netfilter/nf_tables_api.c nfmsg->res_id = htons(net->nft.base_seq & 0xffff); htons 1273 net/netfilter/nf_tables_api.c nfmsg->res_id = htons(net->nft.base_seq & 0xffff); htons 2361 net/netfilter/nf_tables_api.c nfmsg->res_id = htons(net->nft.base_seq & 0xffff); htons 3315 net/netfilter/nf_tables_api.c nfmsg->res_id = htons(ctx->net->nft.base_seq & 0xffff); htons 4151 net/netfilter/nf_tables_api.c nfmsg->res_id = htons(net->nft.base_seq & 0xffff); htons 4223 net/netfilter/nf_tables_api.c nfmsg->res_id = htons(ctx->net->nft.base_seq & 0xffff); htons 5326 net/netfilter/nf_tables_api.c nfmsg->res_id = htons(net->nft.base_seq & 0xffff); htons 6001 net/netfilter/nf_tables_api.c nfmsg->res_id = htons(net->nft.base_seq & 0xffff); htons 6238 net/netfilter/nf_tables_api.c nfmsg->res_id = htons(net->nft.base_seq & 0xffff); htons 76 net/netfilter/nf_tables_trace.c veth.h_vlan_TCI = htons(skb_vlan_tag_get(skb)); htons 92 net/netfilter/nf_tables_trace.c htons(indev->type))) htons 102 net/netfilter/nf_tables_trace.c htons(outdev->type))) htons 470 net/netfilter/nfnetlink_cthelper.c htons(helper->tuple.src.l3num))) htons 181 net/netfilter/nfnetlink_cttimeout.c htons(timeout->timeout.l3num)) || htons 400 net/netfilter/nfnetlink_cttimeout.c if (nla_put_be16(skb, CTA_TIMEOUT_L3PROTO, htons(l3num)) || htons 419 net/netfilter/nfnetlink_log.c if (nla_put_be16(inst->skb, NFULA_VLAN_TCI, htons(skb->vlan_tci)) || htons 469 net/netfilter/nfnetlink_log.c nfmsg->res_id = htons(inst->group_num); htons 568 net/netfilter/nfnetlink_log.c phw.hw_addrlen = htons(len); htons 575 net/netfilter/nfnetlink_log.c if (nla_put_be16(inst->skb, NFULA_HWTYPE, htons(skb->dev->type)) || htons 577 net/netfilter/nfnetlink_log.c htons(skb->dev->hard_header_len))) htons 354 net/netfilter/nfnetlink_queue.c if (nla_put_be16(skb, NFQA_VLAN_TCI, htons(entskb->vlan_tci)) || htons 483 net/netfilter/nfnetlink_queue.c nfmsg->res_id = htons(queue->queue_num); htons 572 net/netfilter/nfnetlink_queue.c phw.hw_addrlen = htons(len); htons 798 net/netfilter/nfnetlink_queue.c skb->protocol = htons(ETH_P_IP); htons 801 net/netfilter/nfnetlink_queue.c skb->protocol = htons(ETH_P_IPV6); htons 80 net/netfilter/nft_byteorder.c d[i].u16 = (__force __u16)htons(s[i].u16); htons 207 net/netfilter/nft_chain_filter.c case htons(ETH_P_IP): htons 210 net/netfilter/nft_chain_filter.c case htons(ETH_P_IPV6): htons 262 net/netfilter/nft_chain_filter.c case htons(ETH_P_IP): htons 265 net/netfilter/nft_chain_filter.c case htons(ETH_P_IPV6): htons 936 net/netfilter/nft_ct.c nla_put_be16(skb, NFTA_CT_TIMEOUT_L3PROTO, htons(timeout->l3num))) htons 1126 net/netfilter/nft_ct.c if (nla_put_be16(skb, NFTA_CT_HELPER_L3PROTO, htons(family))) htons 1200 net/netfilter/nft_ct.c if (nla_put_be16(skb, NFTA_CT_EXPECT_L3PROTO, htons(priv->l3num)) || htons 139 net/netfilter/nft_exthdr.c if (skb->protocol != htons(ETH_P_IP)) htons 102 net/netfilter/nft_fwd_netdev.c if (skb->protocol != htons(ETH_P_IP)) { htons 118 net/netfilter/nft_fwd_netdev.c if (skb->protocol != htons(ETH_P_IPV6)) { htons 82 net/netfilter/nft_log.c case htons(ETH_P_IP): htons 85 net/netfilter/nft_log.c case htons(ETH_P_IPV6): htons 246 net/netfilter/nft_log.c if (nla_put_be16(skb, NFTA_LOG_GROUP, htons(li->u.ulog.group))) htons 256 net/netfilter/nft_log.c htons(li->u.ulog.qthreshold))) htons 178 net/netfilter/nft_meta.c case htons(ETH_P_IP): { htons 194 net/netfilter/nft_meta.c case htons(ETH_P_IPV6): htons 56 net/netfilter/nft_payload.c veth.h_vlan_TCI = htons(skb_vlan_tag_get(skb)); htons 264 net/netfilter/nft_payload.c case htons(ETH_P_IP): htons 267 net/netfilter/nft_payload.c case htons(ETH_P_IPV6): htons 134 net/netfilter/nft_queue.c if (nla_put_be16(skb, NFTA_QUEUE_NUM, htons(priv->queuenum)) || htons 135 net/netfilter/nft_queue.c nla_put_be16(skb, NFTA_QUEUE_TOTAL, htons(priv->queues_total)) || htons 136 net/netfilter/nft_queue.c nla_put_be16(skb, NFTA_QUEUE_FLAGS, htons(priv->flags))) htons 151 net/netfilter/nft_queue.c nla_put_be16(skb, NFTA_QUEUE_FLAGS, htons(priv->flags))) htons 140 net/netfilter/nft_synproxy.c case htons(ETH_P_IP): htons 144 net/netfilter/nft_synproxy.c case htons(ETH_P_IPV6): htons 230 net/netfilter/nft_synproxy.c if (nla_put_be16(skb, NFTA_SYNPROXY_MSS, htons(priv->info.mss)) || htons 83 net/netfilter/xt_AUDIT.c case htons(ETH_P_IP): htons 86 net/netfilter/xt_AUDIT.c case htons(ETH_P_IPV6): htons 57 net/netfilter/xt_HL.c csum_replace2(&iph->check, htons(iph->ttl << 8), htons 58 net/netfilter/xt_HL.c htons(new_ttl << 8)); htons 283 net/netfilter/xt_HMARK.c if (ip->frag_off & htons(IP_MF | IP_OFFSET)) htons 134 net/netfilter/xt_TCPMSS.c htons(oldmss), htons(newmss), htons 180 net/netfilter/xt_TCPMSS.c htons(len), htons(len + TCPOLEN_MSS), true); htons 210 net/netfilter/xt_TCPMSS.c newlen = htons(ntohs(iph->tot_len) + ret); htons 240 net/netfilter/xt_TCPMSS.c newlen = htons(ntohs(oldlen) + ret); htons 79 net/netfilter/xt_TCPOPTSTRIP.c inet_proto_csum_replace2(&tcph->check, skb, htons(o), htons 80 net/netfilter/xt_TCPOPTSTRIP.c htons(n), false); htons 69 net/netfilter/xt_sctp.c ++i, offset, sch->type, htons(sch->length), htons 290 net/netlink/af_netlink.c nskb->protocol = htons((u16) sk->sk_protocol); htons 52 net/netrom/nr_dev.c skb->protocol = htons(ETH_P_IP); htons 38 net/nsh/nsh.c skb->protocol = htons(ETH_P_NSH); htons 104 net/nsh/nsh.c skb->mac_len = proto == htons(ETH_P_TEB) ? ETH_HLEN : 0; htons 110 net/nsh/nsh.c skb_gso_error_unwind(skb, htons(ETH_P_NSH), nsh_len, htons 117 net/nsh/nsh.c skb->protocol = htons(ETH_P_NSH); htons 129 net/nsh/nsh.c .type = htons(ETH_P_NSH), htons 337 net/openvswitch/actions.c if (skb->protocol == htons(ETH_P_TEB)) htons 350 net/openvswitch/actions.c if (nh->frag_off & htons(IP_OFFSET)) htons 440 net/openvswitch/actions.c csum_replace2(&nh->check, htons(nh->ttl << 8), htons(new_ttl << 8)); htons 830 net/openvswitch/actions.c if (key->eth.type == htons(ETH_P_IP)) { htons 846 net/openvswitch/actions.c } else if (key->eth.type == htons(ETH_P_IPV6)) { htons 181 net/openvswitch/conntrack.c key->ct.orig_tp.src = htons(orig->dst.u.icmp.type); htons 182 net/openvswitch/conntrack.c key->ct.orig_tp.dst = htons(orig->dst.u.icmp.code); htons 207 net/openvswitch/conntrack.c if (key->eth.type == htons(ETH_P_IP) && htons 213 net/openvswitch/conntrack.c } else if (key->eth.type == htons(ETH_P_IPV6) && htons 303 net/openvswitch/conntrack.c if (swkey->eth.type == htons(ETH_P_IP)) { htons 314 net/openvswitch/conntrack.c } else if (swkey->eth.type == htons(ETH_P_IPV6)) { htons 464 net/openvswitch/conntrack.c if (ofs < 0 || (frag_off & htons(~0x7)) != 0) { htons 499 net/openvswitch/conntrack.c if (key->eth.type == htons(ETH_P_IP)) { htons 509 net/openvswitch/conntrack.c } else if (key->eth.type == htons(ETH_P_IPV6)) { htons 755 net/openvswitch/conntrack.c skb->protocol == htons(ETH_P_IP) && htons 762 net/openvswitch/conntrack.c skb->protocol == htons(ETH_P_IPV6)) { htons 822 net/openvswitch/conntrack.c if (key->eth.type == htons(ETH_P_IP)) htons 824 net/openvswitch/conntrack.c else if (key->eth.type == htons(ETH_P_IPV6)) htons 844 net/openvswitch/conntrack.c if (key->eth.type == htons(ETH_P_IP)) htons 846 net/openvswitch/conntrack.c else if (key->eth.type == htons(ETH_P_IPV6)) htons 1257 net/openvswitch/conntrack.c case htons(ETH_P_IP): htons 1260 net/openvswitch/conntrack.c case htons(ETH_P_IPV6): htons 1424 net/openvswitch/conntrack.c info->range.min_proto.all = htons(nla_get_u16(a)); htons 1430 net/openvswitch/conntrack.c info->range.max_proto.all = htons(nla_get_u16(a)); htons 57 net/openvswitch/flow.c #define TCP_FLAGS_BE16(tp) (*(__be16 *)&tcp_flag_word(tp) & htons(0x0FFF)) htons 317 net/openvswitch/flow.c key_vh->tci = vh->tci | htons(VLAN_CFI_MASK); htons 350 net/openvswitch/flow.c key->eth.vlan.tci = htons(skb->vlan_tci) | htons(VLAN_CFI_MASK); htons 386 net/openvswitch/flow.c return htons(ETH_P_802_2); htons 389 net/openvswitch/flow.c return htons(0); htons 395 net/openvswitch/flow.c return htons(ETH_P_802_2); htons 402 net/openvswitch/flow.c return htons(ETH_P_802_2); htons 413 net/openvswitch/flow.c key->tp.src = htons(icmp->icmp6_type); htons 414 net/openvswitch/flow.c key->tp.dst = htons(icmp->icmp6_code); htons 537 net/openvswitch/flow.c if (key->eth.type == htons(ETH_P_IP)) { htons 560 net/openvswitch/flow.c offset = nh->frag_off & htons(IP_OFFSET); htons 566 net/openvswitch/flow.c if (nh->frag_off & htons(IP_MF) || htons 605 net/openvswitch/flow.c key->tp.src = htons(icmp->type); htons 606 net/openvswitch/flow.c key->tp.dst = htons(icmp->code); htons 612 net/openvswitch/flow.c } else if (key->eth.type == htons(ETH_P_ARP) || htons 613 net/openvswitch/flow.c key->eth.type == htons(ETH_P_RARP)) { htons 620 net/openvswitch/flow.c arp->ar_hrd == htons(ARPHRD_ETHER) && htons 621 net/openvswitch/flow.c arp->ar_pro == htons(ETH_P_IP) && htons 661 net/openvswitch/flow.c } else if (key->eth.type == htons(ETH_P_IPV6)) { htons 723 net/openvswitch/flow.c } else if (key->eth.type == htons(ETH_P_NSH)) { htons 787 net/openvswitch/flow.c if (unlikely(key->eth.type == htons(0))) htons 794 net/openvswitch/flow.c if (key->eth.cvlan.tci & htons(VLAN_CFI_MASK)) htons 834 net/openvswitch/flow.c if (skb->protocol == htons(ETH_P_TEB)) htons 934 net/openvswitch/flow.c key->eth.type != htons(ETH_P_IP)) htons 937 net/openvswitch/flow.c (key->eth.type != htons(ETH_P_IPV6) || htons 154 net/openvswitch/flow.h return key->eth.type == htons(ETH_P_IPV6) && htons 157 net/openvswitch/flow.h (key->tp.src == htons(NDISC_NEIGHBOUR_SOLICITATION) || htons 158 net/openvswitch/flow.h key->tp.src == htons(NDISC_NEIGHBOUR_ADVERTISEMENT)); htons 179 net/openvswitch/flow_netlink.c if (match->key->eth.type == htons(ETH_P_ARP) htons 180 net/openvswitch/flow_netlink.c || match->key->eth.type == htons(ETH_P_RARP)) { htons 182 net/openvswitch/flow_netlink.c if (match->mask && (match->mask->key.eth.type == htons(0xffff))) htons 188 net/openvswitch/flow_netlink.c if (match->mask && (match->mask->key.eth.type == htons(0xffff))) htons 192 net/openvswitch/flow_netlink.c if (match->key->eth.type == htons(ETH_P_IP)) { htons 194 net/openvswitch/flow_netlink.c if (match->mask && match->mask->key.eth.type == htons(0xffff)) { htons 229 net/openvswitch/flow_netlink.c if (match->key->eth.type == htons(ETH_P_IPV6)) { htons 231 net/openvswitch/flow_netlink.c if (match->mask && match->mask->key.eth.type == htons(0xffff)) { htons 264 net/openvswitch/flow_netlink.c htons(NDISC_NEIGHBOUR_SOLICITATION) || htons 265 net/openvswitch/flow_netlink.c match->key->tp.src == htons(NDISC_NEIGHBOUR_ADVERTISEMENT)) { htons 273 net/openvswitch/flow_netlink.c if (match->mask && (match->mask->key.tp.src == htons(0xff))) htons 280 net/openvswitch/flow_netlink.c if (match->key->eth.type == htons(ETH_P_NSH)) { htons 283 net/openvswitch/flow_netlink.c match->mask->key.eth.type == htons(0xffff)) { htons 1005 net/openvswitch/flow_netlink.c if (!(tci & htons(VLAN_CFI_MASK))) { htons 1028 net/openvswitch/flow_netlink.c htons(VLAN_CFI_MASK)); htons 1030 net/openvswitch/flow_netlink.c htons(VLAN_CFI_MASK)); htons 1049 net/openvswitch/flow_netlink.c if (tpid != htons(0xffff)) { htons 1054 net/openvswitch/flow_netlink.c if (!(tci & htons(VLAN_CFI_MASK))) { htons 1110 net/openvswitch/flow_netlink.c encap_valid = !!(match->key->eth.vlan.tci & htons(VLAN_CFI_MASK)); htons 1130 net/openvswitch/flow_netlink.c eth_type = htons(0xffff); htons 1529 net/openvswitch/flow_netlink.c SW_FLOW_KEY_PUT(match, eth.type, htons(ETH_P_802_2), is_mask); htons 1602 net/openvswitch/flow_netlink.c if (!is_mask && (arp_key->arp_op & htons(0xff00))) { htons 1678 net/openvswitch/flow_netlink.c htons(icmp_key->icmp_type), is_mask); htons 1680 net/openvswitch/flow_netlink.c htons(icmp_key->icmp_code), is_mask); htons 1689 net/openvswitch/flow_netlink.c htons(icmpv6_key->icmpv6_type), is_mask); htons 1691 net/openvswitch/flow_netlink.c htons(icmpv6_key->icmpv6_code), is_mask); htons 1816 net/openvswitch/flow_netlink.c SW_FLOW_KEY_PUT(match, eth.vlan.tci, htons(0xffff), true); htons 1817 net/openvswitch/flow_netlink.c SW_FLOW_KEY_PUT(match, eth.cvlan.tci, htons(0xffff), true); htons 1934 net/openvswitch/flow_netlink.c __be16 eth_type = !is_mask ? vh->tpid : htons(0xffff); htons 2044 net/openvswitch/flow_netlink.c if (swkey->eth.type == htons(ETH_P_802_2)) { htons 2070 net/openvswitch/flow_netlink.c if (swkey->eth.type == htons(ETH_P_IP)) { htons 2083 net/openvswitch/flow_netlink.c } else if (swkey->eth.type == htons(ETH_P_IPV6)) { htons 2099 net/openvswitch/flow_netlink.c } else if (swkey->eth.type == htons(ETH_P_NSH)) { htons 2102 net/openvswitch/flow_netlink.c } else if (swkey->eth.type == htons(ETH_P_ARP) || htons 2103 net/openvswitch/flow_netlink.c swkey->eth.type == htons(ETH_P_RARP)) { htons 2113 net/openvswitch/flow_netlink.c arp_key->arp_op = htons(output->ip.proto); htons 2126 net/openvswitch/flow_netlink.c if ((swkey->eth.type == htons(ETH_P_IP) || htons 2127 net/openvswitch/flow_netlink.c swkey->eth.type == htons(ETH_P_IPV6)) && htons 2160 net/openvswitch/flow_netlink.c } else if (swkey->eth.type == htons(ETH_P_IP) && htons 2170 net/openvswitch/flow_netlink.c } else if (swkey->eth.type == htons(ETH_P_IPV6) && htons 2715 net/openvswitch/flow_netlink.c if (eth_type != htons(ETH_P_IP)) htons 2736 net/openvswitch/flow_netlink.c if (eth_type != htons(ETH_P_IPV6)) htons 2764 net/openvswitch/flow_netlink.c if ((eth_type != htons(ETH_P_IP) && htons 2765 net/openvswitch/flow_netlink.c eth_type != htons(ETH_P_IPV6)) || htons 2772 net/openvswitch/flow_netlink.c if ((eth_type != htons(ETH_P_IP) && htons 2773 net/openvswitch/flow_netlink.c eth_type != htons(ETH_P_IPV6)) || htons 2785 net/openvswitch/flow_netlink.c if ((eth_type != htons(ETH_P_IP) && htons 2786 net/openvswitch/flow_netlink.c eth_type != htons(ETH_P_IPV6)) || htons 2793 net/openvswitch/flow_netlink.c if (eth_type != htons(ETH_P_NSH)) htons 3035 net/openvswitch/flow_netlink.c vlan_tci = htons(0); htons 3044 net/openvswitch/flow_netlink.c if (!(vlan->vlan_tci & htons(VLAN_CFI_MASK))) htons 3060 net/openvswitch/flow_netlink.c if (vlan_tci & htons(VLAN_CFI_MASK) || htons 3061 net/openvswitch/flow_netlink.c (eth_type != htons(ETH_P_IP) && htons 3062 net/openvswitch/flow_netlink.c eth_type != htons(ETH_P_IPV6) && htons 3063 net/openvswitch/flow_netlink.c eth_type != htons(ETH_P_ARP) && htons 3064 net/openvswitch/flow_netlink.c eth_type != htons(ETH_P_RARP) && htons 3072 net/openvswitch/flow_netlink.c if (vlan_tci & htons(VLAN_CFI_MASK) || htons 3085 net/openvswitch/flow_netlink.c eth_type = htons(0); htons 3137 net/openvswitch/flow_netlink.c if (vlan_tci & htons(VLAN_CFI_MASK)) htons 3158 net/openvswitch/flow_netlink.c if (eth_type != htons(ETH_P_NSH)) htons 93 net/openvswitch/vport-vxlan.c conf.dst_port = htons(nla_get_u16(a)); htons 478 net/openvswitch/vport.c skb->protocol = htons(ETH_P_TEB); htons 1786 net/packet/af_packet.c return likely(eth_hdr(skb)->h_proto == htons(ETH_P_8021Q)); htons 1861 net/packet/af_packet.c if ((!skb->protocol || skb->protocol == htons(ETH_P_ALL)) && htons 178 net/phonet/af_phonet.c skb->protocol = htons(ETH_P_PHONET); htons 40 net/phonet/pep-gprs.c return htons(0); htons 44 net/phonet/pep-gprs.c return htons(ETH_P_IP); htons 46 net/phonet/pep-gprs.c return htons(ETH_P_IPV6); htons 48 net/phonet/pep-gprs.c return htons(0); htons 180 net/phonet/pep-gprs.c case htons(ETH_P_IP): htons 181 net/phonet/pep-gprs.c case htons(ETH_P_IPV6): htons 946 net/rds/ib_cm.c sin->sin_port = htons(RDS_PORT); htons 959 net/rds/ib_cm.c sin6->sin6_port = htons(RDS_CM_PORT); htons 254 net/rds/rdma_transport.c sin.sin_port = htons(RDS_PORT); htons 264 net/rds/rdma_transport.c sin6.sin6_port = htons(RDS_CM_PORT); htons 154 net/rds/tcp_connect.c sin6.sin6_port = htons(RDS_TCP_PORT); htons 162 net/rds/tcp_connect.c sin.sin_port = htons(RDS_TCP_PORT); htons 317 net/rds/tcp_listen.c sin6->sin6_port = (__force u16)htons(RDS_TCP_PORT); htons 325 net/rds/tcp_listen.c sin->sin_port = (__force u16)htons(RDS_TCP_PORT); htons 77 net/rxrpc/conn_event.c pkt.whdr.serviceId = htons(conn->service_id); htons 92 net/rxrpc/conn_event.c pkt.ack.maxSkew = htons(skb ? skb->priority : 0); htons 231 net/rxrpc/conn_event.c whdr.serviceId = htons(conn->service_id); htons 57 net/rxrpc/local_event.c whdr.serviceId = htons(sp->hdr.serviceId); htons 89 net/rxrpc/output.c pkt->ack.bufferSpace = htons(8); htons 90 net/rxrpc/output.c pkt->ack.maxSkew = htons(0); htons 166 net/rxrpc/output.c pkt->whdr.serviceId = htons(call->service_id); htons 289 net/rxrpc/output.c pkt.whdr.serviceId = htons(call->service_id); htons 340 net/rxrpc/output.c whdr._rsvd = htons(sp->hdr._rsvd); htons 341 net/rxrpc/output.c whdr.serviceId = htons(call->service_id); htons 562 net/rxrpc/output.c whdr.serviceId = htons(sp->hdr.serviceId); htons 172 net/rxrpc/peer_object.c htons(7000), htons(7001), IPPROTO_UDP, 0, 0); htons 187 net/rxrpc/peer_object.c fl6->fl6_dport = htons(7001); htons 188 net/rxrpc/peer_object.c fl6->fl6_sport = htons(7000); htons 679 net/rxrpc/rxkad.c whdr.serviceId = htons(conn->service_id); htons 735 net/rxrpc/rxkad.c whdr.serviceId = htons(hdr->serviceId); htons 46 net/sched/act_connmark.c if (skb->protocol == htons(ETH_P_IP)) { htons 51 net/sched/act_connmark.c } else if (skb->protocol == htons(ETH_P_IPV6)) { htons 399 net/sched/act_csum.c switch (iph->frag_off & htons(IP_OFFSET) ? 0 : iph->protocol) { htons 104 net/sched/act_ct.c case htons(ETH_P_IP): htons 107 net/sched/act_ct.c case htons(ETH_P_IPV6): htons 236 net/sched/act_ct.c if (skb->protocol == htons(ETH_P_IP) && htons 243 net/sched/act_ct.c skb->protocol == htons(ETH_P_IPV6)) { htons 99 net/sched/act_ctinfo.c if (tc_skb_protocol(skb) == htons(ETH_P_IP)) { htons 105 net/sched/act_ctinfo.c } else if (tc_skb_protocol(skb) == htons(ETH_P_IPV6)) { htons 56 net/sched/act_ife.c edata = htons(edata); htons 834 net/sched/act_ife.c oethh->h_proto = htons(p->eth_type); htons 264 net/sched/act_mpls.c htons(ETH_P_MPLS_UC); htons 161 net/sched/act_nat.c } else if ((iph->frag_off & htons(IP_OFFSET)) || htons 169 net/sched/act_nat.c switch (iph->frag_off & htons(IP_OFFSET) ? 0 : iph->protocol) { htons 45 net/sched/act_skbedit.c case htons(ETH_P_IP): htons 52 net/sched/act_skbedit.c case htons(ETH_P_IPV6): htons 182 net/sched/act_skbmod.c p->eth_type = htons(eth_type); htons 164 net/sched/act_vlan.c case htons(ETH_P_8021Q): htons 165 net/sched/act_vlan.c case htons(ETH_P_8021AD): htons 175 net/sched/act_vlan.c push_proto = htons(ETH_P_8021Q); htons 1578 net/sched/cls_api.c tp->protocol != htons(ETH_P_ALL)) htons 155 net/sched/cls_flow.c case htons(ETH_P_IP): htons 157 net/sched/cls_flow.c case htons(ETH_P_IPV6): htons 168 net/sched/cls_flow.c case htons(ETH_P_IP): htons 170 net/sched/cls_flow.c case htons(ETH_P_IPV6): htons 206 net/sched/cls_flower.c min_mask = htons(filter->mask->key.tp_range.tp_min.dst); htons 207 net/sched/cls_flower.c max_mask = htons(filter->mask->key.tp_range.tp_max.dst); htons 208 net/sched/cls_flower.c min_val = htons(filter->key.tp_range.tp_min.dst); htons 209 net/sched/cls_flower.c max_val = htons(filter->key.tp_range.tp_max.dst); htons 212 net/sched/cls_flower.c if (htons(key->tp_range.tp.dst) < min_val || htons 213 net/sched/cls_flower.c htons(key->tp_range.tp.dst) > max_val) htons 229 net/sched/cls_flower.c min_mask = htons(filter->mask->key.tp_range.tp_min.src); htons 230 net/sched/cls_flower.c max_mask = htons(filter->mask->key.tp_range.tp_max.src); htons 231 net/sched/cls_flower.c min_val = htons(filter->key.tp_range.tp_min.src); htons 232 net/sched/cls_flower.c max_val = htons(filter->key.tp_range.tp_max.src); htons 235 net/sched/cls_flower.c if (htons(key->tp_range.tp.src) < min_val || htons 236 net/sched/cls_flower.c htons(key->tp_range.tp.src) > max_val) htons 739 net/sched/cls_flower.c htons(key->tp_range.tp_max.dst) <= htons 740 net/sched/cls_flower.c htons(key->tp_range.tp_min.dst)) || htons 742 net/sched/cls_flower.c htons(key->tp_range.tp_max.src) <= htons 743 net/sched/cls_flower.c htons(key->tp_range.tp_min.src))) htons 1105 net/sched/cls_flower.c if (key->basic.n_proto == htons(ETH_P_IP) || htons 1106 net/sched/cls_flower.c key->basic.n_proto == htons(ETH_P_IPV6)) { htons 1157 net/sched/cls_flower.c } else if (key->basic.n_proto == htons(ETH_P_IP) && htons 1167 net/sched/cls_flower.c } else if (key->basic.n_proto == htons(ETH_P_IPV6) && htons 1177 net/sched/cls_flower.c } else if (key->basic.n_proto == htons(ETH_P_MPLS_UC) || htons 1178 net/sched/cls_flower.c key->basic.n_proto == htons(ETH_P_MPLS_MC)) { htons 1182 net/sched/cls_flower.c } else if (key->basic.n_proto == htons(ETH_P_ARP) || htons 1183 net/sched/cls_flower.c key->basic.n_proto == htons(ETH_P_RARP)) { htons 2280 net/sched/cls_flower.c if ((key->basic.n_proto == htons(ETH_P_IP) || htons 2281 net/sched/cls_flower.c key->basic.n_proto == htons(ETH_P_IPV6)) && htons 2332 net/sched/cls_flower.c else if (key->basic.n_proto == htons(ETH_P_IP) && htons 2343 net/sched/cls_flower.c else if (key->basic.n_proto == htons(ETH_P_IPV6) && htons 2354 net/sched/cls_flower.c else if ((key->basic.n_proto == htons(ETH_P_ARP) || htons 2355 net/sched/cls_flower.c key->basic.n_proto == htons(ETH_P_RARP)) && htons 63 net/sched/em_ipset.c case htons(ETH_P_IP): htons 69 net/sched/em_ipset.c case htons(ETH_P_IPV6): htons 216 net/sched/em_ipt.c case htons(ETH_P_IP): htons 222 net/sched/em_ipt.c case htons(ETH_P_IPV6): htons 595 net/sched/sch_cake.c if (tc_skb_protocol(skb) != htons(ETH_P_IP)) htons 1524 net/sched/sch_cake.c case htons(ETH_P_IP): htons 1535 net/sched/sch_cake.c case htons(ETH_P_IPV6): htons 1546 net/sched/sch_cake.c case htons(ETH_P_ARP): htons 214 net/sched/sch_dsmark.c case htons(ETH_P_IP): htons 224 net/sched/sch_dsmark.c case htons(ETH_P_IPV6): htons 307 net/sched/sch_dsmark.c case htons(ETH_P_IP): htons 311 net/sched/sch_dsmark.c case htons(ETH_P_IPV6): htons 269 net/sctp/associola.c p->length = htons(sizeof(*p) + SCTP_AUTH_RANDOM_LENGTH); htons 778 net/sctp/auth.c p->param_hdr.length = htons(param_len + 1); htons 811 net/sctp/auth.c htons(hmacs->shmac_idents[i]); htons 813 net/sctp/auth.c htons(sizeof(struct sctp_paramhdr) + htons 1033 net/sctp/auth.c htons(sizeof(struct sctp_paramhdr) + 2); htons 1034 net/sctp/auth.c auth_hmacs->hmac_ids[0] = htons(SCTP_AUTH_HMAC_ID_SHA1); htons 1048 net/sctp/auth.c htons(sizeof(struct sctp_paramhdr)); htons 154 net/sctp/bind_addr.c addr->a.v4.sin_port = htons(bp->port); htons 279 net/sctp/bind_addr.c af->from_addr_param(&addr, rawaddr, htons(port), 0); htons 40 net/sctp/diag.c r->id.idiag_sport = htons(asoc->base.bind_addr.port); htons 41 net/sctp/diag.c r->id.idiag_dport = htons(asoc->peer.port); htons 311 net/sctp/diag.c if (r->id.idiag_sport != htons(assoc->base.bind_addr.port) && htons 314 net/sctp/diag.c if (r->id.idiag_dport != htons(assoc->peer.port) && htons 246 net/sctp/endpointola.c if ((htons(ep->base.bind_addr.port) == laddr->v4.sin_port) && htons 887 net/sctp/input.c if (x->lport != htons(t->asoc->base.bind_addr.port)) htons 901 net/sctp/input.c htons(t->asoc->base.bind_addr.port), htons 942 net/sctp/input.c arg.lport = htons(t->asoc->base.bind_addr.port); htons 1013 net/sctp/input.c .lport = htons(ep->base.bind_addr.port), htons 265 net/sctp/ipv6.c fl6->fl6_sport = htons(asoc->base.bind_addr.port); htons 295 net/sctp/ipv6.c sctp_v6_to_addr(&dst_saddr, &fl6->saddr, htons(bp->port)); htons 553 net/sctp/ipv6.c param->v6.param_hdr.length = htons(length); htons 821 net/sctp/ipv6.c addr->v4.sin_port = htons(asoc->peer.port); htons 830 net/sctp/ipv6.c addr->v6.sin6_port = htons(asoc->peer.port); htons 582 net/sctp/output.c sh->source = htons(packet->source_port); htons 583 net/sctp/output.c sh->dest = htons(packet->destination_port); htons 160 net/sctp/protocol.c laddr.v4.sin_port = htons(bp->port); htons 274 net/sctp/protocol.c param->v4.param_hdr.length = htons(length); htons 430 net/sctp/protocol.c fl4->fl4_sport = htons(asoc->base.bind_addr.port); htons 460 net/sctp/protocol.c sctp_v4_dst_saddr(&dst_saddr, fl4, htons(bp->port)); htons 904 net/sctp/protocol.c sin->sin_port = htons(asoc->peer.port); htons 152 net/sctp/sm_make_chunk.c err.length = htons(len); htons 237 net/sctp/sm_make_chunk.c init.num_outbound_streams = htons(asoc->c.sinit_num_ostreams); htons 238 net/sctp/sm_make_chunk.c init.num_inbound_streams = htons(asoc->c.sinit_max_instreams); htons 336 net/sctp/sm_make_chunk.c sat.param_hdr.length = htons(SCTP_SAT_LEN(num_types)); htons 348 net/sctp/sm_make_chunk.c ext_param.param_hdr.length = htons(sizeof(ext_param) + num_ext); htons 358 net/sctp/sm_make_chunk.c aiparam.param_hdr.length = htons(sizeof(aiparam)); htons 404 net/sctp/sm_make_chunk.c initack.num_outbound_streams = htons(asoc->c.sinit_num_ostreams); htons 405 net/sctp/sm_make_chunk.c initack.num_inbound_streams = htons(asoc->c.sinit_max_instreams); htons 498 net/sctp/sm_make_chunk.c ext_param.param_hdr.length = htons(sizeof(ext_param) + num_ext); htons 507 net/sctp/sm_make_chunk.c aiparam.param_hdr.length = htons(sizeof(aiparam)); htons 734 net/sctp/sm_make_chunk.c dp.stream = htons(sinfo->sinfo_stream); htons 777 net/sctp/sm_make_chunk.c sack.num_gap_ack_blocks = htons(num_gabs); htons 778 net/sctp/sm_make_chunk.c sack.num_dup_tsns = htons(num_dup_tsns); htons 1070 net/sctp/sm_make_chunk.c chunk->chunk_hdr->length = htons(chunklen + len); htons 1094 net/sctp/sm_make_chunk.c phdr.type = htons(chunk->chunk_hdr->type); htons 1159 net/sctp/sm_make_chunk.c hbinfo.param_hdr.length = htons(sizeof(hbinfo)); htons 1299 net/sctp/sm_make_chunk.c auth_hdr.hmac_id = htons(hmac_desc->hmac_id); htons 1300 net/sctp/sm_make_chunk.c auth_hdr.shkey_id = htons(key_id); htons 1309 net/sctp/sm_make_chunk.c htons(ntohs(retval->chunk_hdr->length) + hmac_desc->hmac_len); htons 1406 net/sctp/sm_make_chunk.c chunk_hdr->length = htons(sizeof(*chunk_hdr)); htons 1501 net/sctp/sm_make_chunk.c chunk->chunk_hdr->length = htons(chunklen + padlen + len); htons 1525 net/sctp/sm_make_chunk.c htons(ntohs(chunk->chunk_hdr->length) + len); htons 1562 net/sctp/sm_make_chunk.c lchunk->subh.data_hdr->ssn = htons(ssn); htons 1647 net/sctp/sm_make_chunk.c retval->p.length = htons(*cookie_len); htons 2525 net/sctp/sm_make_chunk.c af->from_addr_param(&addr, param.addr, htons(asoc->peer.port), 0); htons 2630 net/sctp/sm_make_chunk.c htons(asoc->peer.port), 0); htons 2866 net/sctp/sm_make_chunk.c param.param_hdr.length = htons(paramlen + addr_param_len); htons 2879 net/sctp/sm_make_chunk.c param.param_hdr.length = htons(paramlen + addr_param_len); htons 2923 net/sctp/sm_make_chunk.c param.param_hdr.length = htons(len); htons 2995 net/sctp/sm_make_chunk.c ack_param.param_hdr.length = htons(sizeof(ack_param) + htons 3006 net/sctp/sm_make_chunk.c err_param.length = htons(err_param_len + asconf_param_len); htons 3048 net/sctp/sm_make_chunk.c af->from_addr_param(&addr, addr_param, htons(asoc->peer.port), 0); htons 3325 net/sctp/sm_make_chunk.c af->from_addr_param(&addr, addr_param, htons(bp->port), 0); htons 3658 net/sctp/sm_make_chunk.c outreq.param_hdr.length = htons(outlen); htons 3671 net/sctp/sm_make_chunk.c inreq.param_hdr.length = htons(inlen); htons 3704 net/sctp/sm_make_chunk.c tsnreq.param_hdr.length = htons(length); htons 3737 net/sctp/sm_make_chunk.c addstrm.param_hdr.length = htons(size); htons 3738 net/sctp/sm_make_chunk.c addstrm.number_of_streams = htons(out); htons 3747 net/sctp/sm_make_chunk.c addstrm.param_hdr.length = htons(size); htons 3748 net/sctp/sm_make_chunk.c addstrm.number_of_streams = htons(in); htons 3781 net/sctp/sm_make_chunk.c resp.param_hdr.length = htons(length); htons 3819 net/sctp/sm_make_chunk.c tsnresp.param_hdr.length = htons(length); htons 1287 net/sctp/sm_statefuns.c errhdr->length = htons(len); htons 2470 net/sctp/sm_statefuns.c bht.param_hdr.length = htons(sizeof(bht)); htons 416 net/sctp/socket.c addr->v4.sin_port = htons(snum); htons 435 net/sctp/socket.c inet_sk(sk)->inet_sport = htons(inet_sk(sk)->inet_num); htons 701 net/sctp/socket.c sa_addr->v4.sin_port != htons(bp->port)) { htons 707 net/sctp/socket.c sa_addr->v4.sin_port = htons(bp->port); htons 822 net/sctp/socket.c htons(bp->port); htons 901 net/sctp/socket.c addr->v4.sin_port = htons(sp->ep->base.bind_addr.port); htons 1233 net/sctp/socket.c inet_sk(sk)->inet_dport = htons(asoc->peer.port); htons 1727 net/sctp/socket.c daddr->v4.sin_port = htons(asoc->peer.port); htons 1738 net/sctp/socket.c daddr->v6.sin6_port = htons(asoc->peer.port); htons 6236 net/sctp/socket.c temp.v4.sin_port = htons(port); htons 8344 net/sctp/socket.c addr.v4.sin_port = htons(snum); htons 8599 net/sctp/socket.c port = htons(inet_sk(sk)->inet_num); htons 9322 net/sctp/socket.c newinet->inet_dport = htons(asoc->peer.port); htons 320 net/sctp/stream.c nstr_list[i] = htons(str_list[i]); htons 33 net/sctp/stream_interleave.c dp.stream = htons(sinfo->sinfo_stream); htons 331 net/sctp/tsnmap.c gabs[ngaps].start = htons(start); htons 332 net/sctp/tsnmap.c gabs[ngaps].end = htons(end); htons 219 net/smc/smc_cdc.h peer->wrap = htons(save->wrap); htons 231 net/smc/smc_cdc.h peer->seqno = htons(local->seqno); htons 372 net/smc/smc_clc.c dclc.hdr.length = htons(sizeof(struct smc_clc_msg_decline)); htons 426 net/smc/smc_clc.c pclc.iparea_offset = htons(0); htons 432 net/smc/smc_clc.c pclc.iparea_offset = htons(SMC_CLC_PROPOSAL_MAX_OFFSET); htons 435 net/smc/smc_clc.c pclc.hdr.length = htons(plen); htons 488 net/smc/smc_clc.c cclc.hdr.length = htons(SMCD_CLC_ACCEPT_CONFIRM_LEN); htons 502 net/smc/smc_clc.c cclc.hdr.length = htons(SMCR_CLC_ACCEPT_CONFIRM_LEN); htons 557 net/smc/smc_clc.c aclc.hdr.length = htons(SMCD_CLC_ACCEPT_CONFIRM_LEN); htons 570 net/smc/smc_clc.c aclc.hdr.length = htons(SMCR_CLC_ACCEPT_CONFIRM_LEN); htons 47 net/smc/smc_diag.c r->id.idiag_sport = htons(smc->clcsock->sk->sk_num); htons 349 net/sunrpc/addr.c ((struct sockaddr_in *)sap)->sin_port = htons(port); htons 352 net/sunrpc/addr.c ((struct sockaddr_in6 *)sap)->sin6_port = htons(port); htons 293 net/sunrpc/rpcb_clnt.c .sin_port = htons(RPCBIND_PORT), htons 384 net/sunrpc/rpcb_clnt.c ((struct sockaddr_in *)srvaddr)->sin_port = htons(RPCBIND_PORT); htons 387 net/sunrpc/rpcb_clnt.c ((struct sockaddr_in6 *)srvaddr)->sin6_port = htons(RPCBIND_PORT); htons 890 net/sunrpc/svc.c .sin_port = htons(port), htons 938 net/sunrpc/svc.c .sin6_port = htons(port), htons 191 net/sunrpc/svc_xprt.c .sin_port = htons(port), htons 197 net/sunrpc/svc_xprt.c .sin6_port = htons(port), htons 3004 net/sunrpc/xprtsock.c if (((struct sockaddr_in *)addr)->sin_port != htons(0)) htons 3010 net/sunrpc/xprtsock.c if (((struct sockaddr_in6 *)addr)->sin6_port != htons(0)) htons 3086 net/sunrpc/xprtsock.c if (((struct sockaddr_in *)addr)->sin_port != htons(0)) htons 3092 net/sunrpc/xprtsock.c if (((struct sockaddr_in6 *)addr)->sin6_port != htons(0)) htons 412 net/tipc/bearer.c b->pt.type = htons(ETH_P_TIPC); htons 463 net/tipc/bearer.c skb->protocol = htons(ETH_P_TIPC); htons 727 net/tipc/bearer.c tn->loopback_pt.type = htons(ETH_P_TIPC); htons 1363 net/tipc/link.c ga->gacks[n].ack = htons(expect - 1); htons 1364 net/tipc/link.c ga->gacks[n].gap = htons(seqno - expect); htons 1377 net/tipc/link.c ga->gacks[n].ack = htons(seqno); htons 1383 net/tipc/link.c ga->len = htons(len); htons 269 net/tipc/monitor.c cache->len = htons(dom->len); htons 270 net/tipc/monitor.c cache->gen = htons(dom->gen); htons 271 net/tipc/monitor.c cache->member_cnt = htons(member_cnt); htons 543 net/tipc/monitor.c dom->len = htons(len); htons 544 net/tipc/monitor.c dom->gen = htons(gen); htons 545 net/tipc/monitor.c dom->ack_gen = htons(state->peer_gen); htons 555 net/tipc/monitor.c dom->ack_gen = htons(state->peer_gen); htons 104 net/tipc/netlink_compat.c tlv->tlv_type = htons(type); htons 105 net/tipc/netlink_compat.c tlv->tlv_len = htons(TLV_LENGTH(len)); htons 169 net/tipc/udp_media.c if (dst->proto == htons(ETH_P_IP)) { htons 240 net/tipc/udp_media.c skb_set_inner_protocol(skb, htons(ETH_P_TIPC)); htons 338 net/tipc/udp_media.c src.proto = htons(ETH_P_IP); htons 346 net/tipc/udp_media.c src.proto = htons(ETH_P_IPV6); htons 585 net/tipc/udp_media.c addr->proto = htons(ETH_P_IP); htons 594 net/tipc/udp_media.c addr->proto = htons(ETH_P_IPV6); htons 719 net/tipc/udp_media.c if (local.proto == htons(ETH_P_IP)) { htons 743 net/tipc/udp_media.c } else if (local.proto == htons(ETH_P_IPV6)) { htons 541 net/wireless/util.c tmp.h_proto != htons(ETH_P_AARP) && htons 542 net/wireless/util.c tmp.h_proto != htons(ETH_P_IPX)) || htons 548 net/wireless/util.c tmp.h_proto = htons(skb->len - hdrlen); htons 717 net/wireless/util.c eth.h_proto = htons(ethertype); htons 764 net/wireless/util.c case htons(ETH_P_IP): htons 767 net/wireless/util.c case htons(ETH_P_IPV6): htons 770 net/wireless/util.c case htons(ETH_P_MPLS_UC): htons 771 net/wireless/util.c case htons(ETH_P_MPLS_MC): { htons 783 net/wireless/util.c case htons(ETH_P_80221): htons 2010 net/wireless/util.c msg->len = htons(6); htons 171 net/x25/x25_dev.c skb->protocol = htons(ETH_P_X25); htons 198 net/x25/x25_dev.c skb->protocol = htons(ETH_P_X25); htons 225 net/x25/x25_dev.c skb->protocol = htons(ETH_P_X25); htons 207 net/xfrm/xfrm_input.c iph->tot_len = htons(skb->len); htons 310 net/xfrm/xfrm_input.c ip6h->payload_len = htons(skb->len - size); htons 375 net/xfrm/xfrm_input.c skb->protocol = htons(ETH_P_IP); htons 378 net/xfrm/xfrm_input.c skb->protocol = htons(ETH_P_IPV6); htons 405 net/xfrm/xfrm_input.c ip_hdr(skb)->tot_len = htons(skb->len + ihl); htons 420 net/xfrm/xfrm_input.c ipv6_hdr(skb)->payload_len = htons(skb->len + ihl - htons 299 net/xfrm/xfrm_interface.c if (skb->protocol == htons(ETH_P_IPV6)) { htons 350 net/xfrm/xfrm_interface.c case htons(ETH_P_IPV6): htons 365 net/xfrm/xfrm_interface.c case htons(ETH_P_IP): htons 191 net/xfrm/xfrm_ipcomp.c ipch->cpi = htons((u16 )ntohl(x->id.spi)); htons 224 net/xfrm/xfrm_output.c 0 : (XFRM_MODE_SKB_CB(skb)->frag_off & htons(IP_DF)); htons 331 net/xfrm/xfrm_output.c skb->protocol = htons(ETH_P_IP); htons 354 net/xfrm/xfrm_output.c skb->protocol = htons(ETH_P_IPV6); htons 646 net/xfrm/xfrm_output.c if (skb->protocol == htons(ETH_P_IP)) htons 648 net/xfrm/xfrm_output.c else if (skb->protocol == htons(ETH_P_IPV6) && htons 859 net/xfrm/xfrm_state.c sel->dport_mask = htons(0xffff); htons 861 net/xfrm/xfrm_state.c sel->sport_mask = htons(0xffff); htons 878 net/xfrm/xfrm_state.c sel->dport_mask = htons(0xffff); htons 880 net/xfrm/xfrm_state.c sel->sport_mask = htons(0xffff); htons 225 samples/bpf/cookie_uid_helper_example.c si_other.sin_port = htons(PORT); htons 39 samples/bpf/parse_simple.c if (eth->h_proto != htons(ETH_P_IP)) htons 45 samples/bpf/parse_simple.c if (udp->dest == htons(DEFAULT_PKTGEN_UDP_PORT)) htons 28 samples/bpf/parse_varlen.c if (tcp->dest == htons(80) || tcp->source == htons(80)) htons 39 samples/bpf/parse_varlen.c if (udp->dest == htons(DEFAULT_PKTGEN_UDP_PORT) || htons 40 samples/bpf/parse_varlen.c udp->source == htons(DEFAULT_PKTGEN_UDP_PORT)) { htons 144 samples/bpf/parse_varlen.c if (h_proto == htons(ETH_P_IP)) htons 146 samples/bpf/parse_varlen.c else if (h_proto == htons(ETH_P_IPV6)) htons 18 samples/bpf/sock_example.h sock = socket(PF_PACKET, SOCK_RAW | SOCK_NONBLOCK | SOCK_CLOEXEC, htons(ETH_P_ALL)); htons 27 samples/bpf/sock_example.h sll.sll_protocol = htons(ETH_P_ALL); htons 50 samples/bpf/tc_l2_redirect_kern.c if (eth_proto == htons(ETH_P_IP)) htons 52 samples/bpf/tc_l2_redirect_kern.c else if (eth_proto == htons(ETH_P_IPV6)) htons 76 samples/bpf/tc_l2_redirect_kern.c if (eth->h_proto == htons(ETH_P_IP)) { htons 89 samples/bpf/tc_l2_redirect_kern.c } else if (eth->h_proto == htons(ETH_P_IPV6)) { htons 127 samples/bpf/tc_l2_redirect_kern.c if (eth->h_proto == htons(ETH_P_IP)) { htons 166 samples/bpf/tc_l2_redirect_kern.c if (eth->h_proto == htons(ETH_P_IP)) { htons 178 samples/bpf/tc_l2_redirect_kern.c } else if (eth->h_proto == htons(ETH_P_IPV6)) { htons 216 samples/bpf/tc_l2_redirect_kern.c if (eth->h_proto == htons(ETH_P_IP)) { htons 224 samples/bpf/tc_l2_redirect_kern.c } else if (eth->h_proto == htons(ETH_P_IPV6)) { htons 27 samples/bpf/tcbpf1_kern.c bpf_l3_csum_replace(skb, IP_CSUM_OFF, htons(old_tos), htons(new_tos), 2); htons 48 samples/bpf/tcbpf1_kern.c __u16 old_port = htons(load_half(skb, TCP_DPORT_OFF)); htons 56 samples/bpf/test_cgrp2_tc_kern.c if (eth->h_proto != htons(ETH_P_IPV6) || htons 51 samples/bpf/test_probe_write_user_user.c mapped_addr_in->sin_port = htons(5555); htons 60 samples/bpf/xdp1_kern.c if (h_proto == htons(ETH_P_8021Q) || h_proto == htons(ETH_P_8021AD)) { htons 69 samples/bpf/xdp1_kern.c if (h_proto == htons(ETH_P_8021Q) || h_proto == htons(ETH_P_8021AD)) { htons 79 samples/bpf/xdp1_kern.c if (h_proto == htons(ETH_P_IP)) htons 81 samples/bpf/xdp1_kern.c else if (h_proto == htons(ETH_P_IPV6)) htons 76 samples/bpf/xdp2_kern.c if (h_proto == htons(ETH_P_8021Q) || h_proto == htons(ETH_P_8021AD)) { htons 85 samples/bpf/xdp2_kern.c if (h_proto == htons(ETH_P_8021Q) || h_proto == htons(ETH_P_8021AD)) { htons 95 samples/bpf/xdp2_kern.c if (h_proto == htons(ETH_P_IP)) htons 97 samples/bpf/xdp2_kern.c else if (h_proto == htons(ETH_P_IPV6)) htons 95 samples/bpf/xdp_adjust_tail_kern.c icmp_hdr->un.frag.mtu = htons(MAX_PCKT_SIZE-sizeof(struct ethhdr)); htons 106 samples/bpf/xdp_adjust_tail_kern.c iph->tot_len = htons( htons 146 samples/bpf/xdp_adjust_tail_kern.c if (h_proto == htons(ETH_P_IP)) htons 38 samples/bpf/xdp_fwd_kern.c check += (__force u32)htons(0x0100); htons 62 samples/bpf/xdp_fwd_kern.c if (h_proto == htons(ETH_P_IP)) { htons 79 samples/bpf/xdp_fwd_kern.c } else if (h_proto == htons(ETH_P_IPV6)) { htons 133 samples/bpf/xdp_fwd_kern.c if (h_proto == htons(ETH_P_IP)) htons 135 samples/bpf/xdp_fwd_kern.c else if (h_proto == htons(ETH_P_IPV6)) htons 129 samples/bpf/xdp_redirect_cpu_kern.c if (eth_type == htons(ETH_P_8021Q) || eth_type == htons(ETH_P_8021AD)) { htons 139 samples/bpf/xdp_redirect_cpu_kern.c if (eth_type == htons(ETH_P_8021Q) || eth_type == htons(ETH_P_8021AD)) { htons 129 samples/bpf/xdp_router_ipv4_kern.c if (h_proto == htons(ETH_P_8021Q) || h_proto == htons(ETH_P_8021AD)) { htons 138 samples/bpf/xdp_router_ipv4_kern.c if (h_proto == htons(ETH_P_ARP)) { htons 140 samples/bpf/xdp_router_ipv4_kern.c } else if (h_proto == htons(ETH_P_IP)) { htons 127 samples/bpf/xdp_tx_iptunnel_kern.c set_ethhdr(new_eth, old_eth, tnl, htons(ETH_P_IP)); htons 135 samples/bpf/xdp_tx_iptunnel_kern.c iph->tot_len = htons(payload_len + sizeof(*iph)); htons 199 samples/bpf/xdp_tx_iptunnel_kern.c set_ethhdr(new_eth, old_eth, tnl, htons(ETH_P_IPV6)); htons 204 samples/bpf/xdp_tx_iptunnel_kern.c ip6h->payload_len = htons(ntohs(payload_len) + sizeof(*ip6h)); htons 228 samples/bpf/xdp_tx_iptunnel_kern.c if (h_proto == htons(ETH_P_IP)) htons 230 samples/bpf/xdp_tx_iptunnel_kern.c else if (h_proto == htons(ETH_P_IPV6)) htons 286 samples/bpf/xdp_tx_iptunnel_user.c vip.dport = htons(min_port++); htons 4630 security/selinux/hooks.c ad.u.net->sport = htons(snum); htons 4781 security/selinux/hooks.c ad.u.net->dport = htons(snum); htons 5008 security/selinux/hooks.c if (family == PF_INET6 && skb->protocol == htons(ETH_P_IP)) htons 5105 security/selinux/hooks.c if (skb && skb->protocol == htons(ETH_P_IP)) htons 5107 security/selinux/hooks.c else if (skb && skb->protocol == htons(ETH_P_IPV6)) htons 5405 security/selinux/hooks.c if (family == PF_INET6 && skb->protocol == htons(ETH_P_IP)) htons 3848 security/smack/smack_lsm.c if (family == PF_INET6 && skb->protocol == htons(ETH_P_IP)) htons 3995 security/smack/smack_lsm.c if (skb->protocol == htons(ETH_P_IP)) htons 3998 security/smack/smack_lsm.c else if (skb->protocol == htons(ETH_P_IPV6)) htons 4096 security/smack/smack_lsm.c if (skb->protocol == htons(ETH_P_IP)) htons 1458 security/smack/smackfs.c newname.s6_addr16[i] = htons(scanned[i]); htons 531 security/tomoyo/network.c i->port = htons(port); htons 279 tools/firmware/ihex2fw.c p->len = htons(p->len); htons 15 tools/testing/selftests/bpf/prog_tests/sockmap_basic.c .sin_port = htons(80), htons 175 tools/testing/selftests/bpf/test_flow_dissector.c iph->tot_len = htons(sizeof(*iph) + payload_len); htons 176 tools/testing/selftests/bpf/test_flow_dissector.c iph->id = htons(1337); htons 190 tools/testing/selftests/bpf/test_flow_dissector.c *ptr = htons(val); htons 201 tools/testing/selftests/bpf/test_flow_dissector.c ip6h->payload_len = htons(payload_len); htons 218 tools/testing/selftests/bpf/test_flow_dissector.c pseudo_sum += htons(IPPROTO_UDP); htons 231 tools/testing/selftests/bpf/test_flow_dissector.c pseudo_sum += htons(ip6h->nexthdr); htons 242 tools/testing/selftests/bpf/test_flow_dissector.c udph->source = htons(cfg_src_port); htons 243 tools/testing/selftests/bpf/test_flow_dissector.c udph->dest = htons(dport); htons 244 tools/testing/selftests/bpf/test_flow_dissector.c udph->len = htons(len); htons 265 tools/testing/selftests/bpf/test_flow_dissector.c greh->protocol = htons(proto); htons 684 tools/testing/selftests/bpf/test_maps.c addr.sin_port = htons(ports[i]); htons 711 tools/testing/selftests/bpf/test_maps.c addr.sin_port = htons(ports[i - 2]); htons 256 tools/testing/selftests/bpf/test_select_reuseport.c expected.eth_protocol = htons(ETH_P_IPV6); htons 269 tools/testing/selftests/bpf/test_select_reuseport.c expected.eth_protocol = htons(ETH_P_IP); htons 33 tools/testing/selftests/bpf/test_skb_cgroup_id_user.c dst->sin6_port = htons(1025); htons 374 tools/testing/selftests/bpf/test_sock.c addr4->sin_port = htons(port); htons 381 tools/testing/selftests/bpf/test_sock.c addr6->sin6_port = htons(port); htons 621 tools/testing/selftests/bpf/test_sock_addr.c addr4->sin_port = htons(port); htons 631 tools/testing/selftests/bpf/test_sock_addr.c addr6->sin6_port = htons(port); htons 240 tools/testing/selftests/bpf/test_sockmap.c addr.sin_port = htons(S1_PORT); htons 247 tools/testing/selftests/bpf/test_sockmap.c addr.sin_port = htons(S2_PORT); htons 255 tools/testing/selftests/bpf/test_sockmap.c addr.sin_port = htons(S1_PORT); htons 262 tools/testing/selftests/bpf/test_sockmap.c addr.sin_port = htons(S2_PORT); htons 270 tools/testing/selftests/bpf/test_sockmap.c addr.sin_port = htons(S1_PORT); htons 277 tools/testing/selftests/bpf/test_sockmap.c addr.sin_port = htons(S2_PORT); htons 225 tools/testing/selftests/bpf/xdping.c pinginfo.seq = htons(count); htons 833 tools/testing/selftests/cgroup/test_memcontrol.c saddr.sin6_port = htons(srv_args->port); htons 112 tools/testing/selftests/net/ip_defrag.c return htons(res); htons 129 tools/testing/selftests/net/ip_defrag.c return htons(res); htons 145 tools/testing/selftests/net/ip_defrag.c udphdr.source = htons(cfg_port + 1); htons 146 tools/testing/selftests/net/ip_defrag.c udphdr.dest = htons(cfg_port); htons 147 tools/testing/selftests/net/ip_defrag.c udphdr.len = htons(UDP_HLEN + payload_len); htons 162 tools/testing/selftests/net/ip_defrag.c fraghdr->ip6f_offlg = htons(offset); htons 165 tools/testing/selftests/net/ip_defrag.c fraghdr->ip6f_offlg = htons(offset | IP6_MF); htons 167 tools/testing/selftests/net/ip_defrag.c ip6hdr->ip6_plen = htons(frag_len); htons 180 tools/testing/selftests/net/ip_defrag.c iphdr->ip_off = htons(offset / 8); htons 183 tools/testing/selftests/net/ip_defrag.c iphdr->ip_off = htons(offset / 8 | IP4_MF); htons 185 tools/testing/selftests/net/ip_defrag.c iphdr->ip_len = htons(frag_len); htons 236 tools/testing/selftests/net/ip_defrag.c iphdr->ip_id = htons(ip_id++); htons 307 tools/testing/selftests/net/ip_defrag.c fraghdr->ip6f_offlg = htons(offset / 8 | IP6_MF); htons 308 tools/testing/selftests/net/ip_defrag.c ip6hdr->ip6_plen = htons(frag_len); htons 312 tools/testing/selftests/net/ip_defrag.c iphdr->ip_off = htons(offset / 8 | IP4_MF); htons 313 tools/testing/selftests/net/ip_defrag.c iphdr->ip_len = htons(frag_len); htons 414 tools/testing/selftests/net/ip_defrag.c addr.sin_port = htons(cfg_port); htons 425 tools/testing/selftests/net/ip_defrag.c addr.sin6_port = htons(cfg_port); htons 183 tools/testing/selftests/net/ipv6_flowlabel.c .sin6_port = htons(8000), htons 271 tools/testing/selftests/net/msg_zerocopy.c iph->tot_len = htons(sizeof(*iph) + payload_len); htons 285 tools/testing/selftests/net/msg_zerocopy.c ip6h->payload_len = htons(payload_len); htons 305 tools/testing/selftests/net/msg_zerocopy.c addr4->sin_port = htons(cfg_port); htons 313 tools/testing/selftests/net/msg_zerocopy.c addr6->sin6_port = htons(cfg_port); htons 504 tools/testing/selftests/net/msg_zerocopy.c eth.h_proto = htons(proto); htons 514 tools/testing/selftests/net/msg_zerocopy.c laddr.sll_protocol = htons(proto); htons 241 tools/testing/selftests/net/nettest.c sin.sin_port = htons(args->port); htons 247 tools/testing/selftests/net/nettest.c sin6.sin6_port = htons(args->port); htons 1012 tools/testing/selftests/net/nettest.c .sin_port = htons(args->port), htons 1086 tools/testing/selftests/net/nettest.c serv_addr.sin_port = htons(args->port); htons 1093 tools/testing/selftests/net/nettest.c serv6_addr.sin6_port = htons(args->port); htons 1360 tools/testing/selftests/net/nettest.c sin.sin_port = htons(args->port); htons 1369 tools/testing/selftests/net/nettest.c sin6.sin6_port = htons(args->port); htons 75 tools/testing/selftests/net/psock_fanout.c addr.sll_protocol = htons(ETH_P_IP); htons 88 tools/testing/selftests/net/psock_lib.h saddr.sin_port = htons(port); htons 93 tools/testing/selftests/net/psock_lib.h daddr.sin_port = htons(port + 1); htons 108 tools/testing/selftests/net/psock_snd.c eth->h_proto = htons(ETH_P_8021Q); htons 109 tools/testing/selftests/net/psock_snd.c tag[1] = htons(ETH_P_IP); htons 113 tools/testing/selftests/net/psock_snd.c eth->h_proto = htons(ETH_P_IP); htons 124 tools/testing/selftests/net/psock_snd.c iph->tot_len = htons(sizeof(*iph) + sizeof(struct udphdr) + payload_len); htons 125 tools/testing/selftests/net/psock_snd.c iph->id = htons(1337); htons 140 tools/testing/selftests/net/psock_snd.c udph->source = htons(9); htons 141 tools/testing/selftests/net/psock_snd.c udph->dest = htons(cfg_port); htons 142 tools/testing/selftests/net/psock_snd.c udph->len = htons(len); htons 146 tools/testing/selftests/net/psock_snd.c htons(IPPROTO_UDP) + udph->len); htons 175 tools/testing/selftests/net/psock_snd.c laddr.sll_protocol = htons(ETH_P_IP); htons 202 tools/testing/selftests/net/psock_snd.c laddr.sll_protocol = htons(ETH_P_IP); htons 265 tools/testing/selftests/net/psock_snd.c raddr.sin_port = htons(cfg_port); htons 134 tools/testing/selftests/net/psock_tpacket.c if (eth->h_proto != htons(ETH_P_IP)) { htons 154 tools/testing/selftests/net/psock_tpacket.c eth->h_proto = htons(ETH_P_IP); htons 164 tools/testing/selftests/net/psock_tpacket.c ip->tot_len = htons((uint16_t) *len - sizeof(*eth)); htons 395 tools/testing/selftests/net/psock_tpacket.c rcv_sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); htons 733 tools/testing/selftests/net/psock_tpacket.c ring->ll.sll_protocol = htons(ETH_P_ALL); htons 33 tools/testing/selftests/net/reuseaddr_conflict.c .sin6_port = htons(PORT), htons 38 tools/testing/selftests/net/reuseaddr_conflict.c .sin_port = htons(PORT), htons 51 tools/testing/selftests/net/reuseport_addr_any.c addr4.sin_port = htons(PORT); htons 61 tools/testing/selftests/net/reuseport_addr_any.c addr6.sin6_port = htons(PORT); htons 119 tools/testing/selftests/net/reuseport_addr_any.c daddr4.sin_port = htons(PORT); htons 132 tools/testing/selftests/net/reuseport_addr_any.c daddr6.sin6_port = htons(PORT); htons 59 tools/testing/selftests/net/reuseport_bpf.c addr4->sin_port = htons(port); htons 65 tools/testing/selftests/net/reuseport_bpf.c addr6->sin6_port = htons(port); htons 47 tools/testing/selftests/net/reuseport_bpf_cpu.c addr4->sin_port = htons(PORT); htons 53 tools/testing/selftests/net/reuseport_bpf_cpu.c addr6->sin6_port = htons(PORT); htons 112 tools/testing/selftests/net/reuseport_bpf_cpu.c daddr4->sin_port = htons(PORT); htons 123 tools/testing/selftests/net/reuseport_bpf_cpu.c daddr6->sin6_port = htons(PORT); htons 43 tools/testing/selftests/net/reuseport_bpf_numa.c addr4->sin_port = htons(PORT); htons 49 tools/testing/selftests/net/reuseport_bpf_numa.c addr6->sin6_port = htons(PORT); htons 124 tools/testing/selftests/net/reuseport_bpf_numa.c daddr4->sin_port = htons(PORT); htons 135 tools/testing/selftests/net/reuseport_bpf_numa.c daddr6->sin6_port = htons(PORT); htons 43 tools/testing/selftests/net/reuseport_dualstack.c addr4->sin_port = htons(PORT); htons 49 tools/testing/selftests/net/reuseport_dualstack.c addr6->sin6_port = htons(PORT); htons 84 tools/testing/selftests/net/reuseport_dualstack.c daddr.sin_port = htons(PORT); htons 351 tools/testing/selftests/net/so_txtime.c addr6.sin6_port = htons(cfg_port); htons 364 tools/testing/selftests/net/so_txtime.c addr4.sin_port = htons(cfg_port); htons 104 tools/testing/selftests/net/tcp_fastopen_backup_key.c addr4.sin_port = htons(PORT); htons 111 tools/testing/selftests/net/tcp_fastopen_backup_key.c addr6.sin6_port = htons(PORT); htons 162 tools/testing/selftests/net/tcp_fastopen_backup_key.c daddr4.sin_port = htons(PORT); htons 175 tools/testing/selftests/net/tcp_fastopen_backup_key.c daddr6.sin6_port = htons(PORT); htons 46 tools/testing/selftests/net/tcp_inq.c addr4->sin_port = htons(port); htons 52 tools/testing/selftests/net/tcp_inq.c addr6->sin6_port = htons(port); htons 253 tools/testing/selftests/net/tcp_mmap.c addr4->sin_port = htons(cfg_port); htons 261 tools/testing/selftests/net/tcp_mmap.c addr6->sin6_port = htons(cfg_port); htons 51 tools/testing/selftests/net/txring_overwrite.c eth->h_proto = htons(ETH_P_IP); htons 61 tools/testing/selftests/net/txring_overwrite.c iph->tot_len = htons(blen - off); htons 66 tools/testing/selftests/net/txring_overwrite.c udph->dest = htons(8000); htons 67 tools/testing/selftests/net/txring_overwrite.c udph->source = htons(8001); htons 68 tools/testing/selftests/net/txring_overwrite.c udph->len = htons(blen - off); htons 79 tools/testing/selftests/net/txring_overwrite.c fdr = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_IP)); htons 97 tools/testing/selftests/net/txring_overwrite.c laddr.sll_protocol = htons(0); htons 624 tools/testing/selftests/net/udpgso.c addr.sin_port = htons(cfg_port); htons 635 tools/testing/selftests/net/udpgso.c addr.sin6_port = htons(cfg_port); htons 69 tools/testing/selftests/net/udpgso_bench_rx.c addr4->sin_port = htons(cfg_port); htons 75 tools/testing/selftests/net/udpgso_bench_rx.c addr6->sin6_port = htons(cfg_port); htons 123 tools/testing/selftests/net/udpgso_bench_tx.c addr4->sin_port = htons(cfg_port); htons 129 tools/testing/selftests/net/udpgso_bench_tx.c addr6->sin6_port = htons(cfg_port); htons 292 tools/testing/selftests/networking/timestamping/rxtimestamp.c addr.sin_port = htons(port); htons 383 tools/testing/selftests/networking/timestamping/timestamping.c addr.sin_port = htons(319 /* PTP event port */); htons 325 tools/testing/selftests/networking/timestamping/txtimestamp.c pseudo_sum = htons(IPPROTO_UDP); htons 360 tools/testing/selftests/networking/timestamping/txtimestamp.c ip6h->payload_len = htons(sizeof(struct udphdr) + cfg_payload_len); htons 409 tools/testing/selftests/networking/timestamping/txtimestamp.c daddr6.sin6_port = htons(cfg_ipproto); htons 492 tools/testing/selftests/networking/timestamping/txtimestamp.c laddr.sll_protocol = htons(family == AF_INET ? ETH_P_IP : ETH_P_IPV6); htons 675 tools/testing/selftests/networking/timestamping/txtimestamp.c daddr.sin_port = htons(dest_port); htons 680 tools/testing/selftests/networking/timestamping/txtimestamp.c daddr6.sin6_port = htons(dest_port); htons 70 tools/usb/usbip/src/usbip_network.c i = htons(num);