Searched refs:htons (Results 201 - 225 of 963) sorted by relevance
1234567891011>>
/linux-master/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_ptp.c | 65 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 D | test_probe_write_user_user.c | 77 mapped_addr_in->sin_port = htons(5555);
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | kfree_skb.c | 39 if (CHECK(pkt_v6->eth.h_proto != htons(ETH_P_IPV6), "check_eth",
|
/linux-master/drivers/net/wireguard/ |
H A D | allowedips.c | 359 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 D | device.c | 156 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 D | ratelimiter.c | 95 if (skb->protocol == htons(ETH_P_IP)) { 101 else if (skb->protocol == htons(ETH_P_IPV6)) {
|
/linux-master/arch/um/drivers/ |
H A D | slirp_kern.c | 49 return htons(ETH_P_IP);
|
/linux-master/net/netfilter/ |
H A D | nf_conntrack_broadcast.c | 68 exp->mask.src.u.udp.port = htons(0xFFFF);
|
/linux-master/net/rxrpc/ |
H A D | peer_object.c | 172 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 D | tag_qca.c | 31 *phdr = htons(hdr);
|
/linux-master/include/net/ |
H A D | vxlan.h | 368 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 D | ncsi-cmd.c | 51 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 D | amt.c | 530 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 D | ip_local_port_range.c | 60 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 D | nf_conntrack_bridge.c | 255 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 D | ip6_offload.c | 170 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 D | ip6_gre.c | 125 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 D | ipconfig.c | 527 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 D | ping.c | 174 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 D | br_multicast.c | 126 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 D | nf_nat_snmp_basic_main.c | 170 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 D | ila_lwt.c | 46 if (skb->protocol != htons(ETH_P_IPV6)) 106 if (skb->protocol != htons(ETH_P_IPV6))
|
/linux-master/net/sched/ |
H A D | em_ipt.c | 216 case htons(ETH_P_IP): 222 case htons(ETH_P_IPV6):
|
/linux-master/net/ieee802154/6lowpan/ |
H A D | rx.c | 23 skb->protocol = htons(ETH_P_IPV6); 311 .type = htons(ETH_P_IEEE802154),
|
/linux-master/net/sctp/ |
H A D | tsnmap.c | 331 gabs[ngaps].start = htons(start); 332 gabs[ngaps].end = htons(end);
|
Completed in 250 milliseconds
1234567891011>>