Thread (3 messages) flat view 3 messages, 2 authors, 2011-05-09

Re: [PATCH 1/2] ipv4: Pass flow keys down into datagram packet building engine.

From: Joe Perches <joe@perches.com>
Date: 2011-05-09 01:14:53

On Sun, 8 May 2011, David Miller wrote:
+static struct rtable *icmp_route_lookup(struct net *net,
+					struct flowi4 *fl4,
+					struct sk_buff *skb_in,
 					const struct iphdr *iph,
 					__be32 saddr, u8 tos,
 					int type, int code,
 					struct icmp_bxm *param)
 {
[]
+	memset(&fl4, 0, sizeof(fl4));
	memset(fl4, 0, sizeof(*fl4));
+	fl4->daddr = (param->replyopts.opt.opt.srr ?
+		      param->replyopts.opt.opt.faddr : iph->saddr);
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help