{"id":3110,"date":"2022-12-20T16:43:30","date_gmt":"2022-12-20T19:43:30","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/skb-editing-action-in-tc-man8\/"},"modified":"2022-12-20T16:43:30","modified_gmt":"2022-12-20T19:43:30","slug":"skb-editing-action-in-tc-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/skb-editing-action-in-tc-man8\/","title":{"rendered":"SKB editing action in tc (man8)"},"content":{"rendered":"<h1 align=\"center\">SKB editing action in tc<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">skbedit &#8211; SKB editing action<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:23%; margin-top: 1em\"><b>tc<\/b> &#8230; <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> ]<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>skbedit<\/b> action allows to change a packet\u2019s associated meta data. It complements the <b>pedit<\/b> action, which in turn allows to change parts of the packet data itself.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">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).<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>queue_mapping<\/b> <i>QUEUE_MAPPING<\/i><\/p>\n<p style=\"margin-left:22%;\">Override the packet\u2019s 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.<\/p>\n<p style=\"margin-left:11%;\"><b>priority<\/b> <i>PRIORITY<\/i><\/p>\n<p style=\"margin-left:22%;\">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.<\/p>\n<p style=\"margin-left:11%;\"><b>mark<\/b> <i>MARK<\/i>[<b>\/<\/b><i>MASK]<\/i><\/p>\n<p style=\"margin-left:22%;\">Change the packet\u2019s firewall mark value. <i>MARK<\/i> is an unsigned 32bit value in automatically detected format (i.e., prefix with \u2019<b>0x<\/b>\u2019 for hexadecimal interpretation, etc.). <i>MASK<\/i> defines the 32-bit mask selecting bits of mark value. Default is 0xffffffff.<\/p>\n<p style=\"margin-left:11%;\"><b>ptype<\/b> <i>PTYPE<\/i><\/p>\n<p style=\"margin-left:22%;\">Override the packet\u2019s 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<\/p>\n<p style=\"margin-left:11%;\"><b>inheritdsfield<\/b><\/p>\n<p style=\"margin-left:22%;\">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).<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>tc<\/b>(8), <b>tc-pedit<\/b>(8)<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  skbedit &#8211; SKB editing action <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,4,258],"class_list":["post-3110","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-man8","tag-tc-skbedit"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3110","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3110"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3110\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}