Searched refs:htons (Results 76 - 100 of 963) sorted by relevance
1234567891011>>
/linux-master/net/netfilter/ |
H A D | nft_chain_filter.c | 171 case htons(ETH_P_IP): 180 case htons(ETH_P_IPV6): 240 case htons(ETH_P_IP): 243 case htons(ETH_P_IPV6): 295 case htons(ETH_P_IP): 298 case htons(ETH_P_IPV6):
|
H A D | xt_HL.c | 57 csum_replace2(&iph->check, htons(iph->ttl << 8), 58 htons(new_ttl << 8));
|
H A D | nf_nat_ovs.c | 27 if (proto == htons(ETH_P_IP) && 33 } else if (IS_ENABLED(CONFIG_IPV6) && proto == htons(ETH_P_IPV6)) {
|
H A D | nft_queue.c | 160 if (nla_put_be16(skb, NFTA_QUEUE_NUM, htons(priv->queuenum)) || 161 nla_put_be16(skb, NFTA_QUEUE_TOTAL, htons(priv->queues_total)) || 162 nla_put_be16(skb, NFTA_QUEUE_FLAGS, htons(priv->flags))) 178 nla_put_be16(skb, NFTA_QUEUE_FLAGS, htons(priv->flags)))
|
/linux-master/include/linux/byteorder/ |
H A D | generic.h | 53 * htons(__u16 x) 132 #undef htons macro 141 #define htons(x) ___htons(x) macro
|
/linux-master/tools/testing/selftests/net/ |
H A D | sctp_hello.c | 17 a->sin_port = htons(atoi(port)); 24 a->sin6_port = htons(atoi(port));
|
H A D | psock_lib.h | 90 saddr.sin_port = htons(port); 95 daddr.sin_port = htons(port + 1);
|
H A D | reuseport_bpf_cpu.c | 47 addr4->sin_port = htons(PORT); 53 addr6->sin6_port = htons(PORT); 112 daddr4->sin_port = htons(PORT); 123 daddr6->sin6_port = htons(PORT);
|
H A D | reuseport_addr_any.c | 51 addr4.sin_port = htons(PORT); 61 addr6.sin6_port = htons(PORT); 119 daddr4.sin_port = htons(PORT); 132 daddr6.sin6_port = htons(PORT);
|
H A D | reuseport_bpf_numa.c | 43 addr4->sin_port = htons(PORT); 49 addr6->sin6_port = htons(PORT); 124 daddr4->sin_port = htons(PORT); 135 daddr6->sin6_port = htons(PORT);
|
H A D | sk_bind_sendto_listen.c | 13 .sin6_port = htons(20000),
|
H A D | sk_connect_zero_addr.c | 13 .sin6_port = htons(20000),
|
/linux-master/net/bridge/ |
H A D | br_arp_nd_proxy.c | 143 if (parp->ar_pro != htons(ETH_P_IP) || 163 if (parp->ar_op != htons(ARPOP_RREQUEST) && 164 parp->ar_op != htons(ARPOP_RREPLY) && 172 if (parp->ar_op != htons(ARPOP_REQUEST)) 274 reply->protocol = htons(ETH_P_IPV6); 299 eth_hdr(reply)->h_proto = htons(ETH_P_IPV6); 300 reply->protocol = htons(ETH_P_IPV6); 338 pip6->payload_len = htons(sizeof(*na) + na_olen);
|
/linux-master/include/net/ |
H A D | nsh.h | 287 = (nsh->ver_flags_ttl_len & ~htons(xmask)) | htons(xflag);
|
/linux-master/tools/testing/selftests/netfilter/ |
H A D | sctp_collision.c | 30 saddr.sin_port = htons(atoi(argv[3])); 46 daddr.sin_port = htons(atoi(argv[5]));
|
/linux-master/net/hsr/ |
H A D | hsr_forward.c | 52 if (!(eth_hdr->h_proto == htons(ETH_P_PRP) || 53 eth_hdr->h_proto == htons(ETH_P_HSR))) 57 if (eth_hdr->h_proto == htons(ETH_P_HSR)) { /* Okay HSRv1. */ 63 if (hsr_V1_hdr->hsr.encap_proto != htons(ETH_P_PRP)) 229 trailer->sequence_nr = htons(frame->sequence_nr); 230 trailer->PRP_suffix = htons(ETH_P_PRP); 268 hsr_ethhdr->hsr_tag.sequence_nr = htons(frame->sequence_nr); 270 hsr_ethhdr->ethhdr.h_proto = htons(proto_version ? 523 if ((!hsr->prot_version && proto == htons(ETH_P_PRP)) || 524 proto == htons(ETH_P_HS [all...] |
/linux-master/net/appletalk/ |
H A D | aarp.c | 121 skb->protocol = htons(ETH_P_ATALK); 126 eah->hw_type = htons(AARP_HW_TYPE_ETHERNET); 127 eah->pa_type = htons(ETH_P_ATALK); 130 eah->function = htons(AARP_REQUEST); 168 skb->protocol = htons(ETH_P_ATALK); 173 eah->hw_type = htons(AARP_HW_TYPE_ETHERNET); 174 eah->pa_type = htons(ETH_P_ATALK); 177 eah->function = htons(AARP_REPLY); 219 skb->protocol = htons(ETH_P_ATALK); 224 eah->hw_type = htons(AARP_HW_TYPE_ETHERNE [all...] |
/linux-master/net/openvswitch/ |
H A D | flow_netlink.c | 184 if (match->key->eth.type == htons(ETH_P_ARP) 185 || match->key->eth.type == htons(ETH_P_RARP)) { 187 if (match->mask && (match->mask->key.eth.type == htons(0xffff))) 193 if (match->mask && (match->mask->key.eth.type == htons(0xffff))) 197 if (match->key->eth.type == htons(ETH_P_IP)) { 199 if (match->mask && match->mask->key.eth.type == htons(0xffff)) { 234 if (match->key->eth.type == htons(ETH_P_IPV6)) { 236 if (match->mask && match->mask->key.eth.type == htons(0xffff)) { 269 htons(NDISC_NEIGHBOUR_SOLICITATION) || 270 match->key->tp.src == htons(NDISC_NEIGHBOUR_ADVERTISEMEN [all...] |
/linux-master/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_selftests.c | 119 ehdr->h_proto = htons(ETH_P_IP); 124 ptr[3] = htons(ETH_P_IP); 138 proto[0] = htons(ETH_P_8021Q); 139 tag[0] = htons(attr->vlan_id_out); 140 tag[1] = htons(ETH_P_IP); 142 proto[0] = htons(ETH_P_8021AD); 143 tag[1] = htons(ETH_P_8021Q); 144 tag[2] = htons(attr->vlan_id_in); 145 tag[3] = htons(ETH_P_IP); 150 thdr->source = htons(att [all...] |
/linux-master/net/bridge/netfilter/ |
H A D | ebt_among.c | 73 if (eth_hdr(skb)->h_proto == htons(ETH_P_IP)) { 81 } else if (eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) { 104 if (eth_hdr(skb)->h_proto == htons(ETH_P_IP)) { 112 } else if (eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) {
|
/linux-master/net/ipv6/netfilter/ |
H A D | ip6t_eui64.c | 33 if (eth_hdr(skb)->h_proto == htons(ETH_P_IPV6)) {
|
/linux-master/fs/afs/ |
H A D | xdr_fs.h | 77 #define AFS_DIR_MAGIC htons(1234)
|
/linux-master/drivers/net/netdevsim/ |
H A D | psample.c | 55 eth->h_proto = htons(ETH_P_IP); 56 skb->protocol = htons(ETH_P_IP); 66 iph->tot_len = htons(tot_len); 76 udph->len = htons(sizeof(struct udphdr) + data_len);
|
/linux-master/drivers/net/ethernet/sfc/siena/ |
H A D | sriov.h | 36 if (vlan_proto != htons(ETH_P_8021Q))
|
/linux-master/drivers/net/ethernet/sfc/ |
H A D | sriov.c | 31 if (vlan_proto != htons(ETH_P_8021Q))
|
Completed in 423 milliseconds
1234567891011>>