lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Tue, 30 Jun 2015 04:01:02 +0200 From: Linus Lüssing <linus.luessing@...3.blue> To: b.a.t.m.a.n@...ts.open-mesh.org, netdev@...r.kernel.org Subject: Caller or callee setting skb->network_header? Hi, For an .ndo_start_xmit handler, can the callee rely on the caller setting the skb network header? Or should the callee set it before performing any skb_network_header()/ip_hdr()/ipv6_hdr()/... calls? Cheers, Linus PS: Currently looking at batman-adv's ndo_start_xmit handler "interface_tx()", whether an skb_set_network_header() should be added there as it uses ip_hdr()/ipv6_hdr() later (-> batadv_mcast_forw_mode_check_ipv{4,6}()). Testing this in VMs it seemed to be set correctly by the caller, but wanted to check whether this can or shouldn't be relied on. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists