X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fstream-provider.h;h=b39dcf01788785d7692a72175a3f65d46eeb3a61;hb=ddbfda846297ab9e89ed9c3f844a8eff86692275;hp=3decb5a8a81eac63e3ebc7442539763a8eb78f56;hpb=f1936eb65178f796d26a8d265697af8c19dce8cd;p=openvswitch diff --git a/lib/stream-provider.h b/lib/stream-provider.h index 3decb5a8..b39dcf01 100644 --- a/lib/stream-provider.h +++ b/lib/stream-provider.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2010 Nicira Networks. + * Copyright (c) 2009, 2010 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,7 +40,6 @@ struct stream { void stream_init(struct stream *, const struct stream_class *, int connect_status, const char *name); void stream_set_remote_ip(struct stream *, ovs_be32 remote_ip); -void stream_set_dscp(struct stream *, uint8_t dscp); void stream_set_remote_port(struct stream *, ovs_be16 remote_port); void stream_set_local_ip(struct stream *, ovs_be32 local_ip); void stream_set_local_port(struct stream *, ovs_be16 local_port); @@ -54,7 +53,7 @@ struct stream_class { /* Prefix for connection names, e.g. "tcp", "ssl", "unix". */ const char *name; - /* True if this stream needs periodic probes to verify connectivty. For + /* True if this stream needs periodic probes to verify connectivity. For * streams which need probes, it can take a long time to notice the * connection was dropped. */ bool needs_probes; @@ -65,9 +64,7 @@ struct stream_class { * * 'suffix' is a copy of 'name' following the colon and may be modified. * 'dscp' is the DSCP value that the new connection should use in the IP - * packets it sends. (If no DSCP value should be set in the packet, dscp - * will be set to DSCP_INVALID. If no DSCP value is specified, DSCP_DEFAULT - * value will be applied.) + * packets it sends. * * Returns 0 if successful, otherwise a positive errno value. If * successful, stores a pointer to the new connection in '*streamp'. @@ -156,7 +153,7 @@ struct pstream_class { /* Prefix for connection names, e.g. "ptcp", "pssl", "punix". */ const char *name; - /* True if this pstream needs periodic probes to verify connectivty. For + /* True if this pstream needs periodic probes to verify connectivity. For * pstreams which need probes, it can take a long time to notice the * connection was dropped. */ bool needs_probes; @@ -167,9 +164,7 @@ struct pstream_class { * * 'suffix' is a copy of 'name' following the colon and may be modified. * 'dscp' is the DSCP value that the new connection should use in the IP - * packets it sends. (If no DSCP value should be set in the packet, dscp - * will be set to DSCP_INVALID. If no DSCP value is specified, DSCP_DEFAULT - * value will be applied.) + * packets it sends. * * Returns 0 if successful, otherwise a positive errno value. If * successful, stores a pointer to the new connection in '*pstreamp'. @@ -195,6 +190,9 @@ struct pstream_class { /* Arranges for the poll loop to wake up when a connection is ready to be * accepted on 'pstream'. */ void (*wait)(struct pstream *pstream); + + /* Set DSCP value of the listening socket. */ + int (*set_dscp)(struct pstream *pstream, uint8_t dscp); }; /* Active and passive stream classes. */