Searched refs:htons (Results 126 - 150 of 963) sorted by relevance

1234567891011>>

/linux-master/include/linux/sunrpc/
H A Daddr.h39 ((struct sockaddr_in *)sap)->sin_port = htons(port);
42 ((struct sockaddr_in6 *)sap)->sin6_port = htons(port);
/linux-master/tools/testing/selftests/net/
H A Dtcp_inq.c46 addr4->sin_port = htons(port);
52 addr6->sin6_port = htons(port);
/linux-master/net/ipv4/netfilter/
H A Dipt_ECN.c38 csum_replace2(&iph->check, htons(oldtos), htons(iph->tos));
/linux-master/net/netfilter/
H A Dxt_TCPOPTSTRIP.c79 inet_proto_csum_replace2(&tcph->check, skb, htons(o),
80 htons(n), false);
H A Dxt_AUDIT.c83 case htons(ETH_P_IP):
86 case htons(ETH_P_IPV6):
H A Dnft_reject_netdev.c97 case htons(ETH_P_IP): function
118 case htons(ETH_P_IPV6): function
/linux-master/net/sched/
H A Dem_ipset.c63 case htons(ETH_P_IP):
69 case htons(ETH_P_IPV6):
/linux-master/net/8021q/
H A Dvlan.h42 case htons(ETH_P_8021Q):
44 case htons(ETH_P_8021AD):
H A Dvlan.c226 err = vlan_check_real_dev(real_dev, htons(ETH_P_8021Q), vlan_id,
270 vlan->vlan_proto = htons(ETH_P_8021Q);
385 vlan_vid_add(dev, htons(ETH_P_8021Q), 0);
389 vlan_vid_del(dev, htons(ETH_P_8021Q), 0);
507 err = vlan_filter_push_vids(vlan_info, htons(ETH_P_8021Q));
513 vlan_filter_drop_vids(vlan_info, htons(ETH_P_8021Q));
517 err = vlan_filter_push_vids(vlan_info, htons(ETH_P_8021AD));
523 vlan_filter_drop_vids(vlan_info, htons(ETH_P_8021AD));
/linux-master/drivers/infiniband/sw/rxe/
H A Drxe_icrc.c82 (skb->protocol == htons(ETH_P_IP) ?
96 if (skb->protocol == htons(ETH_P_IP)) { /* IPv4 */
/linux-master/net/rds/
H A Dtcp_connect.c158 sin6.sin6_port = htons(RDS_TCP_PORT);
166 sin.sin_port = htons(RDS_TCP_PORT);
/linux-master/net/dsa/
H A Dtag.h67 if (!skb_vlan_tag_present(skb) && skb->protocol == htons(proto)) {
97 upper_dev = __vlan_find_dev_deep_rcu(br, htons(proto), vid);
/linux-master/net/802/
H A Dfddi.c67 fddi->hdr.llc_snap.ethertype = htons(type);
109 type = htons(ETH_P_802_2);
/linux-master/tools/testing/selftests/bpf/
H A Dnetwork_helpers.h91 s += htons(proto + len);
110 s += htons(proto + len);
/linux-master/drivers/net/arcnet/
H A Drfc1201.c112 return htons(ETH_P_IP);
114 return htons(ETH_P_IPV6);
116 return htons(ETH_P_ARP);
118 return htons(ETH_P_RARP);
122 return htons(ETH_P_802_3);
129 return htons(ETH_P_IP);
424 soft->sequence = htons(lp->rfc1201.sequence++);
459 excsoft.sequence = htons(0xffff);
/linux-master/net/ipv4/
H A Dxfrm4_input.c62 iph->tot_len = htons(skb->len);
142 iph->tot_len = htons(ntohs(iph->tot_len) - len);
/linux-master/net/ipv6/
H A Doutput_core.c131 ipv6_hdr(skb)->payload_len = htons(len);
141 skb->protocol = htons(ETH_P_IPV6);
/linux-master/include/net/netfilter/
H A Dnf_queue.h87 case htons(ETH_P_IP):
93 case htons(ETH_P_IPV6):
/linux-master/arch/um/drivers/
H A Dslip_kern.c44 return htons(ETH_P_IP);
/linux-master/net/ipv6/netfilter/
H A Dnf_dup_ipv6.c42 skb->protocol = htons(ETH_P_IPV6);
/linux-master/drivers/scsi/csiostor/
H A Dcsio_mb.c322 cmdp->fcoecaps |= htons(FW_CAPS_CONFIG_FCOE_CTRL_OFLD);
324 cmdp->fcoecaps |= htons(FW_CAPS_CONFIG_FCOE_INITIATOR);
326 cmdp->fcoecaps |= htons(FW_CAPS_CONFIG_FCOE_TARGET);
461 cmdp->fl0size = htons(iq_params->fl0size);
462 cmdp->fl0size = htons(iq_params->fl1size);
511 cmdp->iqid |= htons(iq_params->iqid);
512 cmdp->fl0id |= htons(iq_params->fl0id);
513 cmdp->fl1id |= htons(iq_params->fl1id);
519 cmdp->iqdroprss_to_iqesize |= htons(
527 cmdp->iqsize |= htons(iq_param
[all...]
/linux-master/net/xfrm/
H A Dxfrm_inout.h30 XFRM_MODE_SKB_CB(skb)->frag_off = htons(IP_DF);
/linux-master/net/bridge/netfilter/
H A Debt_snat.c30 eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) {
/linux-master/tools/testing/selftests/netfilter/
H A Dnf-queue.c126 .pf = htons(AF_INET),
137 nfg->res_id = htons(queue_num);
160 nfg->res_id = htons(queue_num);
183 nfg->res_id = htons(queue_num);
/linux-master/drivers/net/ethernet/qualcomm/rmnet/
H A Drmnet_map_command.c61 skb->protocol = htons(ETH_P_MAP);

Completed in 267 milliseconds

1234567891011>>