Searched refs:htons (Results 1 - 25 of 963) sorted by last modified time

1234567891011>>

/linux-master/net/rxrpc/
H A Dtxbuf.c73 whdr->serviceId = htons(call->dest_srx.srx_service);
150 whdr->serviceId = htons(call->dest_srx.srx_service);
H A Drxkad.c383 txb->cksum = htons(y);
660 whdr.serviceId = htons(conn->service_id);
715 whdr.serviceId = htons(hdr->serviceId);
/linux-master/net/nsh/
H A Dnsh.c39 skb->protocol = htons(ETH_P_NSH);
106 skb->mac_len = proto == htons(ETH_P_TEB) ? ETH_HLEN : 0;
112 skb_gso_error_unwind(skb, htons(ETH_P_NSH), nsh_len,
130 .type = htons(ETH_P_NSH),
/linux-master/net/ipv6/
H A Dudp_offload.c173 uh->len = htons(skb->len - nhoff);
H A Dudp.c351 is_udp4 = (skb->protocol == htons(ETH_P_IP));
1231 uh->len = htons(len);
H A Dip6_offload.c170 ipv6h->payload_len = htons(payload_len);
181 fptr->frag_off = htons(offset);
183 fptr->frag_off |= htons(IP6_MF);
388 iph->payload_len = htons(payload_len);
/linux-master/net/ipv4/
H A Dudp_offload.c126 uh->len = htons(skb_shinfo(skb)->gso_size +
130 uh->len = htons(len);
260 udp_hdr(skb)->len = htons(sizeof(struct udphdr) + mss);
321 newlen = htons(sizeof(*uh) + mss);
348 newlen = htons(skb_tail_pointer(seg) - skb_transport_header(seg) +
694 __be16 newlen = htons(skb->len - nhoff);
737 uh->len = htons(skb->len - nhoff);
H A Dudp.c911 uh->len = htons(len);
H A Draw.c360 skb->protocol = htons(ETH_P_IP);
400 iph->tot_len = htons(length);
H A Dip_output.c23 * Mike Kilburn : htons() missing in ip_build_xmit.
116 skb->protocol = htons(ETH_P_IP);
171 iph->frag_off = htons(IP_DF);
375 skb->protocol = htons(ETH_P_IP);
431 skb->protocol = htons(ETH_P_IP);
512 *((__be16 *)iph) = htons((4 << 12) | (5 << 8) | (tos & 0xff));
514 iph->frag_off = htons(IP_DF);
583 if ((iph->frag_off & htons(IP_DF)) == 0)
613 iph->tot_len = htons(first_len);
614 iph->frag_off = htons(IP_M
[all...]
H A Daf_inet.c185 inet->inet_sport = htons(inet->inet_num);
376 inet->inet_sport = htons(inet->inet_num);
558 inet->inet_sport = htons(inet->inet_num);
1413 if (fixedid && !(ip_hdr(skb)->frag_off & htons(IP_DF)))
1433 iph->frag_off = htons(offset >> 3);
1435 iph->frag_off |= htons(IP_MF);
1440 iph->id = htons(id);
1452 iph->id = htons(id++);
1455 iph->tot_len = htons(tot_len);
1538 ((iph->frag_off ^ iph2->frag_off) & htons(IP_D
[all...]
/linux-master/net/core/
H A Dskbuff.c5747 if (hp->frag_off & htons(IP6_OFFSET | IP6_MF))
5789 case htons(ETH_P_IP):
5793 case htons(ETH_P_IPV6):
H A Dgro.c115 gro_max_size = p->protocol == htons(ETH_P_IPV6) ?
124 (p->protocol == htons(ETH_P_IPV6) &&
H A Dfilter.c2415 if (skb->protocol == htons(ETH_P_IP))
2417 else if (skb->protocol == htons(ETH_P_IPV6))
3174 if (unlikely(vlan_proto != htons(ETH_P_8021Q) &&
3175 vlan_proto != htons(ETH_P_8021AD)))
3176 vlan_proto = htons(ETH_P_8021Q);
3310 skb->protocol = htons(ETH_P_IPV6);
3340 skb->protocol = htons(ETH_P_IP);
3350 if (from_proto == htons(ETH_P_IP) &&
3351 to_proto == htons(ETH_P_IPV6))
3354 if (from_proto == htons(ETH_P_IPV
[all...]
/linux-master/net/8021q/
H A Dvlan_core.c171 if (proto == htons(ETH_P_8021Q) &&
174 if (proto == htons(ETH_P_8021AD) &&
/linux-master/drivers/s390/net/
H A Dqeth_core_main.c693 qeth_dst_check_rcu(skb, htons(ETH_P_IP)));
720 qeth_dst_check_rcu(skb, htons(ETH_P_IPV6)));
3851 case htons(ETH_P_IP):
3854 case htons(ETH_P_IPV6):
3876 if (veth->h_vlan_proto == htons(ETH_P_8021Q))
5521 __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), tag);
6900 case htons(ETH_P_IP):
6907 case htons(ETH_P_IPV6):
/linux-master/drivers/net/vxlan/
H A Dvxlan_core.c1673 __be16 protocol = htons(ETH_P_TEB);
1864 if ((parp->ar_hrd != htons(ARPHRD_ETHER) &&
1865 parp->ar_hrd != htons(ARPHRD_IEEE802)) ||
1866 parp->ar_pro != htons(ETH_P_IP) ||
1867 parp->ar_op != htons(ARPOP_REQUEST) ||
1955 reply->protocol = htons(ETH_P_IPV6);
1980 eth_hdr(reply)->h_proto = htons(ETH_P_IPV6);
1981 reply->protocol = htons(ETH_P_IPV6);
2016 pip6->payload_len = htons(sizeof(*na)+na_olen);
2186 __be16 inner_protocol = htons(ETH_P_TE
[all...]
/linux-master/drivers/net/ethernet/qlogic/qede/
H A Dqede_filter.c369 if (skb->protocol == htons(ETH_P_IP)) {
445 if (skb->protocol != htons(ETH_P_IP) &&
446 skb->protocol != htons(ETH_P_IPV6))
449 if (skb->protocol == htons(ETH_P_IP)) {
502 if (skb->protocol == htons(ETH_P_IP)) {
1342 if (fltr->tuple.eth_proto == htons(ETH_P_IP)) {
1403 if (t->eth_proto == htons(ETH_P_IP))
1419 if (a->eth_proto != htons(ETH_P_IP) ||
1420 b->eth_proto != htons(ETH_P_IP))
1461 if (a->eth_proto != htons(ETH_P_IPV
[all...]
/linux-master/drivers/net/ethernet/chelsio/cxgb4/
H A Dsge.c1242 if (skb->protocol != htons(ETH_P_FCOE))
1275 skb->inner_protocol != htons(ETH_P_TEB))
1279 case htons(ETH_P_IP):
1282 case htons(ETH_P_IPV6):
1336 htons(CPL_TX_TNL_LSO_UDPCHKCLROUT_F |
1345 htons(CPL_TX_TNL_LSO_TNLHDRLEN_V(val) |
1356 tnl_lso->IpIdOffset = htons(0);
1358 tnl_lso->IpIdSplit_to_Mss = htons(CPL_TX_TNL_LSO_MSS_V(ssi->gso_size));
1381 lso->ipid_ofst = htons(0);
1382 lso->mss = htons(ss
[all...]
/linux-master/drivers/net/ethernet/broadcom/genet/
H A Dbcmgenet.c630 val_16 = htons(ETH_P_IP);
2011 case htons(ETH_P_IP):
2014 case htons(ETH_P_IPV6):
/linux-master/drivers/net/dsa/mv88e6xxx/
H A Dchip.c2380 if (fs->m_ext.vlan_tci != htons(0xffff))
/linux-master/net/sunrpc/
H A Dxprtsock.c3299 if (((struct sockaddr_in *)addr)->sin_port != htons(0))
3305 if (((struct sockaddr_in6 *)addr)->sin6_port != htons(0))
3387 if (((struct sockaddr_in *)addr)->sin_port != htons(0))
3393 if (((struct sockaddr_in6 *)addr)->sin6_port != htons(0))
3475 if (((struct sockaddr_in *)addr)->sin_port != htons(0))
3481 if (((struct sockaddr_in6 *)addr)->sin6_port != htons(0))
/linux-master/net/openvswitch/
H A Dconntrack.c185 key->ct.orig_tp.src = htons(orig->dst.u.icmp.type);
186 key->ct.orig_tp.dst = htons(orig->dst.u.icmp.code);
211 if (key->eth.type == htons(ETH_P_IP) &&
217 } else if (key->eth.type == htons(ETH_P_IPV6) &&
305 if (swkey->eth.type == htons(ETH_P_IP)) {
318 } else if (swkey->eth.type == htons(ETH_P_IPV6)) {
618 if (key->eth.type == htons(ETH_P_IP))
620 else if (key->eth.type == htons(ETH_P_IPV6))
640 if (key->eth.type == htons(ETH_P_IP))
642 else if (key->eth.type == htons(ETH_P_IPV
[all...]
/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):
/linux-master/net/mac80211/
H A Dtx.c4391 if (ethertype == htons(ETH_P_8021Q) && skb->len >= VLAN_ETH_HLEN)
4394 case htons(ETH_P_ARP):
4395 case htons(ETH_P_IP):
4396 case htons(ETH_P_IPV6):
6266 skb->protocol = htons(ETH_P_802_3);

Completed in 352 milliseconds

1234567891011>>