ipgpc supports a variety of selectors that you can use in the filter clause of the IPQoS configuration file. When you define a filter, always use the minimum number of selectors that are needed to successfully retrieve traffic of a particular class. The amount of filters you define can impact IPQoS performance.
The next table lists the selectors available for ipgpc.
Table 6–1 Filter Selectors for the IPQoS Classifier
Selector |
Argument(s) |
Information Selected |
---|---|---|
saddr |
IP address number. |
Source address. |
daddr |
IP address number. |
Destination address. |
sport |
Either a port number or service name, as defined in /etc/services. |
Source port from which a traffic class originated. |
dport |
Either a port number or service name, as defined in /etc/services. |
Destination port to which a traffic class is bound. |
protocol |
Either a protocol number or protocol name, as defined in /etc/protocols. |
Protocol to be used by this traffic class. |
dsfield |
DS codepoint. Default is zero (0). |
DS codepoint, which defines any forwarding behavior to be applied to the packet. |
if_name |
Interface name. |
Interface to be used for either incoming or outgoing traffic of a particular class. |
if_groupname |
Interface group name. |
Interface group to be used for either incoming or outgoing traffic of a particular class. |
user |
Number of the UNIX userID or user name to be selected. If no userID or user name is on the packet, the default –1 is used. |
UserID that is supplied to an application. |
projid |
Number of the project ID to be selected. |
Project ID that is supplied to an application. |
priority |
Priority number. Lowest priority is 0. |
Priority that is given to packets of this class. Priority is used to order the importance of filters for the same class. |
direction |
Argument can be one of the following: |
Direction of packet flow on the IPQoS machine. |
|
LOCAL_IN |
Input traffic local to the IPQoS system. |
|
LOCAL_OUT |
Output traffic local to the IPQoS system. |
|
FWD_IN |
Input traffic to be forwarded. |
|
FWD_OUT |
Output traffic to be forwarded. |
|
0 |
Wildcard that represents either LOCAL_IN and LOCAL_OUT, or FORWARD_IN and FORWARD_OUT. |
precedence |
Precedence value. Highest precedence is 0. |
Precedence is used to order filters with the same priority. |
ip_version |
v4 or v6 |
Addressing scheme that is used by the packets, either IPv4 or IPv6. |