Searched refs:ntohs (Results 251 - 275 of 599) sorted by relevance

<<11121314151617181920>>

/linux-master/net/ipv4/
H A Dipcomp.c41 spi = htonl(ntohs(ipch->cpi));
/linux-master/net/l2tp/
H A Dl2tp_netlink.c331 if (nla_put_u16(skb, L2TP_ATTR_UDP_SPORT, ntohs(inet->inet_sport)) ||
332 nla_put_u16(skb, L2TP_ATTR_UDP_DPORT, ntohs(inet->inet_dport)))
353 nla_put_u16(skb, L2TP_ATTR_UDP_SPORT, ntohs(inet->inet_sport)) ||
354 nla_put_u16(skb, L2TP_ATTR_UDP_DPORT, ntohs(inet->inet_dport)))
/linux-master/net/ipv6/
H A Dipcomp6.c58 spi = htonl(ntohs(ipcomph->cpi));
H A Dxfrm6_input.c137 ip6h->payload_len = htons(ntohs(ip6h->payload_len) - len);
/linux-master/drivers/net/ethernet/engleder/
H A Dtsnep_rxnfc.c180 rule->filter.ether_type = ntohs(fsp->h_u.ether_spec.h_proto);
/linux-master/drivers/net/ethernet/qualcomm/rmnet/
H A Drmnet_handlers.c74 len = ntohs(map_header->pkt_len) - pad;
/linux-master/drivers/net/ethernet/mediatek/
H A Dmtk_ppe_debugfs.c161 h_source, h_dest, ntohs(l2->etype),
/linux-master/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_tc_flower.c184 ethtype_key = ntohs(match.key->n_proto);
185 ethtype_mask = ntohs(match.mask->n_proto);
333 ethtype_key = ntohs(match.key->n_proto);
334 ethtype_mask = ntohs(match.mask->n_proto);
/linux-master/net/netfilter/ipvs/
H A Dip_vs_ctl.c317 unsigned int porth = ntohs(port);
479 (vport == FTPDATA || !inet_port_requires_bind_service(ipvs->net, ntohs(vport)))) {
498 IP_VS_DBG_ADDR(af, vaddr), ntohs(vport),
532 ntohs(svc->port));
545 unsigned int porth = ntohs(port);
796 ntohs(dest->port),
1173 IP_VS_DBG_ADDR(udest->af, &daddr), ntohs(dport),
1177 ntohs(dest->vport));
1254 IP_VS_DBG_ADDR(dest->af, &dest->addr), ntohs(dest->port),
1353 ntohs(des
[all...]
H A Dip_vs_wrr.c214 IP_VS_DBG_ADDR(dest->af, &dest->addr), ntohs(dest->port),
/linux-master/tools/testing/selftests/net/
H A Dcsum.c240 cfg_port_src, ntohs(uh->source));
241 cfg_port_src = ntohs(uh->source);
623 return recv_verify_csum(th, len, ntohs(tcph->source), tcph->check);
650 return recv_verify_csum(th, len, ntohs(udph->source), udph->check);
H A Dtxtimestamp.c426 csum_len = ntohs(udph->len) + alen * 2;
472 udph->source = ntohs(dest_port + 1); /* spoof */
473 udph->dest = ntohs(dest_port);
474 udph->len = ntohs(sizeof(*udph) + cfg_payload_len);
/linux-master/drivers/net/can/dev/
H A Dskb.c344 switch (ntohs(skb->protocol)) {
/linux-master/net/sched/
H A Dsch_frag.c129 ntohs(skb_protocol(skb, true)), mru,
H A Dcls_flower.c219 min_mask = ntohs(filter->mask->key.tp_range.tp_min.dst);
220 max_mask = ntohs(filter->mask->key.tp_range.tp_max.dst);
221 min_val = ntohs(filter->key.tp_range.tp_min.dst);
222 max_val = ntohs(filter->key.tp_range.tp_max.dst);
225 if (ntohs(key->tp_range.tp.dst) < min_val ||
226 ntohs(key->tp_range.tp.dst) > max_val)
242 min_mask = ntohs(filter->mask->key.tp_range.tp_min.src);
243 max_mask = ntohs(filter->mask->key.tp_range.tp_max.src);
244 min_val = ntohs(filter->key.tp_range.tp_min.src);
245 max_val = ntohs(filte
[all...]
H A Dcls_flow.c97 return ntohs(flow->ports.src);
106 return ntohs(flow->ports.dst);
181 return ntohs(CTTUPLE(skb, src.u.all));
189 return ntohs(CTTUPLE(skb, dst.u.all));
/linux-master/net/netfilter/
H A Dnft_byteorder.c78 d16[i] = ntohs((__force __be16)s16[i]);
/linux-master/net/ncsi/
H A Dncsi-aen.c27 if (ntohs(h->common.length) != payload)
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_tun.c980 ntohs(enc_ports.mask->dst));
982 ntohs(enc_ports.key->dst));
990 ntohs(enc_ports.mask->src));
992 ntohs(enc_ports.key->src));
/linux-master/net/dsa/
H A Dtag_ocelot.c32 if (ntohs(hdr->h_vlan_proto) == proto) {
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dcgrp_local_storage.c130 cookie_expected_value = (ntohs(addr.sin6_port) << 8) | 0xFF;
/linux-master/net/bridge/
H A Dbr_netfilter_ipv6.c61 pkt_len = ntohs(hdr->payload_len);
/linux-master/include/linux/
H A Dipv6.h123 return ntohs(ipv6_hdr(skb)->payload_len) + sizeof(struct ipv6hdr) -
/linux-master/drivers/scsi/libfc/
H A Dfc_lport.c1148 ntohs(ct->ct_cmd) == FC_FS_ACC)
1231 if ((ntohs(ct->ct_cmd) == FC_FS_RJT) && fc_host->fdmi_version == FDMI_V2) {
1237 } else if (ntohs(ct->ct_cmd) == FC_FS_ACC)
1782 mfs = ntohs(flp->fl_csp.sp_bb_data) &
1797 csp_flags = ntohs(flp->fl_csp.sp_features);
1980 if (fr_sof(fp) == FC_SOF_I3 && !ntohs(fh->fh_seq_cnt)) {
1983 ntohs(((struct fc_ct_hdr *)buf)->ct_cmd) :
/linux-master/drivers/net/ethernet/intel/i40e/
H A Di40e_dcb.c189 typelength = ntohs(tlv->typelength);
347 typelength = ntohs(tlv->hdr.typelen);
381 dcbcfg->app[i].protocolid = ntohs(app->protocol);
409 typelength = ntohs(tlv->typelength);
419 typelength = ntohs(sub_tlv->hdr.typelen);
495 typelength = ntohs(tlv->typelength);
1250 typelength = ntohs(tlv->typelength);

Completed in 441 milliseconds

<<11121314151617181920>>