htons 135 arch/x86/lib/csum-wrappers_64.c rest = (__force __u64)htonl(len) + (__force __u64)htons(proto) + htons 260 firmware/ihex2fw.c p->len = htons(p->len); htons 93 fs/afs/dir.c #define AFS_DIR_MAGIC htons(1234) htons 289 fs/afs/fsclient.c call->port = htons(AFS_FS_PORT); htons 464 fs/afs/fsclient.c call->port = htons(AFS_FS_PORT); htons 509 fs/afs/fsclient.c call->port = htons(AFS_FS_PORT); htons 577 fs/afs/fsclient.c call->port = htons(AFS_FS_PORT); htons 683 fs/afs/fsclient.c call->port = htons(AFS_FS_PORT); htons 772 fs/afs/fsclient.c call->port = htons(AFS_FS_PORT); htons 857 fs/afs/fsclient.c call->port = htons(AFS_FS_PORT); htons 954 fs/afs/fsclient.c call->port = htons(AFS_FS_PORT); htons 1062 fs/afs/fsclient.c call->port = htons(AFS_FS_PORT); htons 1171 fs/afs/fsclient.c call->port = htons(AFS_FS_PORT); htons 1248 fs/afs/fsclient.c call->port = htons(AFS_FS_PORT); htons 1364 fs/afs/fsclient.c call->port = htons(AFS_FS_PORT); htons 1415 fs/afs/fsclient.c call->port = htons(AFS_FS_PORT); htons 1462 fs/afs/fsclient.c call->port = htons(AFS_FS_PORT); htons 1742 fs/afs/fsclient.c call->port = htons(AFS_FS_PORT); htons 1828 fs/afs/fsclient.c call->port = htons(AFS_FS_PORT); htons 1861 fs/afs/fsclient.c call->port = htons(AFS_FS_PORT); htons 1893 fs/afs/fsclient.c call->port = htons(AFS_FS_PORT); htons 95 fs/afs/rxrpc.c srx.transport.sin.sin_port = htons(AFS_CM_PORT); htons 172 fs/afs/vlclient.c call->port = htons(AFS_VL_PORT); htons 208 fs/afs/vlclient.c call->port = htons(AFS_VL_PORT); htons 484 fs/cifs/connect.c htons(CIFS_PORT); htons 1545 fs/cifs/connect.c if (psin_server->sin_port != htons(CIFS_PORT)) { htons 1546 fs/cifs/connect.c psin_server->sin_port = htons(CIFS_PORT); htons 1556 fs/cifs/connect.c psin_server->sin_port = htons(RFC1001_PORT); htons 1588 fs/cifs/connect.c if (psin_server->sin_port == htons(RFC1001_PORT)) { htons 1679 fs/cifs/connect.c if (psin_server->sin6_port != htons(CIFS_PORT)) { htons 1680 fs/cifs/connect.c psin_server->sin6_port = htons(CIFS_PORT); htons 1690 fs/cifs/connect.c psin_server->sin6_port = htons(RFC1001_PORT); htons 1957 fs/cifs/connect.c sin_server.sin_port = htons(volume_info.port); htons 598 fs/ncpfs/sock.c *(__u16*)(server->unexpected_packet.data) = htons(type); htons 802 fs/ncpfs/sock.c *(__u16 *) & (h->data[0]) = htons(server->current_size - sizeof(*h) - 2); htons 177 fs/nfs/nfs4namespace.c .sin_port = htons(NFS_PORT), htons 494 fs/nfs/nfsroot.c set_sockaddr(&sin, servaddr, htons(mount_port)); htons 518 fs/nfs/nfsroot.c set_sockaddr((struct sockaddr_in *) &nfs_data.addr, servaddr, htons(nfs_port)); htons 674 fs/nfs/super.c ap->sin_port = htons(port); htons 679 fs/nfs/super.c ap->sin6_port = htons(port); htons 398 fs/nfsd/nfs4callback.c addr.sin_port = htons(cb->cb_port); htons 246 fs/ocfs2/cluster/nodemanager.c node->nd_ipv4_port = htons(tmp); htons 1595 fs/ocfs2/cluster/tcp.c myaddr.sin_port = htons(0); /* any port */ htons 92 include/asm-m32r/flat.h return htons(*(unsigned short *)rp) & 0xFFFF; htons 122 include/linux/hdlc.h return htons(ETH_P_HDLC); htons 189 include/linux/if_vlan.h veth->h_vlan_proto = htons(ETH_P_8021Q); htons 192 include/linux/if_vlan.h veth->h_vlan_TCI = htons(vlan_tci); htons 194 include/linux/if_vlan.h skb->protocol = htons(ETH_P_8021Q); htons 243 include/linux/if_vlan.h if (veth->h_vlan_proto != htons(ETH_P_8021Q)) { htons 312 include/linux/tipc_config.h tlv_ptr->tlv_type = htons(type); htons 313 include/linux/tipc_config.h tlv_ptr->tlv_len = htons(tlv_len); htons 411 include/linux/tipc_config.h tcm_hdr->tcm_type = htons(cmd); htons 412 include/linux/tipc_config.h tcm_hdr->tcm_flags = htons(flags); htons 268 include/net/ax25.h return htons(ETH_P_AX25); htons 38 include/net/dsfield.h iph->check = (__force __sum16)htons(check); htons 50 include/net/dsfield.h *(__be16 *) ipv6h = htons(tmp); htons 74 include/net/inet_ecn.h check += (__force u16)htons(0xFFFB) + (__force u16)htons(ecn); htons 215 include/net/ip.h check += (__force u32)htons(0x0100); htons 232 include/net/ip.h if (iph->frag_off & htons(IP_DF)) { htons 239 include/net/ip.h htons(inet_sk(sk)->id++) : 0; htons 246 include/net/ip.h if (iph->frag_off & htons(IP_DF)) { htons 248 include/net/ip.h iph->id = htons(inet_sk(sk)->id); htons 254 include/net/llc_pdu.h if (skb->protocol == htons(ETH_P_802_2)) htons 256 include/net/llc_pdu.h else if (skb->protocol == htons(ETH_P_TR_802_2)) { htons 271 include/net/llc_pdu.h if (skb->protocol == htons(ETH_P_802_2)) htons 273 include/net/llc_pdu.h else if (skb->protocol == htons(ETH_P_TR_802_2)) htons 347 include/net/llc_pdu.h if (ev_skb->protocol == htons(ETH_P_802_2)) { htons 83 include/net/udplite.h uh->len = htons(up->pcslen); htons 14 include/net/x25device.h return htons(ETH_P_X25); htons 801 include/net/xfrm.h port = htons(fl->fl_icmp_type); htons 804 include/net/xfrm.h port = htons(fl->fl_mh_type); htons 825 include/net/xfrm.h port = htons(fl->fl_icmp_code); htons 57 net/802/fc.c fcllc->ethertype = htons(type); htons 87 net/802/fc.c if(fcllc->ethertype != htons(ETH_P_IP)) { htons 72 net/802/fddi.c fddi->hdr.llc_snap.ethertype = htons(type); htons 103 net/802/fddi.c if (fddi->hdr.llc_snap.ethertype == htons(ETH_P_IP)) htons 139 net/802/fddi.c type = htons(ETH_P_802_2); htons 221 net/802/garp.c skb->protocol = htons(ETH_P_802_2); htons 225 net/802/garp.c put_unaligned(htons(GARP_PROTOCOL_ID), &gp->protocol); htons 519 net/802/garp.c if (get_unaligned(&gp->protocol) != htons(GARP_PROTOCOL_ID)) htons 81 net/802/hippi.c hip->snap.ethertype = htons(type); htons 107 net/802/hippi.c if(hip->snap.ethertype != htons(ETH_P_IP)) htons 123 net/802/tr.c trllc->ethertype = htons(type); htons 168 net/802/tr.c if(trllc->ethertype != htons(ETH_P_IP)) { htons 236 net/802/tr.c (trllc->ethertype == htons(ETH_P_IP) || htons 237 net/802/tr.c trllc->ethertype == htons(ETH_P_IPV6) || htons 238 net/802/tr.c trllc->ethertype == htons(ETH_P_ARP))) htons 244 net/802/tr.c return htons(ETH_P_TR_802_2); htons 270 net/802/tr.c trh->rcf=htons((((sizeof(trh->rcf)) << 8) & TR_RCF_LEN_MASK) htons 297 net/802/tr.c trh->rcf^=htons(TR_RCF_DIR_BIT); htons 298 net/802/tr.c trh->rcf&=htons(0x1fff); /* Issam Chehab <ichehab@madge1.demon.co.uk> */ htons 318 net/802/tr.c trh->rcf=htons((((sizeof(trh->rcf)) << 8) & TR_RCF_LEN_MASK) htons 401 net/802/tr.c entry->rcf = trh->rcf & htons((unsigned short)~TR_RCF_BROADCAST_MASK); htons 416 net/802/tr.c if (entry->rcf != (trh->rcf & htons((unsigned short)~TR_RCF_BROADCAST_MASK)) && htons 417 net/802/tr.c !(trh->rcf & htons(TR_RCF_BROADCAST_MASK))) htons 426 net/802/tr.c entry->rcf = trh->rcf & htons((unsigned short)~TR_RCF_BROADCAST_MASK); htons 51 net/8021q/vlan_dev.c case htons(ETH_P_IP): htons 109 net/8021q/vlan_dev.c skb->protocol = htons(ETH_P_802_3); htons 114 net/8021q/vlan_dev.c skb->protocol = htons(ETH_P_802_2); htons 264 net/8021q/vlan_dev.c vhdr->h_vlan_TCI = htons(vlan_tci); htons 272 net/8021q/vlan_dev.c vhdr->h_vlan_encapsulated_proto = htons(type); htons 274 net/8021q/vlan_dev.c vhdr->h_vlan_encapsulated_proto = htons(len); htons 276 net/8021q/vlan_dev.c skb->protocol = htons(ETH_P_8021Q); htons 303 net/8021q/vlan_dev.c if (veth->h_vlan_proto != htons(ETH_P_8021Q) || htons 33 net/8021q/vlan_gvrp.c __be16 vlan_id = htons(vlan->vlan_id); htons 42 net/8021q/vlan_gvrp.c __be16 vlan_id = htons(vlan->vlan_id); htons 1433 net/9p/trans_fd.c sin_server.sin_port = htons(opts.port); htons 124 net/appletalk/aarp.c skb->protocol = htons(ETH_P_ATALK); htons 129 net/appletalk/aarp.c eah->hw_type = htons(AARP_HW_TYPE_ETHERNET); htons 130 net/appletalk/aarp.c eah->pa_type = htons(ETH_P_ATALK); htons 133 net/appletalk/aarp.c eah->function = htons(AARP_REQUEST); htons 171 net/appletalk/aarp.c skb->protocol = htons(ETH_P_ATALK); htons 176 net/appletalk/aarp.c eah->hw_type = htons(AARP_HW_TYPE_ETHERNET); htons 177 net/appletalk/aarp.c eah->pa_type = htons(ETH_P_ATALK); htons 180 net/appletalk/aarp.c eah->function = htons(AARP_REPLY); htons 222 net/appletalk/aarp.c skb->protocol = htons(ETH_P_ATALK); htons 227 net/appletalk/aarp.c eah->hw_type = htons(AARP_HW_TYPE_ETHERNET); htons 228 net/appletalk/aarp.c eah->pa_type = htons(ETH_P_ATALK); htons 231 net/appletalk/aarp.c eah->function = htons(AARP_PROBE); htons 453 net/appletalk/aarp.c if (iface->address.s_net != htons(sa->sat_addr.s_net) || htons 457 net/appletalk/aarp.c iface->address.s_net = htons(sa->sat_addr.s_net); htons 576 net/appletalk/aarp.c *((__be16 *)skb->data) = htons(skb->len); htons 594 net/appletalk/aarp.c skb->protocol = htons(ETH_P_PPPTALK); htons 604 net/appletalk/aarp.c skb->protocol = htons(ETH_P_ATALK); htons 271 net/appletalk/ddp.c atif->address.s_net = htons(probe_net); htons 320 net/appletalk/ddp.c proxy_addr->s_net = htons(probe_net); htons 494 net/appletalk/ddp.c atrtr_default.gateway.s_net = htons(0); htons 765 net/appletalk/ddp.c if (nr->nr_firstnet == htons(0) && htons 766 net/appletalk/ddp.c nr->nr_lastnet == htons(0xFFFE)) { htons 780 net/appletalk/ddp.c sa->sat_addr.s_net = htons(ct); htons 1018 net/appletalk/ddp.c return sum ? htons((unsigned short)sum) : htons(0xFFFF); htons 1125 net/appletalk/ddp.c if (!ap || ap->s_net == htons(ATADDR_ANYNET)) htons 1152 net/appletalk/ddp.c if (addr->sat_addr.s_net == htons(ATADDR_ANYNET)) { htons 1282 net/appletalk/ddp.c skb->protocol = htons(ETH_P_IP); htons 1351 net/appletalk/ddp.c ddp->deh_len_hops = htons(len_hops); htons 1536 net/appletalk/ddp.c ddp->deh_len_hops = htons(skb->len + (DDP_MAXHOPS << 10)); htons 1633 net/appletalk/ddp.c ddp->deh_len_hops = htons(len + sizeof(*ddp)); htons 313 net/atm/br2684.c if (type == htons(ETH_P_IP) && htons 317 net/atm/br2684.c if (type == htons(ETH_P_ARP)) htons 378 net/atm/br2684.c skb->protocol = htons(ETH_P_IPV6); htons 382 net/atm/br2684.c skb->protocol = htons(ETH_P_IP); htons 407 net/atm/br2684.c skb->protocol = htons(ETH_P_IP); htons 409 net/atm/br2684.c skb->protocol = htons(ETH_P_IPV6); htons 212 net/atm/clip.c skb->protocol = htons(ETH_P_IP); htons 216 net/atm/clip.c if (skb->protocol == htons(ETH_P_ARP)) { htons 199 net/atm/lec.c if (trh->rcf & htons((uint16_t) TR_RCF_DIR_BIT)) htons 300 net/atm/lec.c lec_h->le_header = htons(priv->lecid); htons 772 net/atm/lec.c if (*(__be16 *) skb->data == htons(priv->lecid) || htons 546 net/atm/mpc.c if (eth->h_proto != htons(ETH_P_IP)) htons 131 net/ax25/ax25_in.c skb->protocol = htons(ETH_P_IP); htons 255 net/ax25/ax25_in.c skb->protocol = htons(ETH_P_IP); htons 265 net/ax25/ax25_in.c skb->protocol = htons(ETH_P_ARP); htons 111 net/bluetooth/bnep/core.c rsp.resp = htons(resp); htons 99 net/bluetooth/bnep/netdev.c r->len = htons(ETH_ALEN * 2); htons 116 net/bluetooth/bnep/netdev.c r->len = htons(skb->len - len); htons 162 net/bluetooth/bnep/netdev.c if (get_unaligned((__be16 *) skb->data) == htons(0xFFFF)) htons 30 net/bridge/br_forward.c return skb->len - (skb->protocol == htons(ETH_P_8021Q) ? VLAN_HLEN : 0); htons 134 net/bridge/br_input.c if (skb->protocol == htons(ETH_P_PAUSE)) htons 74 net/bridge/br_netfilter.c (skb->protocol == htons(ETH_P_8021Q) && \ htons 75 net/bridge/br_netfilter.c vlan_proto(skb) == htons(ETH_P_IP) && \ htons 79 net/bridge/br_netfilter.c (skb->protocol == htons(ETH_P_8021Q) && \ htons 80 net/bridge/br_netfilter.c vlan_proto(skb) == htons(ETH_P_IPV6) &&\ htons 84 net/bridge/br_netfilter.c (skb->protocol == htons(ETH_P_8021Q) && \ htons 85 net/bridge/br_netfilter.c vlan_proto(skb) == htons(ETH_P_ARP) && \ htons 95 net/bridge/br_netfilter.c (skb->protocol == htons(ETH_P_PPP_SES) && \ htons 96 net/bridge/br_netfilter.c pppoe_proto(skb) == htons(PPP_IP) && \ htons 100 net/bridge/br_netfilter.c (skb->protocol == htons(ETH_P_PPP_SES) && \ htons 101 net/bridge/br_netfilter.c pppoe_proto(skb) == htons(PPP_IPV6) && \ htons 548 net/bridge/br_netfilter.c if (skb->protocol == htons(ETH_P_IPV6) || IS_VLAN_IPV6(skb) || htons 562 net/bridge/br_netfilter.c if (skb->protocol != htons(ETH_P_IP) && !IS_VLAN_IP(skb) && htons 633 net/bridge/br_netfilter.c if (skb->protocol != htons(ETH_P_ARP) && !IS_VLAN_ARP(skb)) { htons 674 net/bridge/br_netfilter.c if (skb->protocol == htons(ETH_P_IP) || IS_VLAN_IP(skb) || htons 710 net/bridge/br_netfilter.c if (skb->protocol != htons(ETH_P_ARP)) { htons 778 net/bridge/br_netfilter.c if (skb->protocol == htons(ETH_P_IP) && htons 816 net/bridge/br_netfilter.c if (skb->protocol == htons(ETH_P_IP) || IS_VLAN_IP(skb) || htons 41 net/bridge/br_stp_bpdu.c skb->protocol = htons(ETH_P_802_2); htons 71 net/bridge/netfilter/ebt_among.c if (eth_hdr(skb)->h_proto == htons(ETH_P_IP)) { htons 79 net/bridge/netfilter/ebt_among.c } else if (eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) { htons 102 net/bridge/netfilter/ebt_among.c if (eth_hdr(skb)->h_proto == htons(ETH_P_IP)) { htons 110 net/bridge/netfilter/ebt_among.c } else if (eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) { htons 42 net/bridge/netfilter/ebt_arp.c if (ah->ar_pln != sizeof(__be32) || ah->ar_pro != htons(ETH_P_IP)) htons 70 net/bridge/netfilter/ebt_arp.c if (ah->ar_hln != ETH_ALEN || ah->ar_hrd != htons(ARPHRD_ETHER)) htons 108 net/bridge/netfilter/ebt_arp.c if ((e->ethproto != htons(ETH_P_ARP) && htons 109 net/bridge/netfilter/ebt_arp.c e->ethproto != htons(ETH_P_RARP)) || htons 33 net/bridge/netfilter/ebt_arpreply.c if (ap->ar_op != htons(ARPOP_REQUEST) || htons 35 net/bridge/netfilter/ebt_arpreply.c ap->ar_pro != htons(ETH_P_IP) || htons 67 net/bridge/netfilter/ebt_arpreply.c if (e->ethproto != htons(ETH_P_ARP) || htons 85 net/bridge/netfilter/ebt_ip.c if (e->ethproto != htons(ETH_P_IP) || htons 98 net/bridge/netfilter/ebt_ip6.c if (e->ethproto != htons(ETH_P_IPV6) || e->invflags & EBT_IPROTO) htons 107 net/bridge/netfilter/ebt_log.c htons(ETH_P_IP)){ htons 125 net/bridge/netfilter/ebt_log.c htons(ETH_P_IPV6)) { htons 150 net/bridge/netfilter/ebt_log.c ((eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) || htons 151 net/bridge/netfilter/ebt_log.c (eth_hdr(skb)->h_proto == htons(ETH_P_RARP)))) { htons 166 net/bridge/netfilter/ebt_log.c if (ah->ar_hrd == htons(1) && htons 29 net/bridge/netfilter/ebt_snat.c eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) { htons 93 net/bridge/netfilter/ebt_vlan.c if (e->ethproto != htons(ETH_P_8021Q)) { htons 231 net/can/af_can.c skb->protocol = htons(ETH_P_CAN); htons 387 net/core/dev.c if (pt->type == htons(ETH_P_ALL)) htons 416 net/core/dev.c if (pt->type == htons(ETH_P_ALL)) htons 1455 net/core/dev.c protocol == htons(ETH_P_IP)) || htons 1457 net/core/dev.c protocol == htons(ETH_P_IPV6))); htons 1465 net/core/dev.c if (skb->protocol == htons(ETH_P_8021Q)) { htons 1710 net/core/dev.c case htons(ETH_P_IP): htons 1711 net/core/dev.c if (!(ip_hdr(skb)->frag_off & htons(IP_MF | IP_OFFSET))) htons 1717 net/core/dev.c case htons(ETH_P_IPV6): htons 2774 net/core/dev.c if (pt->type == htons(ETH_P_ALL)) { htons 2829 net/core/dev.c if (pt->type == htons(ETH_P_ALL)) htons 339 net/core/netpoll.c udph->source = htons(np->local_port); htons 340 net/core/netpoll.c udph->dest = htons(np->remote_port); htons 341 net/core/netpoll.c udph->len = htons(udp_len); htons 357 net/core/netpoll.c put_unaligned(htons(ip_len), &(iph->tot_len)); htons 369 net/core/netpoll.c skb->protocol = eth->h_proto = htons(ETH_P_IP); htons 405 net/core/netpoll.c if ((arp->ar_hrd != htons(ARPHRD_ETHER) && htons 406 net/core/netpoll.c arp->ar_hrd != htons(ARPHRD_IEEE802)) || htons 407 net/core/netpoll.c arp->ar_pro != htons(ETH_P_IP) || htons 408 net/core/netpoll.c arp->ar_op != htons(ARPOP_REQUEST)) htons 436 net/core/netpoll.c send_skb->protocol = htons(ETH_P_ARP); htons 453 net/core/netpoll.c arp->ar_hrd = htons(np->dev->type); htons 454 net/core/netpoll.c arp->ar_pro = htons(ETH_P_IP); htons 457 net/core/netpoll.c arp->ar_op = htons(type); htons 485 net/core/netpoll.c if (skb->protocol == htons(ETH_P_ARP) && htons 2515 net/core/pktgen.c return htons(id | (cfi << 12) | (prio << 13)); htons 2527 net/core/pktgen.c __be16 protocol = htons(ETH_P_IP); htons 2536 net/core/pktgen.c protocol = htons(ETH_P_MPLS_UC); htons 2539 net/core/pktgen.c protocol = htons(ETH_P_8021Q); htons 2570 net/core/pktgen.c *svlan_encapsulated_proto = htons(ETH_P_8021Q); htons 2577 net/core/pktgen.c *vlan_encapsulated_proto = htons(ETH_P_IP); htons 2596 net/core/pktgen.c udph->source = htons(pkt_dev->cur_udp_src); htons 2597 net/core/pktgen.c udph->dest = htons(pkt_dev->cur_udp_dst); htons 2598 net/core/pktgen.c udph->len = htons(datalen + 8); /* DATA + udphdr */ htons 2610 net/core/pktgen.c iph->tot_len = htons(iplen); htons 2867 net/core/pktgen.c __be16 protocol = htons(ETH_P_IPV6); htons 2876 net/core/pktgen.c protocol = htons(ETH_P_MPLS_UC); htons 2879 net/core/pktgen.c protocol = htons(ETH_P_8021Q); htons 2909 net/core/pktgen.c *svlan_encapsulated_proto = htons(ETH_P_8021Q); htons 2916 net/core/pktgen.c *vlan_encapsulated_proto = htons(ETH_P_IPV6); htons 2941 net/core/pktgen.c udph->source = htons(pkt_dev->cur_udp_src); htons 2942 net/core/pktgen.c udph->dest = htons(pkt_dev->cur_udp_dst); htons 2943 net/core/pktgen.c udph->len = htons(datalen + sizeof(struct udphdr)); htons 2955 net/core/pktgen.c iph->payload_len = htons(sizeof(struct udphdr) + datalen); htons 399 net/dccp/dccp.h dh->dccph_seq = htons((gss >> 32) & 0xfffff); htons 407 net/dccp/dccp.h dhack->dccph_ack_nr_high = htons(gsr >> 32); htons 405 net/dccp/ipv6.c if (skb->protocol == htons(ETH_P_IP)) htons 493 net/dccp/ipv6.c if (skb->protocol == htons(ETH_P_IP)) { htons 679 net/dccp/ipv6.c if (skb->protocol == htons(ETH_P_IP)) htons 397 net/dccp/options.c const __be16 var16 = htons((u16)elapsed_time); htons 454 net/dccp/options.c const __be16 var16 = htons((u16)elapsed_time); htons 1906 net/decnet/af_decnet.c skb->protocol = htons(ETH_P_DNA_RT); htons 127 net/decnet/dn_nsp_out.c skb->protocol = htons(ETH_P_DNA_RT); htons 1554 net/decnet/dn_route.c skb->protocol = htons(ETH_P_DNA_RT); htons 217 net/dsa/dsa.c return !!(ds->tag_protocol == htons(ETH_P_DSA)); htons 224 net/dsa/dsa.c return !!(ds->tag_protocol == htons(ETH_P_TRAILER)); htons 267 net/dsa/mv88e6060.c .tag_protocol = htons(ETH_P_TRAILER), htons 205 net/dsa/mv88e6123_61_65.c (ds->tag_protocol == htons(ETH_P_DSA)) ? htons 243 net/dsa/slave.c case htons(ETH_P_DSA): htons 248 net/dsa/slave.c case htons(ETH_P_EDSA): htons 253 net/dsa/slave.c case htons(ETH_P_TRAILER): htons 31 net/dsa/tag_dsa.c if (skb->protocol == htons(ETH_P_8021Q)) { htons 66 net/dsa/tag_dsa.c skb->protocol = htons(ETH_P_DSA); htons 33 net/dsa/tag_edsa.c if (skb->protocol == htons(ETH_P_8021Q)) { htons 79 net/dsa/tag_edsa.c skb->protocol = htons(ETH_P_EDSA); htons 60 net/dsa/tag_trailer.c nskb->protocol = htons(ETH_P_TRAILER); htons 421 net/econet/af_econet.c udpdest.sin_port = htons(AUN_PORT); htons 828 net/econet/af_econet.c .sin_port = htons(AUN_PORT), htons 1020 net/econet/af_econet.c sin.sin_port = htons(AUN_PORT); htons 1084 net/econet/af_econet.c skb->protocol = htons(ETH_P_IP); htons 86 net/ethernet/eth.c eth->h_proto = htons(type); htons 88 net/ethernet/eth.c eth->h_proto = htons(len); htons 133 net/ethernet/eth.c case htons(ETH_P_IP): htons 195 net/ethernet/eth.c return htons(ETH_P_DSA); htons 197 net/ethernet/eth.c return htons(ETH_P_TRAILER); htons 211 net/ethernet/eth.c return htons(ETH_P_802_3); htons 216 net/ethernet/eth.c return htons(ETH_P_802_2); htons 248 net/ethernet/eth.c if (type == htons(ETH_P_802_3)) htons 14 net/ethernet/pe2.c skb->protocol = htons(ETH_P_IPX); htons 48 net/ieee80211/ieee80211_rx.c skb->protocol = htons(ETH_P_80211_RAW); htons 775 net/ieee80211/ieee80211_rx.c len = htons(skb->len); htons 818 net/ieee80211/ieee80211_rx.c skb2->protocol = htons(ETH_P_802_3); htons 139 net/ieee80211/ieee80211_tx.c if (h_proto == htons(ETH_P_AARP) || h_proto == htons(ETH_P_IPX)) htons 228 net/ieee80211/ieee80211_tx.c if (eth->h_proto != htons(ETH_P_IP)) htons 299 net/ieee80211/ieee80211_tx.c encrypt = !(ether_type == htons(ETH_P_PAE) && ieee->ieee802_1x) && htons 307 net/ieee80211/ieee80211_tx.c ieee->drop_unencrypted && ether_type != htons(ETH_P_PAE)) { htons 182 net/ipv4/af_inet.c inet->sport = htons(inet->num); htons 390 net/ipv4/af_inet.c inet->sport = htons(inet->num); htons 513 net/ipv4/af_inet.c inet->sport = htons(inet->num); htons 1237 net/ipv4/af_inet.c iph->id = htons(id++); htons 1238 net/ipv4/af_inet.c iph->tot_len = htons(skb->len - skb->mac_len); htons 89 net/ipv4/ah4.c top_iph->tot_len = htons(skb->len); htons 580 net/ipv4/arp.c skb->protocol = htons(ETH_P_ARP); htons 604 net/ipv4/arp.c arp->ar_hrd = htons(dev->type); htons 605 net/ipv4/arp.c arp->ar_pro = htons(ETH_P_IP); htons 610 net/ipv4/arp.c arp->ar_hrd = htons(ARPHRD_AX25); htons 611 net/ipv4/arp.c arp->ar_pro = htons(AX25_P_IP); htons 616 net/ipv4/arp.c arp->ar_hrd = htons(ARPHRD_NETROM); htons 617 net/ipv4/arp.c arp->ar_pro = htons(AX25_P_IP); htons 624 net/ipv4/arp.c arp->ar_hrd = htons(ARPHRD_ETHER); htons 625 net/ipv4/arp.c arp->ar_pro = htons(ETH_P_IP); htons 630 net/ipv4/arp.c arp->ar_hrd = htons(ARPHRD_IEEE802); htons 631 net/ipv4/arp.c arp->ar_pro = htons(ETH_P_IP); htons 638 net/ipv4/arp.c arp->ar_op = htons(type); htons 724 net/ipv4/arp.c if (arp->ar_pro != htons(ETH_P_IP) || htons 725 net/ipv4/arp.c htons(dev_type) != arp->ar_hrd) htons 741 net/ipv4/arp.c if ((arp->ar_hrd != htons(ARPHRD_ETHER) && htons 742 net/ipv4/arp.c arp->ar_hrd != htons(ARPHRD_IEEE802)) || htons 743 net/ipv4/arp.c arp->ar_pro != htons(ETH_P_IP)) htons 747 net/ipv4/arp.c if (arp->ar_pro != htons(AX25_P_IP) || htons 748 net/ipv4/arp.c arp->ar_hrd != htons(ARPHRD_AX25)) htons 752 net/ipv4/arp.c if (arp->ar_pro != htons(AX25_P_IP) || htons 753 net/ipv4/arp.c arp->ar_hrd != htons(ARPHRD_NETROM)) htons 760 net/ipv4/arp.c if (arp->ar_op != htons(ARPOP_REPLY) && htons 761 net/ipv4/arp.c arp->ar_op != htons(ARPOP_REQUEST)) htons 806 net/ipv4/arp.c if (arp->ar_op == htons(ARPOP_REQUEST) && htons 814 net/ipv4/arp.c if (arp->ar_op == htons(ARPOP_REQUEST) && htons 866 net/ipv4/arp.c arp->ar_op == htons(ARPOP_REPLY) && htons 885 net/ipv4/arp.c if (arp->ar_op != htons(ARPOP_REPLY) || htons 1003 net/ipv4/cipso_ipv4.c *((__be16 *)&net_cat[cat_iter]) = htons(cat); htons 1132 net/ipv4/cipso_ipv4.c *((__be16 *)&net_cat[iter]) = htons(array[--array_cnt]); htons 1136 net/ipv4/cipso_ipv4.c *((__be16 *)&net_cat[iter]) = htons(array[array_cnt]); htons 2115 net/ipv4/cipso_ipv4.c iph->tot_len = htons(skb->len); htons 183 net/ipv4/esp4.c uh->len = htons(skb->len - skb_transport_offset(skb)); htons 456 net/ipv4/icmp.c if (iph->frag_off & htons(IP_OFFSET)) htons 326 net/ipv4/igmp.c pip->frag_off = htons(IP_DF); htons 381 net/ipv4/igmp.c pih->ngrec = htons(ntohs(pih->ngrec)+1); htons 445 net/ipv4/igmp.c pgr->grec_nsrcs = htons(scount); htons 491 net/ipv4/igmp.c pgr->grec_nsrcs = htons(scount); htons 673 net/ipv4/igmp.c iph->frag_off = htons(IP_DF); htons 590 net/ipv4/inet_connection_sock.c inet->sport = htons(inet->num); htons 306 net/ipv4/inet_hashtables.c inet->sport = htons(lport); htons 485 net/ipv4/inet_hashtables.c inet_sk(sk)->sport = htons(port); htons 117 net/ipv4/inet_lro.c iph->tot_len = htons(lro_desc->ip_tot_len); htons 354 net/ipv4/inet_lro.c if ((skb->protocol == htons(ETH_P_8021Q)) htons 475 net/ipv4/inet_lro.c if ((skb->protocol == htons(ETH_P_8021Q)) htons 90 net/ipv4/ip_forward.c (ip_hdr(skb)->frag_off & htons(IP_DF))) && !skb->local_df) { htons 550 net/ipv4/ip_fragment.c iph->tot_len = htons(len); htons 178 net/ipv4/ip_gre.c int dev_type = (gre_proto == htons(ETH_P_TEB)) ? htons 450 net/ipv4/ip_gre.c if (skb->protocol == htons(ETH_P_IP)) { htons 452 net/ipv4/ip_gre.c } else if (skb->protocol == htons(ETH_P_IPV6)) { htons 462 net/ipv4/ip_gre.c if (skb->protocol == htons(ETH_P_IP)) htons 464 net/ipv4/ip_gre.c else if (skb->protocol == htons(ETH_P_IPV6)) htons 535 net/ipv4/ip_gre.c if (flags == 0 && gre_proto == htons(ETH_P_WCCP)) { htons 536 net/ipv4/ip_gre.c skb->protocol = htons(ETH_P_IP); htons 649 net/ipv4/ip_gre.c if (skb->protocol == htons(ETH_P_IP)) { htons 655 net/ipv4/ip_gre.c else if (skb->protocol == htons(ETH_P_IPV6)) { htons 683 net/ipv4/ip_gre.c if (skb->protocol == htons(ETH_P_IP)) htons 717 net/ipv4/ip_gre.c if (skb->protocol == htons(ETH_P_IP)) { htons 718 net/ipv4/ip_gre.c df |= (old_iph->frag_off&htons(IP_DF)); htons 720 net/ipv4/ip_gre.c if ((old_iph->frag_off&htons(IP_DF)) && htons 728 net/ipv4/ip_gre.c else if (skb->protocol == htons(ETH_P_IPV6)) { htons 799 net/ipv4/ip_gre.c if (skb->protocol == htons(ETH_P_IP)) htons 802 net/ipv4/ip_gre.c else if (skb->protocol == htons(ETH_P_IPV6)) htons 811 net/ipv4/ip_gre.c htons(ETH_P_TEB) : skb->protocol; htons 945 net/ipv4/ip_gre.c p.iph.ihl != 5 || (p.iph.frag_off&htons(~IP_DF)) || htons 949 net/ipv4/ip_gre.c p.iph.frag_off |= htons(IP_DF); htons 1086 net/ipv4/ip_gre.c p[1] = htons(type); htons 1383 net/ipv4/ip_gre.c parms->iph.frag_off = htons(IP_DF); htons 1548 net/ipv4/ip_gre.c NLA_PUT_U8(skb, IFLA_GRE_PMTUDISC, !!(p->iph.frag_off & htons(IP_DF))); htons 168 net/ipv4/ip_input.c if (ip_hdr(skb)->frag_off & htons(IP_MF | IP_OFFSET)) { htons 255 net/ipv4/ip_input.c if (ip_hdr(skb)->frag_off & htons(IP_MF | IP_OFFSET)) { htons 96 net/ipv4/ip_output.c iph->tot_len = htons(skb->len); htons 154 net/ipv4/ip_output.c iph->frag_off = htons(IP_DF); htons 250 net/ipv4/ip_output.c skb->protocol = htons(ETH_P_IP); htons 304 net/ipv4/ip_output.c skb->protocol = htons(ETH_P_IP); htons 368 net/ipv4/ip_output.c *((__be16 *)iph) = htons((4 << 12) | (5 << 8) | (inet->tos & 0xff)); htons 370 net/ipv4/ip_output.c iph->frag_off = htons(IP_DF); htons 454 net/ipv4/ip_output.c if (unlikely((iph->frag_off & htons(IP_DF)) && !skb->local_df)) { htons 484 net/ipv4/ip_output.c (iph->frag_off & htons(IP_MF|IP_OFFSET)) || htons 517 net/ipv4/ip_output.c iph->tot_len = htons(first_len); htons 518 net/ipv4/ip_output.c iph->frag_off = htons(IP_MF); htons 531 net/ipv4/ip_output.c iph->tot_len = htons(frag->len); htons 536 net/ipv4/ip_output.c iph->frag_off = htons(offset>>3); htons 538 net/ipv4/ip_output.c iph->frag_off |= htons(IP_MF); htons 585 net/ipv4/ip_output.c not_last_frag = iph->frag_off & htons(IP_MF); htons 646 net/ipv4/ip_output.c iph->frag_off = htons((offset >> 3)); htons 662 net/ipv4/ip_output.c iph->frag_off |= htons(IP_MF); htons 669 net/ipv4/ip_output.c iph->tot_len = htons(len + hlen); htons 1255 net/ipv4/ip_output.c df = htons(IP_DF); htons 454 net/ipv4/ipconfig.c if (rarp->ar_op != htons(ARPOP_RREPLY)) htons 458 net/ipv4/ipconfig.c if (rarp->ar_pro != htons(ETH_P_IP)) htons 727 net/ipv4/ipconfig.c h->tot_len = htons(sizeof(struct bootp_pkt)); htons 728 net/ipv4/ipconfig.c h->frag_off = htons(IP_DF); htons 735 net/ipv4/ipconfig.c b->udph.source = htons(68); htons 736 net/ipv4/ipconfig.c b->udph.dest = htons(67); htons 737 net/ipv4/ipconfig.c b->udph.len = htons(sizeof(struct bootp_pkt) - sizeof(struct iphdr)); htons 756 net/ipv4/ipconfig.c b->secs = htons(jiffies_diff / HZ); htons 769 net/ipv4/ipconfig.c skb->protocol = htons(ETH_P_IP); htons 877 net/ipv4/ipconfig.c if (h->frag_off & htons(IP_OFFSET | IP_MF)) { htons 890 net/ipv4/ipconfig.c if (b->udph.source != htons(67) || b->udph.dest != htons(68)) htons 366 net/ipv4/ipip.c skb->protocol = htons(ETH_P_IP); htons 410 net/ipv4/ipip.c if (skb->protocol != htons(ETH_P_IP)) htons 459 net/ipv4/ipip.c df |= (old_iph->frag_off&htons(IP_DF)); htons 461 net/ipv4/ipip.c if ((old_iph->frag_off&htons(IP_DF)) && mtu < ntohs(old_iph->tot_len)) { htons 609 net/ipv4/ipip.c p.iph.ihl != 5 || (p.iph.frag_off&htons(~IP_DF))) htons 612 net/ipv4/ipip.c p.iph.frag_off |= htons(IP_DF); htons 618 net/ipv4/ipmr.c ip_hdr(skb)->tot_len = htons(ntohs(ip_hdr(pkt)->tot_len) + htons 644 net/ipv4/ipmr.c ip_hdr(skb)->tot_len = htons(skb->len); /* Fix the length */ htons 1169 net/ipv4/ipmr.c iph->tot_len = htons(skb->len); htons 1520 net/ipv4/ipmr.c skb->protocol = htons(ETH_P_IP); htons 1576 net/ipv4/ipmr.c skb->protocol = htons(ETH_P_IP); htons 499 net/ipv4/netfilter/ipt_CLUSTERIP.c if (arp->ar_hrd != htons(ARPHRD_ETHER) htons 500 net/ipv4/netfilter/ipt_CLUSTERIP.c || arp->ar_pro != htons(ETH_P_IP) htons 505 net/ipv4/netfilter/ipt_CLUSTERIP.c if (arp->ar_op != htons(ARPOP_REPLY) htons 506 net/ipv4/netfilter/ipt_CLUSTERIP.c && arp->ar_op != htons(ARPOP_REQUEST)) htons 41 net/ipv4/netfilter/ipt_ECN.c csum_replace2(&iph->check, htons(oldtos), htons(iph->tos)); htons 45 net/ipv4/netfilter/ipt_REJECT.c if (ip_hdr(oldskb)->frag_off & htons(IP_OFFSET)) htons 75 net/ipv4/netfilter/ipt_REJECT.c niph->frag_off = htons(IP_DF); htons 54 net/ipv4/netfilter/ipt_TTL.c csum_replace2(&iph->check, htons(iph->ttl << 8), htons 55 net/ipv4/netfilter/ipt_TTL.c htons(new_ttl << 8)); htons 80 net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c if (iph->frag_off & htons(IP_OFFSET)) htons 51 net/ipv4/netfilter/nf_defrag_ipv4.c if (ip_hdr(skb)->frag_off & htons(IP_MF | IP_OFFSET)) { htons 47 net/ipv4/netfilter/nf_nat_amanda.c exp->tuple.dst.u.tcp.port = htons(port); htons 127 net/ipv4/netfilter/nf_nat_ftp.c exp->tuple.dst.u.tcp.port = htons(port); htons 211 net/ipv4/netfilter/nf_nat_h323.c htons(ntohs(info->rtp_port[i][dir]) + 1); htons 229 net/ipv4/netfilter/nf_nat_h323.c rtp_exp->tuple.dst.u.udp.port = htons(nated_port); htons 232 net/ipv4/netfilter/nf_nat_h323.c htons(nated_port + 1); htons 248 net/ipv4/netfilter/nf_nat_h323.c htons((port & htons(1)) ? nated_port + 1 : htons 252 net/ipv4/netfilter/nf_nat_h323.c info->rtp_port[i][!dir] = htons(nated_port); htons 291 net/ipv4/netfilter/nf_nat_h323.c exp->tuple.dst.u.tcp.port = htons(nated_port); htons 305 net/ipv4/netfilter/nf_nat_h323.c htons(nated_port)) < 0) { htons 341 net/ipv4/netfilter/nf_nat_h323.c exp->tuple.dst.u.tcp.port = htons(nated_port); htons 355 net/ipv4/netfilter/nf_nat_h323.c htons(nated_port)) == 0) { htons 358 net/ipv4/netfilter/nf_nat_h323.c info->sig_port[!dir] = htons(nated_port); htons 425 net/ipv4/netfilter/nf_nat_h323.c exp->tuple.dst.u.tcp.port = htons(nated_port); htons 439 net/ipv4/netfilter/nf_nat_h323.c htons(nated_port)) == 0) { htons 442 net/ipv4/netfilter/nf_nat_h323.c info->sig_port[!dir] = htons(nated_port); htons 507 net/ipv4/netfilter/nf_nat_h323.c exp->tuple.dst.u.tcp.port = htons(nated_port); htons 521 net/ipv4/netfilter/nf_nat_h323.c htons(nated_port)) == 0) { htons 110 net/ipv4/netfilter/nf_nat_helper.c ip_hdr(skb)->tot_len = htons(skb->len); htons 185 net/ipv4/netfilter/nf_nat_helper.c htons(oldlen), htons(datalen), 1); htons 249 net/ipv4/netfilter/nf_nat_helper.c udph->len = htons(datalen); htons 277 net/ipv4/netfilter/nf_nat_helper.c htons(oldlen), htons(datalen), 1); htons 48 net/ipv4/netfilter/nf_nat_irc.c exp->tuple.dst.u.tcp.port = htons(port); htons 85 net/ipv4/netfilter/nf_nat_proto_common.c *portptr = htons(min + off % range_size); htons 72 net/ipv4/netfilter/nf_nat_proto_gre.c *keyptr = htons(min + key % range_size); htons 46 net/ipv4/netfilter/nf_nat_proto_icmp.c tuple->src.u.icmp.id = htons(ntohs(range->min.icmp.id) + htons 181 net/ipv4/netfilter/nf_nat_sip.c htons(n) == ct->tuplehash[dir].tuple.dst.u.udp.port && htons 182 net/ipv4/netfilter/nf_nat_sip.c htons(n) != ct->tuplehash[!dir].tuple.src.u.udp.port) { htons 272 net/ipv4/netfilter/nf_nat_sip.c exp->tuple.dst.u.udp.port = htons(port); htons 447 net/ipv4/netfilter/nf_nat_sip.c rtp_exp->tuple.dst.u.udp.port = htons(port); htons 450 net/ipv4/netfilter/nf_nat_sip.c rtcp_exp->tuple.dst.u.udp.port = htons(port + 1); htons 1252 net/ipv4/netfilter/nf_nat_snmp_basic.c if (udph->source == htons(SNMP_PORT) && dir != IP_CT_DIR_REPLY) htons 1254 net/ipv4/netfilter/nf_nat_snmp_basic.c if (udph->dest == htons(SNMP_TRAP_PORT) && dir != IP_CT_DIR_ORIGINAL) htons 89 net/ipv4/netfilter/nf_nat_standalone.c NF_CT_ASSERT(!(ip_hdr(skb)->frag_off & htons(IP_MF | IP_OFFSET))); htons 365 net/ipv4/raw.c iph->tot_len = htons(length); htons 1150 net/ipv4/route.c iph->id = htons(salt & 0xFFFF); htons 1167 net/ipv4/route.c iph->id = htons(inet_getid(rt->peer, more)); htons 1707 net/ipv4/route.c ipv4_is_loopback(saddr) || skb->protocol != htons(ETH_P_IP)) htons 1846 net/ipv4/route.c if (skb->protocol != htons(ETH_P_IP)) { htons 2025 net/ipv4/route.c if (skb->protocol != htons(ETH_P_IP)) htons 2797 net/ipv4/route.c skb->protocol = htons(ETH_P_IP); htons 646 net/ipv4/tcp_ipv4.c rep.th.window = htons(win); htons 640 net/ipv4/tcp_output.c *(((__be16 *)th) + 6) = htons(((tcp_header_size >> 2) << 12) | htons 647 net/ipv4/tcp_output.c th->window = htons(min(tp->rcv_wnd, 65535U)); htons 649 net/ipv4/tcp_output.c th->window = htons(tcp_select_window(sk)); htons 657 net/ipv4/tcp_output.c th->urg_ptr = htons(tp->snd_up - tcb->seq); htons 2295 net/ipv4/tcp_output.c th->window = htons(min(req->rcv_wnd, 65535U)); htons 478 net/ipv4/udp.c uh->len = htons(up->len); htons 60 net/ipv4/xfrm4_input.c iph->tot_len = htons(skb->len); htons 141 net/ipv4/xfrm4_input.c iph->tot_len = htons(ntohs(iph->tot_len) - len); htons 123 net/ipv4/xfrm4_mode_beet.c iph->tot_len = htons(skb->len); htons 52 net/ipv4/xfrm4_mode_transport.c ip_hdr(skb)->tot_len = htons(skb->len + ihl); htons 55 net/ipv4/xfrm4_mode_tunnel.c 0 : (XFRM_MODE_SKB_CB(skb)->frag_off & htons(IP_DF)); htons 29 net/ipv4/xfrm4_output.c if (!(ip_hdr(skb)->frag_off & htons(IP_DF)) || skb->local_df) htons 66 net/ipv4/xfrm4_output.c skb->protocol = htons(ETH_P_IP); htons 83 net/ipv4/xfrm4_output.c skb->protocol = htons(ETH_P_IP); htons 130 net/ipv4/xfrm4_policy.c if (!(iph->frag_off & htons(IP_MF | IP_OFFSET))) { htons 33 net/ipv4/xfrm4_state.c x->sel.dport_mask = htons(0xffff); htons 35 net/ipv4/xfrm4_state.c x->sel.sport_mask = htons(0xffff); htons 70 net/ipv4/xfrm4_state.c .eth_proto = htons(ETH_P_IP), htons 220 net/ipv6/af_inet6.c inet->sport = htons(inet->num); htons 342 net/ipv6/af_inet6.c inet->sport = htons(inet->num); htons 772 net/ipv6/af_inet6.c ipv6h->payload_len = htons(skb->len - skb->mac_len - htons 240 net/ipv6/ah6.c top_iph->payload_len = htons(skb->len - sizeof(*top_iph)); htons 204 net/ipv6/inet6_hashtables.c inet->sport = htons(lport); htons 79 net/ipv6/ip6_output.c ipv6_hdr(skb)->payload_len = htons(len); htons 132 net/ipv6/ip6_output.c skb->protocol = htons(ETH_P_IPV6); htons 265 net/ipv6/ip6_output.c hdr->payload_len = htons(seg_len); htons 309 net/ipv6/ip6_output.c skb->protocol = htons(ETH_P_IPV6); htons 320 net/ipv6/ip6_output.c hdr->payload_len = htons(len); htons 711 net/ipv6/ip6_output.c fh->frag_off = htons(IP6_MF); htons 718 net/ipv6/ip6_output.c ipv6_hdr(skb)->payload_len = htons(first_len - htons 737 net/ipv6/ip6_output.c fh->frag_off = htons(offset); htons 739 net/ipv6/ip6_output.c fh->frag_off |= htons(IP6_MF); htons 742 net/ipv6/ip6_output.c htons(frag->len - htons 858 net/ipv6/ip6_output.c fh->frag_off = htons(offset); htons 860 net/ipv6/ip6_output.c fh->frag_off |= htons(IP6_MF); htons 861 net/ipv6/ip6_output.c ipv6_hdr(frag)->payload_len = htons(frag->len - htons 719 net/ipv6/ip6_tunnel.c skb->protocol = htons(protocol); htons 1053 net/ipv6/ip6_tunnel.c case htons(ETH_P_IP): htons 1056 net/ipv6/ip6_tunnel.c case htons(ETH_P_IPV6): htons 387 net/ipv6/ip6mr.c skb->protocol = htons(ETH_P_IP); htons 1452 net/ipv6/mcast.c pip6->payload_len = htons(payload_len); htons 1514 net/ipv6/mcast.c pmr->ngrec = htons(ntohs(pmr->ngrec)+1); htons 1578 net/ipv6/mcast.c pgr->grec_nsrcs = htons(scount); htons 1624 net/ipv6/mcast.c pgr->grec_nsrcs = htons(scount); htons 244 net/ipv6/mip6.c sel.dport_mask = htons(~0); htons 247 net/ipv6/mip6.c sel.sport_mask = htons(~0); htons 107 net/ipv6/netfilter/ip6t_LOG.c if (fh->frag_off & htons(0x0001)) htons 37 net/ipv6/netfilter/ip6t_eui64.c if (eth_hdr(skb)->h_proto == htons(ETH_P_IPV6)) { htons 62 net/ipv6/netfilter/ip6t_frag.c pr_debug("MF %04X ", fh->frag_off & htons(IP6_MF)); htons 227 net/ipv6/netfilter/nf_conntrack_reasm.c if (!(fhdr->frag_off & htons(IP6_MF))) { htons 463 net/ipv6/netfilter/nf_conntrack_reasm.c ipv6_hdr(head)->payload_len = htons(payload_len); htons 601 net/ipv6/netfilter/nf_conntrack_reasm.c if (!(fhdr->frag_off & htons(0xFFF9))) { htons 296 net/ipv6/reassembly.c if (!(fhdr->frag_off & htons(IP6_MF))) { htons 544 net/ipv6/reassembly.c ipv6_hdr(head)->payload_len = htons(payload_len); htons 595 net/ipv6/reassembly.c if (!(fhdr->frag_off & htons(0xFFF9))) { htons 489 net/ipv6/sit.c skb->protocol = htons(ETH_P_IPV6); htons 525 net/ipv6/sit.c if (v6dst->s6_addr16[0] == htons(0x2002)) { htons 558 net/ipv6/sit.c if (skb->protocol != htons(ETH_P_IPV6)) htons 705 net/ipv6/sit.c iph->frag_off = htons(IP_DF); htons 807 net/ipv6/sit.c p.iph.ihl != 5 || (p.iph.frag_off&htons(~IP_DF))) htons 810 net/ipv6/sit.c p.iph.frag_off |= htons(IP_DF); htons 981 net/ipv6/tcp_ipv6.c t1->window = htons(win); htons 1137 net/ipv6/tcp_ipv6.c if (skb->protocol == htons(ETH_P_IP)) htons 1237 net/ipv6/tcp_ipv6.c if (skb->protocol == htons(ETH_P_IP)) { htons 1471 net/ipv6/tcp_ipv6.c if (skb->protocol == htons(ETH_P_IP)) htons 199 net/ipv6/udp.c if (skb->protocol == htons(ETH_P_IP)) htons 210 net/ipv6/udp.c if (skb->protocol == htons(ETH_P_IP)) { htons 591 net/ipv6/udp.c uh->len = htons(up->len); htons 42 net/ipv6/xfrm6_input.c ipv6_hdr(skb)->payload_len = htons(skb->len); htons 103 net/ipv6/xfrm6_mode_beet.c ip6h->payload_len = htons(skb->len - size); htons 56 net/ipv6/xfrm6_mode_transport.c ipv6_hdr(skb)->payload_len = htons(skb->len + ihl - htons 74 net/ipv6/xfrm6_output.c skb->protocol = htons(ETH_P_IPV6); htons 86 net/ipv6/xfrm6_output.c skb->protocol = htons(ETH_P_IPV6); htons 34 net/ipv6/xfrm6_state.c x->sel.dport_mask = htons(0xffff); htons 36 net/ipv6/xfrm6_state.c x->sel.sport_mask = htons(0xffff); htons 156 net/ipv6/xfrm6_state.c XFRM_MODE_SKB_CB(skb)->frag_off = htons(IP_DF); htons 169 net/ipv6/xfrm6_state.c .eth_proto = htons(ETH_P_IPV6), htons 679 net/ipx/af_ipx.c skb->protocol = htons(ETH_P_IPX); htons 944 net/ipx/af_ipx.c case IPX_FRAME_ETHERII: rc = htons(ETH_P_IPX); break; htons 945 net/ipx/af_ipx.c case IPX_FRAME_8022: rc = htons(ETH_P_802_2); break; htons 946 net/ipx/af_ipx.c case IPX_FRAME_SNAP: rc = htons(ETH_P_SNAP); break; htons 947 net/ipx/af_ipx.c case IPX_FRAME_8023: rc = htons(ETH_P_802_3); break; htons 991 net/ipx/af_ipx.c dlink_type = htons(ETH_P_802_2); htons 996 net/ipx/af_ipx.c dlink_type = htons(ETH_P_IPX); htons 1005 net/ipx/af_ipx.c dlink_type = htons(ETH_P_SNAP); htons 1009 net/ipx/af_ipx.c dlink_type = htons(ETH_P_802_3); htons 1240 net/ipx/af_ipx.c __u32 sum = p[1] + (p[2] & (__force u16)htons(0x00ff)); htons 1249 net/ipx/af_ipx.c if (packet->ipx_pktsize & htons(1)) htons 1250 net/ipx/af_ipx.c sum += (__force u16)htons(0xff00) & *p; htons 1414 net/ipx/af_ipx.c while (__ipxitf_find_socket(intrfc, htons(socketNum))) htons 1423 net/ipx/af_ipx.c return htons(socketNum); htons 210 net/ipx/ipx_route.c ipx->ipx_pktsize = htons(len + sizeof(struct ipxhdr)); htons 242 net/ipx/ipx_route.c if (sk->sk_no_check || intrfc->if_dlink_type == htons(IPX_FRAME_8023)) htons 243 net/ipx/ipx_route.c ipx->ipx_checksum = htons(0xFFFF); htons 584 net/irda/iriap.c tmp_be16 = htons(0x0001); htons 99 net/irda/irlap_frame.c skb->protocol = htons(ETH_P_IRDA); htons 261 net/irda/wrapper.c dataskb->protocol = htons(ETH_P_IRDA); htons 2197 net/key/af_key.c xp->selector.sport_mask = htons(0xffff); htons 2210 net/key/af_key.c xp->selector.dport_mask = htons(0xffff); htons 2305 net/key/af_key.c sel.sport_mask = htons(0xffff); htons 2313 net/key/af_key.c sel.dport_mask = htons(0xffff); htons 2510 net/key/af_key.c sel.sport_mask = htons(0xffff); htons 2519 net/key/af_key.c sel.dport_mask = htons(0xffff); htons 70 net/llc/af_llc.c htons(ETH_P_TR_802_2) : htons(ETH_P_802_2); htons 118 net/llc/llc_input.c if (skb->protocol == htons(ETH_P_802_2)) { htons 69 net/llc/llc_output.c eth->h_proto = htons(len); htons 64 net/llc/llc_sap.c skb->protocol = htons(ETH_P_802_2); htons 568 net/mac80211/cfg.c msg->len = htons(6); htons 677 net/mac80211/main.c skb->protocol = htons(ETH_P_802_2); htons 292 net/mac80211/rx.c skb->protocol = htons(ETH_P_802_2); htons 1174 net/mac80211/rx.c len = htons(skb->len); htons 1196 net/mac80211/rx.c if (ehdr->h_proto == htons(ETH_P_PAE) && htons 1261 net/mac80211/rx.c xmit_skb->protocol = htons(ETH_P_802_3); htons 1719 net/mac80211/rx.c skb->protocol = htons(ETH_P_802_2); htons 42 net/mac80211/wme.c case htons(ETH_P_IP): htons 84 net/netfilter/ipvs/ip_vs_app.c inc->port = htons(port); htons 604 net/netfilter/ipvs/ip_vs_app.c ip_hdr(skb)->tot_len = htons(skb->len); htons 591 net/netfilter/ipvs/ip_vs_conn.c if (ct->vport != htons(0xffff)) { htons 593 net/netfilter/ipvs/ip_vs_conn.c ct->dport = htons(0xffff); htons 594 net/netfilter/ipvs/ip_vs_conn.c ct->vport = htons(0xffff); htons 722 net/netfilter/ipvs/ip_vs_core.c if (ip_hdr(skb)->frag_off & htons(IP_MF | IP_OFFSET)) { htons 762 net/netfilter/ipvs/ip_vs_core.c if (unlikely(cih->frag_off & htons(IP_OFFSET) && htons 941 net/netfilter/ipvs/ip_vs_core.c af = (skb->protocol == htons(ETH_P_IP)) ? AF_INET : AF_INET6; htons 983 net/netfilter/ipvs/ip_vs_core.c if (unlikely(ip_hdr(skb)->frag_off & htons(IP_MF|IP_OFFSET) && htons 1061 net/netfilter/ipvs/ip_vs_core.c if (ip_hdr(skb)->frag_off & htons(IP_MF | IP_OFFSET)) { htons 1102 net/netfilter/ipvs/ip_vs_core.c if (unlikely(cih->frag_off & htons(IP_OFFSET) && htons 1261 net/netfilter/ipvs/ip_vs_core.c af = (skb->protocol == htons(ETH_P_IP)) ? AF_INET : AF_INET6; htons 330 net/netfilter/ipvs/ip_vs_ftp.c &cp->vaddr, htons(ntohs(cp->vport)-1)); htons 334 net/netfilter/ipvs/ip_vs_ftp.c &cp->vaddr, htons(ntohs(cp->vport)-1), htons 335 net/netfilter/ipvs/ip_vs_ftp.c &cp->daddr, htons(ntohs(cp->dport)-1), htons 166 net/netfilter/ipvs/ip_vs_proto.c else if (ih->frag_off & htons(IP_OFFSET)) htons 240 net/netfilter/ipvs/ip_vs_proto.c if (skb->protocol == htons(ETH_P_IPV6)) htons 51 net/netfilter/ipvs/ip_vs_proto_ah_esp.c htons(PORT_ISAKMP), htons 53 net/netfilter/ipvs/ip_vs_proto_ah_esp.c htons(PORT_ISAKMP)); htons 57 net/netfilter/ipvs/ip_vs_proto_ah_esp.c htons(PORT_ISAKMP), htons 59 net/netfilter/ipvs/ip_vs_proto_ah_esp.c htons(PORT_ISAKMP)); htons 91 net/netfilter/ipvs/ip_vs_proto_ah_esp.c htons(PORT_ISAKMP), htons 93 net/netfilter/ipvs/ip_vs_proto_ah_esp.c htons(PORT_ISAKMP)); htons 97 net/netfilter/ipvs/ip_vs_proto_ah_esp.c htons(PORT_ISAKMP), htons 99 net/netfilter/ipvs/ip_vs_proto_ah_esp.c htons(PORT_ISAKMP)); htons 170 net/netfilter/ipvs/ip_vs_proto_ah_esp.c if (skb->protocol == htons(ETH_P_IPV6)) htons 264 net/netfilter/ipvs/ip_vs_sync.c s->flags = htons(cp->flags & ~IP_VS_CONN_F_HASHED); htons 265 net/netfilter/ipvs/ip_vs_sync.c s->state = htons(cp->state); htons 706 net/netfilter/ipvs/ip_vs_sync.c msg->size = htons(msg->size); htons 247 net/netfilter/ipvs/ip_vs_xmit.c if ((skb->len > mtu) && (iph->frag_off & htons(IP_DF))) { htons 378 net/netfilter/ipvs/ip_vs_xmit.c if ((skb->len > mtu) && (iph->frag_off & htons(IP_DF))) { htons 540 net/netfilter/ipvs/ip_vs_xmit.c if (skb->protocol != htons(ETH_P_IP)) { htons 543 net/netfilter/ipvs/ip_vs_xmit.c htons(ETH_P_IP), skb->protocol); htons 561 net/netfilter/ipvs/ip_vs_xmit.c df |= (old_iph->frag_off & htons(IP_DF)); htons 563 net/netfilter/ipvs/ip_vs_xmit.c if ((old_iph->frag_off & htons(IP_DF)) htons 650 net/netfilter/ipvs/ip_vs_xmit.c if (skb->protocol != htons(ETH_P_IPV6)) { htons 653 net/netfilter/ipvs/ip_vs_xmit.c htons(ETH_P_IPV6), skb->protocol); htons 761 net/netfilter/ipvs/ip_vs_xmit.c if ((iph->frag_off & htons(IP_DF)) && skb->len > mtu) { htons 889 net/netfilter/ipvs/ip_vs_xmit.c if ((skb->len > mtu) && (ip_hdr(skb)->frag_off & htons(IP_DF))) { htons 139 net/netfilter/nf_conntrack_amanda.c port = htons(simple_strtoul(pbuf, &tmp, 10)); htons 276 net/netfilter/nf_conntrack_expect.c exp->mask.src.u.all = htons(0xFFFF); htons 158 net/netfilter/nf_conntrack_ftp.c cmd->u.tcp.port = htons((array[4] << 8) | array[5]); htons 174 net/netfilter/nf_conntrack_ftp.c *port = htons(tmp_port); htons 564 net/netfilter/nf_conntrack_ftp.c ftp[i][j].tuple.src.u.tcp.port = htons(ports[i]); htons 272 net/netfilter/nf_conntrack_h323_main.c port &= htons(~1); htons 274 net/netfilter/nf_conntrack_h323_main.c rtcp_port = htons(ntohs(port) + 1); htons 51 net/netfilter/nf_conntrack_helper.c struct nf_conntrack_tuple_mask mask = { .src.u.all = htons(0xFFFF) }; htons 201 net/netfilter/nf_conntrack_irc.c port = htons(dcc_port); htons 253 net/netfilter/nf_conntrack_irc.c irc[i].tuple.src.u.tcp.port = htons(ports[i]); htons 82 net/netfilter/nf_conntrack_netbios_ns.c exp->tuple.src.u.udp.port = htons(NMBD_PORT); htons 85 net/netfilter/nf_conntrack_netbios_ns.c exp->mask.src.u.udp.port = htons(0xFFFF); htons 206 net/netfilter/nf_conntrack_sane.c sane[i][j].tuple.src.u.tcp.port = htons(ports[i]); htons 256 net/netfilter/nf_conntrack_sip.c *port = htons(p); htons 258 net/netfilter/nf_conntrack_sip.c *port = htons(SIP_PORT); htons 508 net/netfilter/nf_conntrack_sip.c *port = htons(p); htons 510 net/netfilter/nf_conntrack_sip.c *port = htons(SIP_PORT); htons 801 net/netfilter/nf_conntrack_sip.c rtp_port = htons(base_port); htons 802 net/netfilter/nf_conntrack_sip.c rtcp_port = htons(base_port + 1); htons 944 net/netfilter/nf_conntrack_sip.c &rtp_addr, htons(port), t->class, htons 1348 net/netfilter/nf_conntrack_sip.c sip[i][j].tuple.src.u.udp.port = htons(ports[i]); htons 126 net/netfilter/nf_conntrack_tftp.c tftp[i][j].tuple.src.u.udp.port = htons(ports[i]); htons 208 net/netfilter/nf_queue.c skb->protocol = htons(ETH_P_IP); htons 211 net/netfilter/nf_queue.c skb->protocol = htons(ETH_P_IPV6); htons 381 net/netfilter/nfnetlink_log.c nfmsg->res_id = htons(inst->group_num); htons 451 net/netfilter/nfnetlink_log.c phw.hw_addrlen = htons(len); htons 457 net/netfilter/nfnetlink_log.c NLA_PUT_BE16(inst->skb, NFULA_HWTYPE, htons(skb->dev->type)); htons 459 net/netfilter/nfnetlink_log.c htons(skb->dev->hard_header_len)); htons 280 net/netfilter/nfnetlink_queue.c nfmsg->res_id = htons(queue->queue_num); htons 346 net/netfilter/nfnetlink_queue.c phw.hw_addrlen = htons(len); htons 89 net/netfilter/xt_DSCP.c csum_replace2(&iph->check, htons(oldtos), htons(iph->tos)); htons 112 net/netfilter/xt_TCPMSS.c htons(oldmss), htons(newmss), htons 135 net/netfilter/xt_TCPMSS.c htons(tcplen), htons(tcplen + TCPOLEN_MSS), 1); htons 191 net/netfilter/xt_TCPMSS.c newlen = htons(ntohs(iph->tot_len) + ret); htons 219 net/netfilter/xt_TCPMSS.c ipv6h->payload_len = htons(ntohs(ipv6h->payload_len) + ret); htons 68 net/netfilter/xt_TCPOPTSTRIP.c inet_proto_csum_replace2(&tcph->check, skb, htons(o), htons 69 net/netfilter/xt_TCPOPTSTRIP.c htons(n), 0); htons 71 net/netfilter/xt_sctp.c ++i, offset, sch->type, htons(sch->length), sch->flags); htons 55 net/netrom/nr_dev.c skb->protocol = htons(ETH_P_IP); htons 166 net/phonet/af_phonet.c skb->protocol = htons(ETH_P_PHONET); htons 63 net/phonet/pep-gprs.c return htons(ETH_P_IP); htons 65 net/phonet/pep-gprs.c return htons(ETH_P_IPV6); htons 176 net/phonet/pep-gprs.c case htons(ETH_P_IP): htons 177 net/phonet/pep-gprs.c case htons(ETH_P_IPV6): htons 151 net/rxrpc/af_rxrpc.c service_id = htons(srx->srx_service); htons 300 net/rxrpc/af_rxrpc.c service_id = htons(srx->srx_service); htons 423 net/rxrpc/af_rxrpc.c rx->service_id = htons(srx->srx_service); htons 937 net/rxrpc/ar-ack.c ack.bufferSpace = htons(8); htons 1047 net/rxrpc/ar-ack.c ack.bufferSpace = htons(8); htons 1162 net/rxrpc/ar-ack.c ack.maxSkew = htons(atomic_read(&call->conn->hi_serial) - htons 155 net/rxrpc/ar-output.c service_id = htons(srx->srx_service); htons 53 net/rxrpc/ar-peer.c fl.uli_u.ports.sport = htons(7001); htons 54 net/rxrpc/ar-peer.c fl.uli_u.ports.dport = htons(7000); htons 300 net/rxrpc/rxkad.c sp->hdr.cksum = htons(y); htons 536 net/rxrpc/rxkad.c cksum = htons(y); htons 167 net/sched/act_nat.c switch (iph->frag_off & htons(IP_OFFSET) ? 0 : iph->protocol) { htons 70 net/sched/cls_flow.c case htons(ETH_P_IP): htons 72 net/sched/cls_flow.c case htons(ETH_P_IPV6): htons 82 net/sched/cls_flow.c case htons(ETH_P_IP): htons 84 net/sched/cls_flow.c case htons(ETH_P_IPV6): htons 94 net/sched/cls_flow.c case htons(ETH_P_IP): htons 96 net/sched/cls_flow.c case htons(ETH_P_IPV6): htons 123 net/sched/cls_flow.c case htons(ETH_P_IP): { htons 126 net/sched/cls_flow.c if (!(iph->frag_off&htons(IP_MF|IP_OFFSET)) && htons 131 net/sched/cls_flow.c case htons(ETH_P_IPV6): { htons 150 net/sched/cls_flow.c case htons(ETH_P_IP): { htons 153 net/sched/cls_flow.c if (!(iph->frag_off&htons(IP_MF|IP_OFFSET)) && htons 158 net/sched/cls_flow.c case htons(ETH_P_IPV6): { htons 216 net/sched/cls_flow.c case htons(ETH_P_IP): htons 218 net/sched/cls_flow.c case htons(ETH_P_IPV6): htons 228 net/sched/cls_flow.c case htons(ETH_P_IP): htons 230 net/sched/cls_flow.c case htons(ETH_P_IPV6): htons 163 net/sched/cls_rsvp.h if (nhptr->frag_off & htons(IP_MF|IP_OFFSET)) htons 1611 net/sched/sch_api.c tp->protocol == htons(ETH_P_ALL)) && htons 205 net/sched/sch_dsmark.c case htons(ETH_P_IP): htons 213 net/sched/sch_dsmark.c case htons(ETH_P_IPV6): htons 292 net/sched/sch_dsmark.c case htons(ETH_P_IP): htons 296 net/sched/sch_dsmark.c case htons(ETH_P_IPV6): htons 122 net/sched/sch_sfq.c case htons(ETH_P_IP): htons 127 net/sched/sch_sfq.c if (!(iph->frag_off&htons(IP_MF|IP_OFFSET)) && htons 137 net/sched/sch_sfq.c case htons(ETH_P_IPV6): htons 329 net/sctp/associola.c p->length = htons(sizeof(sctp_paramhdr_t) + SCTP_AUTH_RANDOM_LENGTH); htons 1005 net/sctp/associola.c if ((htons(asoc->base.bind_addr.port) == laddr->v4.sin_port) && htons 1006 net/sctp/associola.c (htons(asoc->peer.port) == paddr->v4.sin_port)) { htons 771 net/sctp/auth.c p->param_hdr.length = htons(param_len + 1); htons 804 net/sctp/auth.c ep->auth_hmacs_list->param_hdr.length = htons(sizeof(sctp_paramhdr_t) + htons 183 net/sctp/bind_addr.c addr->a.v4.sin_port = htons(bp->port); htons 309 net/sctp/bind_addr.c af->from_addr_param(&addr, rawaddr, htons(port), 0); htons 101 net/sctp/endpointola.c htons(sizeof(sctp_paramhdr_t) + 2); htons 102 net/sctp/endpointola.c auth_hmacs->hmac_ids[0] = htons(SCTP_AUTH_HMAC_ID_SHA1); htons 106 net/sctp/endpointola.c auth_chunks->param_hdr.length = htons(sizeof(sctp_paramhdr_t)); htons 114 net/sctp/endpointola.c auth_chunks->param_hdr.length += htons(2); htons 309 net/sctp/endpointola.c if (htons(ep->base.bind_addr.port) == laddr->v4.sin_port) { htons 481 net/sctp/ipv6.c param->v6.param_hdr.length = htons(length); htons 679 net/sctp/ipv6.c newinet->dport = htons(asoc->peer.port); htons 763 net/sctp/ipv6.c sin6->sin6_port = htons(asoc->peer.port); htons 417 net/sctp/output.c sh->source = htons(packet->source_port); htons 418 net/sctp/output.c sh->dest = htons(packet->destination_port); htons 331 net/sctp/protocol.c param->v4.param_hdr.length = htons(length); htons 505 net/sctp/protocol.c sctp_v4_dst_saddr(&dst_saddr, dst, htons(bp->port)); htons 567 net/sctp/protocol.c saddr->v4.sin_port = htons(asoc->base.bind_addr.port); htons 618 net/sctp/protocol.c newinet->dport = htons(asoc->peer.port); htons 795 net/sctp/protocol.c sin->sin_port = htons(asoc->peer.port); htons 123 net/sctp/sm_make_chunk.c err.length = htons(len); htons 202 net/sctp/sm_make_chunk.c init.num_outbound_streams = htons(asoc->c.sinit_num_ostreams); htons 203 net/sctp/sm_make_chunk.c init.num_inbound_streams = htons(asoc->c.sinit_max_instreams); htons 286 net/sctp/sm_make_chunk.c sat.param_hdr.length = htons(SCTP_SAT_LEN(num_types)); htons 298 net/sctp/sm_make_chunk.c htons(sizeof(sctp_supported_ext_param_t) + num_ext); htons 308 net/sctp/sm_make_chunk.c aiparam.param_hdr.length = htons(sizeof(aiparam)); htons 354 net/sctp/sm_make_chunk.c initack.num_outbound_streams = htons(asoc->c.sinit_num_ostreams); htons 355 net/sctp/sm_make_chunk.c initack.num_inbound_streams = htons(asoc->c.sinit_max_instreams); htons 427 net/sctp/sm_make_chunk.c htons(sizeof(sctp_supported_ext_param_t) + num_ext); htons 436 net/sctp/sm_make_chunk.c aiparam.param_hdr.length = htons(sizeof(aiparam)); htons 671 net/sctp/sm_make_chunk.c dp.stream = htons(sinfo->sinfo_stream); htons 679 net/sctp/sm_make_chunk.c dp.ssn = htons(ssn); htons 718 net/sctp/sm_make_chunk.c sack.num_gap_ack_blocks = htons(num_gabs); htons 719 net/sctp/sm_make_chunk.c sack.num_dup_tsns = htons(num_dup_tsns); htons 984 net/sctp/sm_make_chunk.c chunk->chunk_hdr->length = htons(chunklen + len); htons 1008 net/sctp/sm_make_chunk.c phdr.type = htons(chunk->chunk_hdr->type); htons 1155 net/sctp/sm_make_chunk.c auth_hdr.hmac_id = htons(hmac_desc->hmac_id); htons 1156 net/sctp/sm_make_chunk.c auth_hdr.shkey_id = htons(asoc->active_key_id); htons 1166 net/sctp/sm_make_chunk.c htons(ntohs(retval->chunk_hdr->length) + hmac_desc->hmac_len); htons 1275 net/sctp/sm_make_chunk.c chunk_hdr->length = htons(sizeof(sctp_chunkhdr_t)); htons 1353 net/sctp/sm_make_chunk.c chunk->chunk_hdr->length = htons(chunklen + padlen + len); htons 1378 net/sctp/sm_make_chunk.c htons(ntohs(chunk->chunk_hdr->length) + len); htons 1417 net/sctp/sm_make_chunk.c lchunk->subh.data_hdr->ssn = htons(ssn); htons 1511 net/sctp/sm_make_chunk.c retval->p.length = htons(*cookie_len); htons 2389 net/sctp/sm_make_chunk.c af->from_addr_param(&addr, param.addr, htons(asoc->peer.port), 0); htons 2484 net/sctp/sm_make_chunk.c htons(asoc->peer.port), 0); htons 2707 net/sctp/sm_make_chunk.c param.param_hdr.length = htons(paramlen + addr_param_len); htons 2753 net/sctp/sm_make_chunk.c param.param_hdr.length = htons(len); htons 2823 net/sctp/sm_make_chunk.c ack_param.param_hdr.length = htons(sizeof(ack_param) + htons 2834 net/sctp/sm_make_chunk.c err_param.length = htons(err_param_len + asconf_param_len); htons 2872 net/sctp/sm_make_chunk.c af->from_addr_param(&addr, addr_param, htons(asoc->peer.port), 0); htons 3114 net/sctp/sm_make_chunk.c af->from_addr_param(&addr, addr_param, htons(bp->port), 0); htons 935 net/sctp/sm_statefuns.c hbinfo.param_hdr.length = htons(sizeof(sctp_sender_hb_info_t)); htons 1195 net/sctp/sm_statefuns.c errhdr->length = htons(len); htons 2272 net/sctp/sm_statefuns.c bht.param_hdr.length = htons(sizeof(bht)); htons 390 net/sctp/socket.c addr->v4.sin_port = htons(snum); htons 406 net/sctp/socket.c inet_sk(sk)->sport = htons(inet_sk(sk)->num); htons 658 net/sctp/socket.c if (sa_addr->v4.sin_port != htons(bp->port)) { htons 1109 net/sctp/socket.c inet_sk(sk)->dport = htons(asoc->peer.port); htons 4479 net/sctp/socket.c temp.v4.sin_port = htons(port); htons 4518 net/sctp/socket.c temp.v4.sin_port = htons(port); htons 5703 net/sctp/socket.c addr.v4.sin_port = htons(snum); htons 6007 net/sctp/socket.c port = htons(inet_sk(sk)->num); htons 352 net/sctp/tsnmap.c gabs[ngaps].start = htons(start); htons 353 net/sctp/tsnmap.c gabs[ngaps].end = htons(end); htons 101 net/sunrpc/auth_gss/gss_krb5_seal.c *(__be16 *)(ptr + 2) = htons(SGN_ALG_DES_MAC_MD5); htons 176 net/sunrpc/auth_gss/gss_krb5_wrap.c *(__be16 *)(ptr + 2) = htons(SGN_ALG_DES_MAC_MD5); htons 178 net/sunrpc/auth_gss/gss_krb5_wrap.c *(__be16 *)(ptr + 4) = htons(SEAL_ALG_DES); htons 124 net/sunrpc/rpcb_clnt.c .sin_port = htons(RPCBIND_PORT), htons 130 net/sunrpc/rpcb_clnt.c .sin6_port = htons(RPCBIND_PORT), htons 167 net/sunrpc/rpcb_clnt.c ((struct sockaddr_in *)srvaddr)->sin_port = htons(RPCBIND_PORT); htons 170 net/sunrpc/rpcb_clnt.c ((struct sockaddr_in6 *)srvaddr)->sin6_port = htons(RPCBIND_PORT); htons 741 net/sunrpc/svc.c .sin_port = htons(port), htons 777 net/sunrpc/svc.c .sin6_port = htons(port), htons 169 net/sunrpc/svc_xprt.c .sin_port = htons(port), htons 174 net/sunrpc/svc_xprt.c .sin6_port = htons(port), htons 219 net/sunrpc/svcauth_unix.c addr.s6_addr16[0] = htons(b1); htons 220 net/sunrpc/svcauth_unix.c addr.s6_addr16[1] = htons(b2); htons 221 net/sunrpc/svcauth_unix.c addr.s6_addr16[2] = htons(b3); htons 222 net/sunrpc/svcauth_unix.c addr.s6_addr16[3] = htons(b4); htons 223 net/sunrpc/svcauth_unix.c addr.s6_addr16[4] = htons(b5); htons 224 net/sunrpc/svcauth_unix.c addr.s6_addr16[5] = htons(b6); htons 225 net/sunrpc/svcauth_unix.c addr.s6_addr16[6] = htons(b7); htons 226 net/sunrpc/svcauth_unix.c addr.s6_addr16[7] = htons(b8); htons 471 net/sunrpc/xprtrdma/transport.c sap->sin_port = htons(port); htons 473 net/sunrpc/xprtrdma/transport.c sap->sin_port = htons(port); htons 1322 net/sunrpc/xprtsock.c ((struct sockaddr_in *)addr)->sin_port = htons(port); htons 1325 net/sunrpc/xprtsock.c ((struct sockaddr_in6 *)addr)->sin6_port = htons(port); htons 1365 net/sunrpc/xprtsock.c myaddr.sin_port = htons(port); htons 1398 net/sunrpc/xprtsock.c myaddr.sin6_port = htons(port); htons 1947 net/sunrpc/xprtsock.c if (((struct sockaddr_in *)addr)->sin_port != htons(0)) htons 1955 net/sunrpc/xprtsock.c if (((struct sockaddr_in6 *)addr)->sin6_port != htons(0)) htons 2014 net/sunrpc/xprtsock.c if (((struct sockaddr_in *)addr)->sin_port != htons(0)) htons 2021 net/sunrpc/xprtsock.c if (((struct sockaddr_in6 *)addr)->sin6_port != htons(0)) htons 100 net/tipc/config.c tlv->tlv_type = htons(tlv_type); htons 101 net/tipc/config.c tlv->tlv_len = htons(TLV_LENGTH(tlv_data_size)); htons 655 net/tipc/config.c rep_hdr->tcm_flags &= htons(~TCM_F_REQUEST); htons 154 net/tipc/eth_media.c eb_ptr->tipc_packet_type.type = htons(ETH_P_TIPC); htons 280 net/wanrouter/wanmain.c *((unsigned short*)&skb->data[5]) = htons(type); htons 311 net/wanrouter/wanmain.c ethertype = htons(ETH_P_IP); htons 161 net/x25/x25_dev.c skb->protocol = htons(ETH_P_X25); htons 188 net/x25/x25_dev.c skb->protocol = htons(ETH_P_X25); htons 215 net/x25/x25_dev.c skb->protocol = htons(ETH_P_X25); htons 193 net/xfrm/xfrm_ipcomp.c ipch->cpi = htons((u16 )ntohl(x->id.spi)); htons 3752 security/selinux/hooks.c ad.u.net.sport = htons(snum); htons 3785 security/selinux/hooks.c ad.u.net.sport = htons(snum); htons 3844 security/selinux/hooks.c ad.u.net.dport = htons(snum); htons 4140 security/selinux/hooks.c if (family == PF_INET6 && skb->protocol == htons(ETH_P_IP)) htons 4239 security/selinux/hooks.c if (skb && skb->protocol == htons(ETH_P_IP)) htons 4241 security/selinux/hooks.c else if (skb && skb->protocol == htons(ETH_P_IPV6)) htons 4314 security/selinux/hooks.c if (family == PF_INET6 && skb->protocol == htons(ETH_P_IP)) htons 4358 security/selinux/hooks.c if (family == PF_INET6 && skb->protocol == htons(ETH_P_IP))