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 | 1288 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 | 1562 u8 dscp; in cake_handle_diffserv() local 1571 dscp = ipv4_get_dsfield((struct iphdr *)buf) >> 2; in cake_handle_diffserv() 1573 if (wash && dscp) { in cake_handle_diffserv() 1583 return dscp; in cake_handle_diffserv() 1591 dscp = ipv6_get_dsfield((struct ipv6hdr *)buf) >> 2; in cake_handle_diffserv() 1593 if (wash && dscp) { in cake_handle_diffserv() 1603 return dscp; in cake_handle_diffserv() 1620 u8 dscp; in cake_select_tin() local 1629 dscp = cake_handle_diffserv(skb, wash); in cake_select_tin() 1644 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 | 429 if (t->dscp & SCTP_DSCP_SET_MASK) in sctp_v4_get_dst() 430 tos = t->dscp & SCTP_DSCP_VAL_MASK; in sctp_v4_get_dst() 1056 __u8 dscp = inet->tos; in sctp_v4_xmit() local 1062 if (t->dscp & SCTP_DSCP_SET_MASK) in sctp_v4_xmit() 1063 dscp = t->dscp & SCTP_DSCP_VAL_MASK; in sctp_v4_xmit() 1071 return __ip_queue_xmit(sk, skb, &t->fl, dscp); in sctp_v4_xmit() 1085 fl4->daddr, dscp, ip4_dst_hoplimit(dst), df, in sctp_v4_xmit()
|
D | associola.c | 109 asoc->dscp = sp->dscp; in sctp_association_init() 656 peer->dscp = asoc->dscp; in sctp_assoc_add_peer()
|
D | socket.c | 2594 trans->dscp = params->spp_dscp & SCTP_DSCP_VAL_MASK; in sctp_apply_peer_addr_params() 2595 trans->dscp |= SCTP_DSCP_SET_MASK; in sctp_apply_peer_addr_params() 2601 t->dscp = params->spp_dscp & in sctp_apply_peer_addr_params() 2603 t->dscp |= SCTP_DSCP_SET_MASK; in sctp_apply_peer_addr_params() 2605 asoc->dscp = params->spp_dscp & SCTP_DSCP_VAL_MASK; in sctp_apply_peer_addr_params() 2606 asoc->dscp |= SCTP_DSCP_SET_MASK; in sctp_apply_peer_addr_params() 2608 sp->dscp = params->spp_dscp & SCTP_DSCP_VAL_MASK; in sctp_apply_peer_addr_params() 2609 sp->dscp |= SCTP_DSCP_SET_MASK; in sctp_apply_peer_addr_params() 5970 if (trans->dscp & SCTP_DSCP_SET_MASK) { in sctp_getsockopt_peer_addr_params() 5971 params.spp_dscp = trans->dscp & SCTP_DSCP_VAL_MASK; in sctp_getsockopt_peer_addr_params() [all …]
|
D | ipv6.c | 234 if (t->dscp & SCTP_DSCP_SET_MASK) in sctp_v6_xmit() 235 tclass = t->dscp & SCTP_DSCP_VAL_MASK; in sctp_v6_xmit()
|
/net/wireless/ |
D | util.c | 837 unsigned int dscp; in cfg80211_classify8021d() local 862 dscp = ipv4_get_dsfield(ip_hdr(skb)) & 0xfc; in cfg80211_classify8021d() 865 dscp = ipv6_get_dsfield(ipv6_hdr(skb)) & 0xfc; in cfg80211_classify8021d() 888 unsigned int i, tmp_dscp = dscp >> 2; in cfg80211_classify8021d() 891 if (tmp_dscp == qos_map->dscp_exception[i].dscp) { in cfg80211_classify8021d() 906 ret = dscp >> 5; in cfg80211_classify8021d()
|