Lines Matching defs:dscp
137 * Set by the -T dscp option on the command line. If set to a value
370 pktdscp : 1; /* per packet dscp */
385 unsigned int dscp;
495 static void setdscp(isc__socket_t *sock, isc_dscp_t dscp);
587 isc__socket_dscp(isc_socket_t *sock, isc_dscp_t dscp);
1398 dev->dscp = *(int *)CMSG_DATA(cmsgp);
1399 dev->dscp >>= 2;
1412 dev->dscp = (int) *(unsigned char *)CMSG_DATA(cmsgp);
1413 dev->dscp >>= 2;
1565 INSIST((int)dev->dscp == isc_dscp_check_value);
1567 INSIST((int)sock->dscp == isc_dscp_check_value);
1573 int dscp = (dev->dscp << 2) & 0xff;
1575 INSIST(dev->dscp < 0x40);
1582 msg->msg_controllen += cmsg_space(sizeof(dscp));
1588 *(unsigned char*)CMSG_DATA(cmsgp) = dscp;
1589 } else if (sock->pf == AF_INET && sock->dscp != dev->dscp) {
1591 (void *)&dscp, sizeof(int)) < 0)
1598 sock->fd, dscp >> 2,
1605 sock->dscp = dscp;
1613 msg->msg_controllen += cmsg_space(sizeof(dscp));
1618 cmsgp->cmsg_len = cmsg_len(sizeof(dscp));
1619 memmove(CMSG_DATA(cmsgp), &dscp, sizeof(dscp));
1620 } else if (sock->pf == AF_INET6 && sock->dscp != dev->dscp) {
1622 (void *)&dscp, sizeof(int)) < 0) {
1628 sock->fd, dscp >> 2,
1635 sock->dscp = dscp;
1828 ev->dscp = 0;
2297 sock->dscp = 0; /* TOS/TCLASS is zero until set. */
3724 setdscp(NEWCONNSOCK(dev), sock->dscp);
6362 setdscp(isc__socket_t *sock, isc_dscp_t dscp) {
6364 int value = dscp << 2;
6367 sock->dscp = dscp;
6394 "%s: %s", sock->fd, dscp >> 2,
6406 isc__socket_dscp(isc_socket_t *sock0, isc_dscp_t dscp) {
6410 REQUIRE(dscp < 0x40);
6413 UNUSED(dscp);
6415 if (dscp < 0)
6420 INSIST(dscp == isc_dscp_check_value);
6428 setdscp(sock, dscp);