/linux-master/drivers/net/wireless/intel/iwlwifi/mei/ |
H A D | net.c | 95 if (arp->ar_hrd != htons(ARPHRD_ETHER) || 96 arp->ar_pro != htons(ETH_P_IP)) 112 if (arp->ar_op == htons(ARPOP_REQUEST) && 125 arp->ar_op == htons(ARPOP_REPLY)) { 309 case htons(ETH_P_IP): 312 case htons(ETH_P_ARP): 315 case htons(ETH_P_IPV6): 379 if (origskb->protocol != htons(ETH_P_IP) || 381 udp_hdr(origskb)->source != htons(DHCP_CLIENT_PORT) || 382 udp_hdr(origskb)->dest != htons(DHCP_SERVER_POR [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx4/ |
H A D | fw_qos.c | 134 htons(MLX4_RATELIMIT_100M_UNITS); 138 htons(MLX4_RATELIMIT_1G_UNITS); 140 tc->max_bw_value = htons(r); 142 tc->max_bw_value = htons(MLX4_RATELIMIT_DEFAULT); 143 tc->max_bw_units = htons(MLX4_RATELIMIT_1G_UNITS); 146 tc->pg = htons(pg[i]); 147 tc->bw_precentage = htons(tc_tx_bw[i]);
|
/linux-master/include/net/ |
H A D | inet_ecn.h | 94 * INET_ECN_ECT_1 => check += htons(0xFFFD) 95 * INET_ECN_ECT_0 => check += htons(0xFFFE) 97 check_add = (__force __be16)((__force u16)htons(0xFFFB) + 98 (__force u16)htons(ecn)); 110 iph->check = csum16_add(iph->check, htons(0x1)); 292 case htons(ETH_P_IP): 295 case htons(ETH_P_IPV6): 311 case htons(ETH_P_IP): 314 case htons(ETH_P_IPV6):
|
H A D | gue.h | 59 #define GUE_FLAG_PRIV htons(1<<0) /* Private flags are in options */
|
/linux-master/net/bridge/netfilter/ |
H A D | ebt_arpreply.c | 34 if (ap->ar_op != htons(ARPOP_REQUEST) || 36 ap->ar_pro != htons(ETH_P_IP) || 69 if (e->ethproto != htons(ETH_P_ARP) ||
|
H A D | ebt_arp.c | 43 if (ah->ar_pln != sizeof(__be32) || ah->ar_pro != htons(ETH_P_IP)) 72 if (ah->ar_hln != ETH_ALEN || ah->ar_hrd != htons(ARPHRD_ETHER)) 106 if ((e->ethproto != htons(ETH_P_ARP) && 107 e->ethproto != htons(ETH_P_RARP)) ||
|
/linux-master/net/netfilter/ipset/ |
H A D | ip_set_getport.c | 74 *port = (__force __be16)htons((ic->type << 8) | ic->code); 86 htons((ic->icmp6_type << 8) | ic->icmp6_code); 144 if (protoff < 0 || (frag_off & htons(~0x7)) != 0)
|
/linux-master/samples/bpf/ |
H A D | tcbpf1_kern.c | 28 bpf_l3_csum_replace(skb, IP_CSUM_OFF, htons(old_tos), htons(new_tos), 2); 49 __u16 old_port = htons(load_half(skb, TCP_DPORT_OFF));
|
/linux-master/net/core/ |
H A D | selftests.c | 100 ehdr->h_proto = htons(ETH_P_IP); 103 thdr->source = htons(attr->sport); 104 thdr->dest = htons(attr->dport); 108 uhdr->source = htons(attr->sport); 109 uhdr->dest = htons(attr->dport); 110 uhdr->len = htons(sizeof(*shdr) + sizeof(*uhdr) + attr->size); 112 uhdr->len = htons(attr->max_size - 133 ihdr->tot_len = htons(iplen); 163 skb->protocol = htons(ETH_P_IP); 213 if (thdr->dest != htons(tpri [all...] |
/linux-master/net/openvswitch/ |
H A D | flow.c | 59 #define TCP_FLAGS_BE16(tp) (*(__be16 *)&tcp_flag_word(tp) & htons(0x0FFF)) 466 key_vh->tci = vh->tci | htons(VLAN_CFI_MASK); 499 key->eth.vlan.tci = htons(skb->vlan_tci) | htons(VLAN_CFI_MASK); 535 return htons(ETH_P_802_2); 538 return htons(0); 544 return htons(ETH_P_802_2); 551 return htons(ETH_P_802_2); 562 key->tp.src = htons(icmp->icmp6_type); 563 key->tp.dst = htons(icm [all...] |
/linux-master/arch/arc/include/asm/ |
H A D | checksum.h | 86 "r"(htons(proto))
|
/linux-master/include/linux/ |
H A D | ip.h | 57 iph->tot_len = len <= IP_MAX_MTU ? htons(len) : 0;
|
/linux-master/drivers/net/ethernet/sfc/ |
H A D | filter.h | 213 spec->ether_type = htons(ETH_P_IP); 234 spec->ether_type = htons(ETH_P_IPV6); 259 spec->ether_type = htons(ETH_P_IP); 286 spec->outer_vid = htons(vid);
|
/linux-master/tools/testing/selftests/net/ |
H A D | csum.c | 177 sum += htons(proto); 178 sum += htons(len); 199 iph->tot_len = htons(sizeof(*iph) + len); 214 ip6h->payload_len = htons(len); 229 uh->source = htons(cfg_port_src); 230 uh->dest = htons(cfg_port_dst); 231 uh->len = htons(sizeof(*uh) + cfg_payload_len); 260 th->source = htons(cfg_port_src); 261 th->dest = htons(cfg_port_dst); 282 uh->dest = htons(cfg_port_ds [all...] |
/linux-master/net/dsa/ |
H A D | tag_rtl8_4.c | 110 tag16[0] = htons(ETH_P_REALTEK); 113 tag16[1] = htons(FIELD_PREP(RTL8_4_PROTOCOL, RTL8_4_PROTOCOL_RTL8365MB)); 116 tag16[2] = htons(FIELD_PREP(RTL8_4_LEARN_DIS, 1)); 119 tag16[3] = htons(FIELD_PREP(RTL8_4_RX, BIT(dp->index)));
|
H A D | tag_lan9303.c | 74 lan9303_tag[0] = htons(ETH_P_8021Q); 75 lan9303_tag[1] = htons(tag);
|
H A D | tag_rtl4_a.c | 56 *p = htons(ETH_P_REALTEK); 63 *p = htons(out);
|
/linux-master/net/hsr/ |
H A D | hsr_slave.c | 21 return (protocol != htons(ETH_P_PRP) && protocol != htons(ETH_P_HSR)); 64 if ((!hsr->prot_version && protocol == htons(ETH_P_PRP)) || 65 protocol == htons(ETH_P_HSR))
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | ptp.h | 81 if (fk.basic.n_proto == htons(ETH_P_1588)) 84 if (fk.basic.n_proto != htons(ETH_P_IP) && 85 fk.basic.n_proto != htons(ETH_P_IPV6)) 89 fk.ports.dst == htons(PTP_EV_PORT));
|
/linux-master/net/nsh/ |
H A D | nsh.c | 39 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/ipv4/netfilter/ |
H A D | nf_dup_ipv4.c | 45 skb->protocol = htons(ETH_P_IP); 81 iph->frag_off |= htons(IP_DF);
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_selftest.c | 110 ethh->h_proto = htons(ETH_P_IP); 113 udph->source = htons(9); 114 udph->dest = htons(9); /* Discard Protocol */ 115 udph->len = htons(sizeof(struct mlx5ehdr) + sizeof(struct udphdr)); 125 iph->tot_len = htons(iplen); 142 skb->protocol = htons(ETH_P_IP); 182 if (udph->dest != htons(9)) 220 lbtp->pt.type = htons(ETH_P_IP);
|
/linux-master/tools/testing/selftests/netfilter/ |
H A D | connect_close.c | 76 .sin_port = htons(opts.port), 93 .sin_port = htons(opts.port),
|
/linux-master/net/netfilter/ |
H A D | nft_inner.c | 68 case htons(ETH_P_IP): 69 case htons(ETH_P_IPV6): 73 case htons(ETH_P_8021Q): 99 llproto = htons(ETH_P_IP); 102 llproto = htons(ETH_P_IPV6); 110 if (llproto == htons(ETH_P_8021Q)) 116 case htons(ETH_P_IP): { function 137 case htons(ETH_P_IPV6): { function
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | bind_perm.c | 34 sin->sin_port = htons(port); 38 sin6->sin6_port = htons(port);
|