[PATCH] ipv6: routing header fixes

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Brian Haley
Date: Tuesday, November 11, 2008 - 3:11 pm

This patch fixes two bugs:

1. setsockopt() of anything but a Type 2 routing header should return 
EINVAL instead of EPERM.  Noticed by Shan Wei (shanwei@cn.fujitsu.com).

2. setsockopt()/sendmsg() of a Type 2 routing header with invalid length 
or segments should return EINVAL.  These values are statically fixed in 
RFC 3775, unlike the variable Type 0 was.

Signed-off-by: Brian Haley <brian.haley@hp.com>
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] ipv6: routing header fixes, Brian Haley, (Tue Nov 11, 3:11 pm)
Re: [PATCH] ipv6: routing header fixes, David Miller, (Wed Nov 12, 11:59 pm)