Searched refs:htons (Results 201 - 225 of 963) sorted by relevance

1234567891011>>

/linux-master/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_ptp.c65 likely(skb->protocol == htons(ETH_P_IP)) &&
67 uh->dest == htons(PTP_EVENT_PORT);
89 return uh->dest == htons(PTP_EVENT_PORT) &&
90 uh->source == htons(PTP_EVENT_PORT);
/linux-master/samples/bpf/
H A Dtest_probe_write_user_user.c77 mapped_addr_in->sin_port = htons(5555);
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dkfree_skb.c39 if (CHECK(pkt_v6->eth.h_proto != htons(ETH_P_IPV6), "check_eth",
/linux-master/drivers/net/wireguard/
H A Dallowedips.c359 if (skb->protocol == htons(ETH_P_IP))
361 else if (skb->protocol == htons(ETH_P_IPV6))
370 if (skb->protocol == htons(ETH_P_IP))
372 else if (skb->protocol == htons(ETH_P_IPV6))
H A Ddevice.c156 if (skb->protocol == htons(ETH_P_IP))
159 else if (skb->protocol == htons(ETH_P_IPV6))
226 if (skb->protocol == htons(ETH_P_IP))
228 else if (skb->protocol == htons(ETH_P_IPV6))
H A Dratelimiter.c95 if (skb->protocol == htons(ETH_P_IP)) {
101 else if (skb->protocol == htons(ETH_P_IPV6)) {
/linux-master/arch/um/drivers/
H A Dslirp_kern.c49 return htons(ETH_P_IP);
/linux-master/net/netfilter/
H A Dnf_conntrack_broadcast.c68 exp->mask.src.u.udp.port = htons(0xFFFF);
/linux-master/net/rxrpc/
H A Dpeer_object.c172 htons(7000), htons(7001), IPPROTO_UDP, 0, 0);
187 fl6->fl6_dport = htons(7001);
188 fl6->fl6_sport = htons(7000);
/linux-master/net/dsa/
H A Dtag_qca.c31 *phdr = htons(hdr);
/linux-master/include/net/
H A Dvxlan.h368 case htons(ETH_P_IP):
371 case htons(ETH_P_IPV6):
380 skb->inner_protocol != htons(ETH_P_TEB) ||
599 gbp->policy_id = htons(md->gbp & VXLAN_GBP_ID_MASK);
/linux-master/net/ncsi/
H A Dncsi-cmd.c51 h->length = htons(nca->payload);
141 cmd->vlan = htons(nca->words[1]);
315 skb->protocol = htons(ETH_P_NCSI);
380 eh->h_proto = htons(ETH_P_NCSI);
/linux-master/drivers/net/
H A Damt.c530 skb->protocol = htons(ETH_P_IP);
543 iph->tot_len = htons(sizeof(*iph) + AMT_IPHDR_OPTS + sizeof(*ihv3));
544 iph->frag_off = htons(IP_DF);
555 eth->h_proto = htons(ETH_P_IP);
668 udph->len = htons(sizeof(*udph) + sizeof(*amtd));
686 iph->tot_len = htons(len);
759 udph->len = htons(sizeof(*amtrh) + sizeof(*udph));
777 iph->tot_len = htons(len);
827 skb->protocol = htons(ETH_P_IPV6);
834 ip6h->payload_len = htons(sizeo
[all...]
/linux-master/tools/testing/selftests/net/
H A Dip_local_port_range.c60 addr.v4.sin_port = htons(0);
66 addr.v6.sin6_port = htons(0);
389 addr.v4.sin_port = htons(0);
395 addr.v6.sin6_port = htons(0);
/linux-master/net/bridge/netfilter/
H A Dnf_conntrack_bridge.c255 case htons(ETH_P_IP):
269 case htons(ETH_P_IPV6):
350 case htons(ETH_P_IP):
353 case htons(ETH_P_IPV6):
/linux-master/net/ipv6/
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);
H A Dip6_gre.c125 int dev_type = (gre_proto == htons(ETH_P_TEB) ||
126 gre_proto == htons(ETH_P_ERSPAN) ||
127 gre_proto == htons(ETH_P_ERSPAN2)) ?
233 if (gre_proto == htons(ETH_P_ERSPAN) ||
234 gre_proto == htons(ETH_P_ERSPAN2))
426 if (gre_parse_header(skb, &tpi, NULL, htons(ETH_P_IPV6),
548 htons(ETH_P_TEB),
604 hdr_len = gre_parse_header(skb, &tpi, &csum_err, htons(ETH_P_IPV6), 0);
611 if (unlikely(tpi.proto == htons(ETH_P_ERSPAN) ||
612 tpi.proto == htons(ETH_P_ERSPAN
[all...]
/linux-master/net/ipv4/
H A Dipconfig.c527 if (rarp->ar_op != htons(ARPOP_RREPLY))
531 if (rarp->ar_pro != htons(ETH_P_IP))
845 h->tot_len = htons(sizeof(struct bootp_pkt));
846 h->frag_off = htons(IP_DF);
853 b->udph.source = htons(68);
854 b->udph.dest = htons(67);
855 b->udph.len = htons(sizeof(struct bootp_pkt) - sizeof(struct iphdr));
873 b->secs = htons(jiffies_diff / HZ);
886 skb->protocol = htons(ETH_P_IP);
1030 if (b->udph.source != htons(6
[all...]
H A Dping.c174 if (skb->protocol == htons(ETH_P_IP)) {
180 } else if (skb->protocol == htons(ETH_P_IPV6)) {
197 if (skb->protocol == htons(ETH_P_IP) &&
207 } else if (skb->protocol == htons(ETH_P_IPV6) &&
455 isk->inet_sport = htons(isk->inet_num);
501 if (skb->protocol == htons(ETH_P_IP)) {
506 } else if (skb->protocol == htons(ETH_P_IPV6)) {
535 if (skb->protocol == htons(ETH_P_IP)) {
574 } else if (skb->protocol == htons(ETH_P_IPV6)) {
920 if (skb->protocol == htons(ETH_P_IPV
[all...]
/linux-master/net/bridge/
H A Dbr_multicast.c126 br_dst.proto = htons(ETH_P_IP);
141 br_dst.proto = htons(ETH_P_IPV6);
167 case htons(ETH_P_IP):
180 case htons(ETH_P_IPV6):
922 __vlan_hwaccel_put_tag(skb, htons(vlan_proto), vlan->vid);
977 skb->protocol = htons(ETH_P_IP);
984 eth->h_proto = htons(ETH_P_IP);
989 iph->tot_len = htons(pkt_size - sizeof(*eth));
995 iph->frag_off = htons(IP_DF);
1031 ihv3->nsrcs = htons(lmqt_src
1258 case htons(ETH_P_IPV6): { function
[all...]
/linux-master/net/ipv4/netfilter/
H A Dnf_nat_snmp_basic_main.c170 if (udph->source == htons(SNMP_PORT) && dir != IP_CT_DIR_REPLY)
172 if (udph->dest == htons(SNMP_TRAP_PORT) && dir != IP_CT_DIR_ORIGINAL)
/linux-master/net/ipv6/ila/
H A Dila_lwt.c46 if (skb->protocol != htons(ETH_P_IPV6))
106 if (skb->protocol != htons(ETH_P_IPV6))
/linux-master/net/sched/
H A Dem_ipt.c216 case htons(ETH_P_IP):
222 case htons(ETH_P_IPV6):
/linux-master/net/ieee802154/6lowpan/
H A Drx.c23 skb->protocol = htons(ETH_P_IPV6);
311 .type = htons(ETH_P_IEEE802154),
/linux-master/net/sctp/
H A Dtsnmap.c331 gabs[ngaps].start = htons(start);
332 gabs[ngaps].end = htons(end);

Completed in 250 milliseconds

1234567891011>>