Searched refs:htons (Results 226 - 250 of 963) sorted by relevance

1234567891011>>

/linux-master/net/bridge/netfilter/
H A Dnft_reject_bridge.c122 case htons(ETH_P_IP): function
143 case htons(ETH_P_IPV6): function
/linux-master/drivers/net/wireguard/selftest/
H A Dratelimiter.c150 skb4->protocol = htons(ETH_P_IP);
162 skb6->protocol = htons(ETH_P_IPV6);
/linux-master/drivers/net/wireless/microchip/wilc1000/
H A Dmon.c92 skb->protocol = htons(ETH_P_802_2);
185 skb2->protocol = htons(ETH_P_802_2);
/linux-master/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-ethtool.c417 *(__be16 *)(key + off) = htons(tmp_value >> 16);
418 *(__be16 *)(mask + off) = htons(tmp_mask >> 16);
422 *(__be16 *)(key + off) = htons(tmp_value & 0xFFFF);
423 *(__be16 *)(mask + off) = htons(tmp_mask & 0xFFFF);
429 *(__be16 *)(key + off) = htons(ETH_P_IP);
430 *(__be16 *)(mask + off) = htons(0xFFFF);
475 *(__be16 *)(key + off) = htons(ETH_P_IP);
476 *(__be16 *)(mask + off) = htons(0xFFFF);
/linux-master/net/core/
H A Dnetpoll.c432 udph->source = htons(np->local_port);
433 udph->dest = htons(np->remote_port);
434 udph->len = htons(udp_len);
455 ip6h->payload_len = htons(sizeof(struct udphdr) + len);
463 skb->protocol = eth->h_proto = htons(ETH_P_IPV6);
480 put_unaligned(htons(ip_len), &(iph->tot_len));
481 iph->id = htons(atomic_inc_return(&ip_ident));
492 skb->protocol = eth->h_proto = htons(ETH_P_IP);
/linux-master/drivers/net/ethernet/mediatek/
H A Dmtk_ppe_debugfs.c154 *((__be16 *)&h_source[4]) = htons(l2->src_mac_lo);
156 *((__be16 *)&h_dest[4]) = htons(l2->dest_mac_lo);
/linux-master/net/tipc/
H A Dudp_media.c176 if (dst->proto == htons(ETH_P_IP)) {
247 skb_set_inner_protocol(skb, htons(ETH_P_TIPC));
345 src.proto = htons(ETH_P_IP);
353 src.proto = htons(ETH_P_IPV6);
591 addr->proto = htons(ETH_P_IP);
600 addr->proto = htons(ETH_P_IPV6);
726 if (local.proto == htons(ETH_P_IP)) {
744 } else if (local.proto == htons(ETH_P_IPV6)) {
/linux-master/net/rds/
H A Drdma_transport.c257 sin.sin_port = htons(RDS_PORT);
267 sin6.sin6_port = htons(RDS_CM_PORT);
H A Dtcp_listen.c297 sin6->sin6_port = (__force u16)htons(RDS_TCP_PORT);
305 sin->sin_port = (__force u16)htons(RDS_TCP_PORT);
/linux-master/drivers/net/wireless/marvell/mwifiex/
H A Dsta_rx.c35 if (arp->hdr.ar_op == htons(ARPOP_REPLY) ||
36 arp->hdr.ar_op == htons(ARPOP_REQUEST)) {
/linux-master/drivers/net/wwan/iosm/
H A Diosm_ipc_wwan.c228 skb->protocol = htons(ETH_P_IP);
231 skb->protocol = htons(ETH_P_IPV6);
/linux-master/net/sched/
H A Dsch_frag.c94 if (skb_protocol(skb, true) == htons(ETH_P_IP)) {
109 } else if (skb_protocol(skb, true) == htons(ETH_P_IPV6)) {
/linux-master/net/netfilter/
H A Dnft_fwd_netdev.c110 if (skb->protocol != htons(ETH_P_IP)) {
126 if (skb->protocol != htons(ETH_P_IPV6)) {
/linux-master/net/dsa/
H A Dtag_ocelot.c177 eth_hdr(skb)->h_proto == htons(vlan_tpid)) {
183 __vlan_hwaccel_put_tag(skb, htons(vlan_tpid), vlan_tci);
/linux-master/include/linux/
H A Dvirtio_net.h134 skb->protocol == htons(ETH_P_IP)) {
135 skb->protocol = htons(ETH_P_IPV6);
/linux-master/net/ipv6/
H A Dip6_udp_tunnel.c95 uh->len = htons(skb->len);
105 ip6h->payload_len = htons(skb->len);
/linux-master/net/xfrm/
H A Dxfrm_input.c184 skb->protocol = htons(ETH_P_IP);
216 iph->tot_len = htons(skb->len);
238 skb->protocol = htons(ETH_P_IP);
275 skb->protocol = htons(ETH_P_IPV6);
306 skb->protocol = htons(ETH_P_IPV6);
319 ip6h->payload_len = htons(skb->len - size);
399 ip_hdr(skb)->tot_len = htons(skb->len + ihl);
414 ipv6_hdr(skb)->payload_len = htons(skb->len + ihl -
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dlwt_redirect.c112 .sll_protocol = htons(ETH_P_IP),
149 if (eth->h_proto == htons(ETH_P_IP))
H A Dip_check_defrag.c226 c->sin6_port = htons(CLIENT_PORT);
233 c->sin_port = htons(CLIENT_PORT);
/linux-master/net/sunrpc/
H A Daddr.c345 ((struct sockaddr_in *)sap)->sin_port = htons(port);
348 ((struct sockaddr_in6 *)sap)->sin6_port = htons(port);
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dselq.c145 if (skb->protocol == htons(ETH_P_IP))
147 else if (skb->protocol == htons(ETH_P_IPV6))
/linux-master/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_txrx.c680 htons(ext->lso_sb - skb_network_offset(skb));
683 ipv6_hdr(skb)->payload_len = htons(tcp_hdrlen(skb));
696 iplen = htons(ext->lso_sb - skb_network_offset(skb));
697 if (l3_proto == htons(ETH_P_IP)) {
705 udph->len = htons(sizeof(struct udphdr));
713 if (skb->vlan_proto == htons(ETH_P_8021Q)) {
717 } else if (skb->vlan_proto == htons(ETH_P_8021AD)) {
780 if (skb->protocol == htons(ETH_P_IP)) {
786 } else if (skb->protocol == htons(ETH_P_IPV6)) {
1009 if (udph->source == htons(PTP_POR
[all...]
/linux-master/drivers/scsi/fnic/
H A Dfnic_fcs.c392 vlan->eth.h_proto = htons(ETH_P_FIP);
395 vlan->fip.fip_op = htons(FIP_OP_VLAN);
397 vlan->fip.fip_dl_len = htons(sizeof(vlan->desc) / FIP_BPW);
409 skb->protocol = htons(ETH_P_FIP);
627 if (eh->h_proto == htons(ETH_P_FIP)) {
670 if (eh->h_proto == htons(ETH_P_8021Q)) {
675 if (eh->h_proto == htons(ETH_P_FIP)) {
690 if (eh->h_proto != htons(ETH_P_FCOE))
1030 vlan_hdr->h_vlan_proto = htons(ETH_P_8021Q);
1032 vlan_hdr->h_vlan_TCI = htons(fni
[all...]
/linux-master/drivers/net/ethernet/brocade/bna/
H A Dbfa_msgq.c193 dbell->idx.cmdq_pi = htons(cmdq->producer_index);
284 rsp->mh.mtag.i2htok = htons(cmdq->token);
449 dbell->idx.rspq_ci = htons(rspq->consumer_index);
516 msgq_cfg->cmdq.q_depth = htons(msgq->cmdq.depth);
518 msgq_cfg->rspq.q_depth = htons(msgq->rspq.depth);
/linux-master/drivers/staging/octeon/
H A Dethernet-tx.c363 if ((skb->protocol == htons(ETH_P_IP)) &&
367 (ip_hdr(skb)->frag_off == htons(1 << 14))) &&
575 if (skb->protocol == htons(ETH_P_IP)) {
628 work->word2.snoip.is_rarp = skb->protocol == htons(ETH_P_RARP);
629 work->word2.snoip.is_arp = skb->protocol == htons(ETH_P_ARP);

Completed in 229 milliseconds

1234567891011>>