Searched refs:dscp (Results 1 – 11 of 11) sorted by relevance
/net/netfilter/ |
D | xt_DSCP.c | 31 u_int8_t dscp = ipv4_get_dsfield(ip_hdr(skb)) >> XT_DSCP_SHIFT; in dscp_tg() local 33 if (dscp != dinfo->dscp) { in dscp_tg() 39 dinfo->dscp << XT_DSCP_SHIFT); in dscp_tg() 49 u_int8_t dscp = ipv6_get_dsfield(ipv6_hdr(skb)) >> XT_DSCP_SHIFT; in dscp_tg6() local 51 if (dscp != dinfo->dscp) { in dscp_tg6() 57 dinfo->dscp << XT_DSCP_SHIFT); in dscp_tg6() 66 if (info->dscp > XT_DSCP_MAX) in dscp_tg_check()
|
D | xt_dscp.c | 28 u_int8_t dscp = ipv4_get_dsfield(ip_hdr(skb)) >> XT_DSCP_SHIFT; in dscp_mt() local 30 return (dscp == info->dscp) ^ !!info->invert; in dscp_mt() 37 u_int8_t dscp = ipv6_get_dsfield(ipv6_hdr(skb)) >> XT_DSCP_SHIFT; in dscp_mt6() local 39 return (dscp == info->dscp) ^ !!info->invert; in dscp_mt6() 46 if (info->dscp > XT_DSCP_MAX) in dscp_mt_check()
|
D | Kconfig | 1261 tristate '"dscp" and "tos" match support'
|
/net/sched/ |
D | act_ctinfo.c | 34 u8 dscp, newdscp; in tcf_ctinfo_dscp_set() local 41 dscp = ipv4_get_dsfield(ip_hdr(skb)) & ~INET_ECN_MASK; in tcf_ctinfo_dscp_set() 42 if (dscp != newdscp) { in tcf_ctinfo_dscp_set() 54 dscp = ipv6_get_dsfield(ipv6_hdr(skb)) & ~INET_ECN_MASK; in tcf_ctinfo_dscp_set() 55 if (dscp != newdscp) { in tcf_ctinfo_dscp_set()
|
D | sch_cake.c | 1526 u8 dscp; in cake_handle_diffserv() local 1535 dscp = ipv4_get_dsfield((struct iphdr *)buf) >> 2; in cake_handle_diffserv() 1537 if (wash && dscp) { in cake_handle_diffserv() 1547 return dscp; in cake_handle_diffserv() 1555 dscp = ipv6_get_dsfield((struct ipv6hdr *)buf) >> 2; in cake_handle_diffserv() 1557 if (wash && dscp) { in cake_handle_diffserv() 1567 return dscp; in cake_handle_diffserv() 1584 u8 dscp; in cake_select_tin() local 1593 dscp = cake_handle_diffserv(skb, wash); in cake_select_tin() 1608 dscp = cake_handle_diffserv(skb, wash); in cake_select_tin() [all …]
|
/net/6lowpan/ |
D | iphc.c | 517 u8 dscp = tf[0] & 0x3f; in lowpan_iphc_tf_set_dscp() local 520 hdr->priority |= ((dscp & 0x3c) >> 2); in lowpan_iphc_tf_set_dscp() 522 hdr->flow_lbl[0] |= ((dscp & 0x03) << 6); in lowpan_iphc_tf_set_dscp() 993 u8 dscp, ecn; in lowpan_iphc_get_tc() local 998 dscp = (hdr->priority << 2) | ((hdr->flow_lbl[0] & 0xc0) >> 6); in lowpan_iphc_get_tc() 1002 pr_debug("ecn 0x%02x dscp 0x%02x\n", ecn >> 4, dscp); in lowpan_iphc_get_tc() 1004 return (ecn << 2) | dscp; in lowpan_iphc_get_tc()
|
/net/sctp/ |
D | protocol.c | 428 if (t->dscp & SCTP_DSCP_SET_MASK) in sctp_v4_get_dst() 429 tos = t->dscp & SCTP_DSCP_VAL_MASK; in sctp_v4_get_dst() 984 __u8 dscp = inet->tos; in sctp_v4_xmit() local 990 if (transport->dscp & SCTP_DSCP_SET_MASK) in sctp_v4_xmit() 991 dscp = transport->dscp & SCTP_DSCP_VAL_MASK; in sctp_v4_xmit() 998 return __ip_queue_xmit(&inet->sk, skb, &transport->fl, dscp); in sctp_v4_xmit()
|
D | associola.c | 104 asoc->dscp = sp->dscp; in sctp_association_init() 644 peer->dscp = asoc->dscp; in sctp_assoc_add_peer()
|
D | socket.c | 2627 trans->dscp = params->spp_dscp & SCTP_DSCP_VAL_MASK; in sctp_apply_peer_addr_params() 2628 trans->dscp |= SCTP_DSCP_SET_MASK; in sctp_apply_peer_addr_params() 2634 t->dscp = params->spp_dscp & in sctp_apply_peer_addr_params() 2636 t->dscp |= SCTP_DSCP_SET_MASK; in sctp_apply_peer_addr_params() 2638 asoc->dscp = params->spp_dscp & SCTP_DSCP_VAL_MASK; in sctp_apply_peer_addr_params() 2639 asoc->dscp |= SCTP_DSCP_SET_MASK; in sctp_apply_peer_addr_params() 2641 sp->dscp = params->spp_dscp & SCTP_DSCP_VAL_MASK; in sctp_apply_peer_addr_params() 2642 sp->dscp |= SCTP_DSCP_SET_MASK; in sctp_apply_peer_addr_params() 6011 if (trans->dscp & SCTP_DSCP_SET_MASK) { in sctp_getsockopt_peer_addr_params() 6012 params.spp_dscp = trans->dscp & SCTP_DSCP_VAL_MASK; in sctp_getsockopt_peer_addr_params() [all …]
|
D | ipv6.c | 205 if (transport->dscp & SCTP_DSCP_SET_MASK) in sctp_v6_xmit() 206 tclass = transport->dscp & SCTP_DSCP_VAL_MASK; in sctp_v6_xmit()
|
/net/wireless/ |
D | util.c | 802 unsigned int dscp; in cfg80211_classify8021d() local 827 dscp = ipv4_get_dsfield(ip_hdr(skb)) & 0xfc; in cfg80211_classify8021d() 830 dscp = ipv6_get_dsfield(ipv6_hdr(skb)) & 0xfc; in cfg80211_classify8021d() 853 unsigned int i, tmp_dscp = dscp >> 2; in cfg80211_classify8021d() 856 if (tmp_dscp == qos_map->dscp_exception[i].dscp) { in cfg80211_classify8021d() 871 ret = dscp >> 5; in cfg80211_classify8021d()
|