143 lines
3.2 KiB
HTML
143 lines
3.2 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of SKB editing action in tc</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>SKB editing action in tc</H1>
|
|
Section: Linux (8)<BR>Updated: 12 Jan 2015<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<P>
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
skbedit - SKB editing action
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
|
|
<BR>
|
|
|
|
<B>tc</B> ... <B>action skbedit </B>[<B> queue_mapping</B>
|
|
|
|
<I>QUEUE_MAPPING</I> ] [
|
|
|
|
<B>priority</B>
|
|
|
|
<I>PRIORITY</I> ] [
|
|
|
|
<B>mark</B><I> MARK</I>[<B>/</B><I>MASK] ] [</I>
|
|
|
|
<B>ptype</B>
|
|
|
|
<I>PTYPE</I> ] [
|
|
|
|
<B>inheritdsfield</B> ]
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
The
|
|
<B>skbedit</B>
|
|
|
|
action allows to change a packet's associated meta data. It complements the
|
|
<B>pedit</B>
|
|
|
|
action, which in turn allows to change parts of the packet data itself.
|
|
<P>
|
|
The most unique feature of
|
|
<B>skbedit</B>
|
|
|
|
is its ability to decide over which queue of an interface with multiple
|
|
transmit queues the packet is to be sent out. The number of available transmit
|
|
queues is reflected by sysfs entries within
|
|
<I>/sys/class/net/<interface>/queues</I>
|
|
|
|
with name
|
|
<I>tx-N</I>
|
|
|
|
(where
|
|
<I>N</I>
|
|
|
|
is the actual queue number).
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>queue_mapping</B><I> QUEUE_MAPPING</I>
|
|
|
|
<DD>
|
|
Override the packet's transmit queue. Useful when applied to packets transmitted
|
|
over MQ-capable network interfaces.
|
|
<I>QUEUE_MAPPING</I>
|
|
|
|
is an unsigned 16bit value in decimal format.
|
|
<DT id="2"><B>priority</B><I> PRIORITY</I>
|
|
|
|
<DD>
|
|
Override the packet classification decision.
|
|
<I>PRIORITY</I>
|
|
|
|
is either
|
|
<B>root</B>, <B>none</B>
|
|
|
|
or a hexadecimal major class ID optionally followed by a colon
|
|
(<B>:</B>)
|
|
|
|
and a hexadecimal minor class ID.
|
|
<DT id="3"><B>mark</B><I> MARK</I>[<B>/</B><I>MASK]</I>
|
|
|
|
<DD>
|
|
Change the packet's firewall mark value.
|
|
<I>MARK</I>
|
|
|
|
is an unsigned 32bit value in automatically detected format (i.e., prefix with
|
|
'<B>0x</B>'
|
|
|
|
for hexadecimal interpretation, etc.).
|
|
<I>MASK</I>
|
|
|
|
defines the 32-bit mask selecting bits of mark value. Default is 0xffffffff.
|
|
<DT id="4"><B>ptype</B><I> PTYPE</I>
|
|
|
|
<DD>
|
|
Override the packet's type. Useful for setting packet type to host when
|
|
needing to allow ingressing packets with the wrong MAC address but
|
|
correct IP address.
|
|
<I>PTYPE</I>
|
|
|
|
is one of: host, otherhost, broadcast, multicast
|
|
<DT id="5"><B>inheritdsfield</B>
|
|
|
|
<DD>
|
|
Override the packet classification decision, and any value specified with
|
|
<B>priority</B>,
|
|
|
|
using the information stored in the Differentiated Services Field of the
|
|
IPv6/IPv4 header (RFC2474).
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+tc">tc</A></B>(8),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+tc-pedit">tc-pedit</A></B>(8)
|
|
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="6"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="7"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="8"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="9"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="10"><A HREF="#lbAF">SEE ALSO</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:06:17 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|