Searched refs:htons (Results 76 - 100 of 963) sorted by relevance

1234567891011>>

/linux-master/net/netfilter/
H A Dnft_chain_filter.c171 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 Dxt_HL.c57 csum_replace2(&iph->check, htons(iph->ttl << 8),
58 htons(new_ttl << 8));
H A Dnf_nat_ovs.c27 if (proto == htons(ETH_P_IP) &&
33 } else if (IS_ENABLED(CONFIG_IPV6) && proto == htons(ETH_P_IPV6)) {
H A Dnft_queue.c160 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 Dgeneric.h53 * htons(__u16 x)
132 #undef htons macro
141 #define htons(x) ___htons(x) macro
/linux-master/tools/testing/selftests/net/
H A Dsctp_hello.c17 a->sin_port = htons(atoi(port));
24 a->sin6_port = htons(atoi(port));
H A Dpsock_lib.h90 saddr.sin_port = htons(port);
95 daddr.sin_port = htons(port + 1);
H A Dreuseport_bpf_cpu.c47 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 Dreuseport_addr_any.c51 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 Dreuseport_bpf_numa.c43 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 Dsk_bind_sendto_listen.c13 .sin6_port = htons(20000),
H A Dsk_connect_zero_addr.c13 .sin6_port = htons(20000),
/linux-master/net/bridge/
H A Dbr_arp_nd_proxy.c143 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 Dnsh.h287 = (nsh->ver_flags_ttl_len & ~htons(xmask)) | htons(xflag);
/linux-master/tools/testing/selftests/netfilter/
H A Dsctp_collision.c30 saddr.sin_port = htons(atoi(argv[3]));
46 daddr.sin_port = htons(atoi(argv[5]));
/linux-master/net/hsr/
H A Dhsr_forward.c52 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 Daarp.c121 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 Dflow_netlink.c184 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 Dstmmac_selftests.c119 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 Debt_among.c73 if (eth_hdr(skb)->h_proto == htons(ETH_P_IP)) {
81 } else if (eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) {
104 if (eth_hdr(skb)->h_proto == htons(ETH_P_IP)) {
112 } else if (eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) {
/linux-master/net/ipv6/netfilter/
H A Dip6t_eui64.c33 if (eth_hdr(skb)->h_proto == htons(ETH_P_IPV6)) {
/linux-master/fs/afs/
H A Dxdr_fs.h77 #define AFS_DIR_MAGIC htons(1234)
/linux-master/drivers/net/netdevsim/
H A Dpsample.c55 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 Dsriov.h36 if (vlan_proto != htons(ETH_P_8021Q))
/linux-master/drivers/net/ethernet/sfc/
H A Dsriov.c31 if (vlan_proto != htons(ETH_P_8021Q))

Completed in 423 milliseconds

1234567891011>>