Searched refs:htons (Results 276 - 300 of 963) sorted by relevance

<<11121314151617181920>>

/linux-master/tools/testing/selftests/net/tcp_ao/
H A Dicmps-accept.c171 iph->tot_len = htons(packet_len);
233 iph->payload_len = htons(packet_len);
333 dst_raw.sin6_port = htons(IPPROTO_RAW);
H A Dicmps-discard.c171 iph->tot_len = htons(packet_len);
233 iph->payload_len = htons(packet_len);
333 dst_raw.sin6_port = htons(IPPROTO_RAW);
/linux-master/net/netfilter/
H A Dnft_synproxy.c140 case htons(ETH_P_IP):
144 case htons(ETH_P_IPV6):
230 if (nla_put_be16(skb, NFTA_SYNPROXY_MSS, htons(priv->info.mss)) ||
H A Dnf_conntrack_ovs.c47 if (ofs < 0 || (frag_off & htons(~0x7)) != 0) {
H A Dnf_tables_offload.c63 (match->key.vlan.vlan_tpid == htons(ETH_P_8021Q) ||
64 match->key.vlan.vlan_tpid == htons(ETH_P_8021AD))) {
76 (match->key.basic.n_proto == htons(ETH_P_8021Q) ||
77 match->key.basic.n_proto == htons(ETH_P_8021AD))) {
/linux-master/net/sched/
H A Dact_vlan.c180 case htons(ETH_P_8021Q):
181 case htons(ETH_P_8021AD):
191 push_proto = htons(ETH_P_8021Q);
/linux-master/drivers/net/ethernet/sun/
H A Dsunvnet_common.c313 if (skb->protocol != htons(ETH_P_IP))
346 if (skb->protocol != htons(ETH_P_IPV6))
429 if (skb->protocol == htons(ETH_P_IP)) {
436 } else if (skb->protocol == htons(ETH_P_IPV6)) {
1175 if (skb->protocol == htons(ETH_P_IP)) {
1186 } else if (skb->protocol == htons(ETH_P_IPV6)) {
1234 if (skb->protocol == htons(ETH_P_IP))
1236 else if (skb->protocol == htons(ETH_P_IPV6))
1354 if (skb->protocol == htons(ETH_P_IP))
1358 else if (skb->protocol == htons(ETH_P_IPV
[all...]
/linux-master/net/bridge/
H A Dbr_input.c165 (skb->protocol == htons(ETH_P_ARP) ||
166 skb->protocol == htons(ETH_P_RARP))) {
169 skb->protocol == htons(ETH_P_IPV6) &&
/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...]
H A Dvport-vxlan.c93 conf.dst_port = htons(nla_get_u16(a));
/linux-master/net/ipv4/
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...]
H A Dip_forward.c48 if (unlikely((ip_hdr(skb)->frag_off & htons(IP_DF)) == 0))
/linux-master/drivers/scsi/fcoe/
H A Dfcoe_ctlr.c399 sol->eth.h_proto = htons(ETH_P_FIP);
402 sol->fip.fip_op = htons(FIP_OP_DISC);
404 sol->fip.fip_dl_len = htons(sizeof(sol->desc) / FIP_BPW);
405 sol->fip.fip_flags = htons(FIP_FL_FPMA);
407 sol->fip.fip_flags |= htons(FIP_FL_SPMA);
420 sol->desc.size.fd_size = htons(fcoe_size);
423 skb->protocol = htons(ETH_P_FIP);
558 kal->eth.h_proto = htons(ETH_P_FIP);
561 kal->fip.fip_op = htons(FIP_OP_CTRL);
563 kal->fip.fip_dl_len = htons((sizeo
[all...]
/linux-master/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_filter.c69 req->reply_ctrl = htons(REPLY_CHAN_V(0) |
72 req->word_cookie = htons(TCB_WORD_V(word) | TCB_COOKIE_V(ftid));
133 req->reply_ctrl = htons(NO_REPLY_V(no_reply) | REPLY_CHAN_V(0) |
135 req->word_cookie = htons(TCB_WORD_V(word) | TCB_COOKIE_V(cookie));
874 fwr->ethtype = htons(f->fs.val.ethtype);
875 fwr->ethtypem = htons(f->fs.mask.ethtype);
886 htons(FW_FILTER_WR_RX_CHAN_V(0) |
901 fwr->ivlan = htons(f->fs.val.ivlan);
902 fwr->ivlanm = htons(f->fs.mask.ivlan);
903 fwr->ovlan = htons(
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx4/
H A Den_selftest.c70 ethh->h_proto = htons(ETH_P_ARP);
/linux-master/net/bridge/netfilter/
H A Debt_ip6.c111 if (e->ethproto != htons(ETH_P_IPV6) || e->invflags & EBT_IPROTO)
/linux-master/arch/um/drivers/
H A Dumcast_user.c37 sin->sin_port = htons(port);
H A Dport_user.c128 addr.sin_port = htons(port);
/linux-master/tools/testing/selftests/net/
H A Dfin_ack_lat.c56 addr.sin_port = htons(port);
/linux-master/net/ipv6/netfilter/
H A Dip6t_frag.c59 pr_debug("MF %04X ", fh->frag_off & htons(IP6_MF));
/linux-master/net/802/
H A Dhippi.c76 hip->snap.ethertype = htons(type);
/linux-master/tools/testing/selftests/bpf/
H A Dxdping.c221 pinginfo.seq = htons(count);
H A Dtest_skb_cgroup_id_user.c32 dst->sin6_port = htons(1025);
/linux-master/include/net/
H A Dipv6_frag.h124 if (offset < 0 || (frag_off & htons(IP6_OFFSET)))
/linux-master/drivers/net/ethernet/marvell/prestera/
H A Dprestera_flower.c178 mask = htons(0x1FFF << 3);
179 key = htons(port->hw_id << 3);
183 mask = htons(0x3FF);
184 key = htons(port->dev_id);

Completed in 198 milliseconds

<<11121314151617181920>>