On 8/31/15 11:22 AM, Tom Herbert wrote:
It's a major departure from current convention. The source address of
the packet should be set before doing ip_send_skb. In UDP unconnected
case ip_route_output_flow calls inet_select_addr. AKAIK there is no
provision for not setting the source address and relying on the output
device to do this in its transmit routine.

BTW, one other clarification the code setting the source address is NOT in the xmit function but the dst.output function. The VRF device uses a dst to direct packets to it. The output function (equivalent to ip_output) is what sets the source address if necessary.



--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to