Skip to contentSkip to conversation

Why and when to use skb_make_writable()?

DISCUSSION doug arro 2 participants 2 messages Jan 5, 2011 – Jan 12, 2011

lore
Share & tools
lore

doug arro

author
#0 lore raw

Hello,

What is the recommended practice for using skb_make_writable()? I am experimenting with netfilter modules to manipulate IP headers in the mangle table. Most of the target modules call skb_make_writable() right at the start of the target function but some don't. What is the conventional wisdom?

Thanks,
doug

#1 lore raw
Quoted 3 lines · doug arro

Hello,

What is the recommended practice for using skb_make_writable()? I am experimenting with netfilter modules to manipulate IP headers in the mangle table. Most of the target modules call skb_make_writable() right at the start of the target function but some don't. What is the conventional wisdom?

No particular time, but it depends on context.