Kill unnecessary CONFIG_IPV6_MIP6.
o It is redundant for RAW socket to keep MH out with the config then
it can handle any protocol.
o Clean-up at AH.
Signed-off-by: Masahide NAKAMURA <nakam@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
struct {
__u8 type;
} mht;
struct {
__u8 type;
} mht;
} uli_u;
#define fl_ip_sport uli_u.ports.sport
#define fl_ip_dport uli_u.ports.dport
#define fl_icmp_type uli_u.icmpt.type
#define fl_icmp_code uli_u.icmpt.code
#define fl_ipsec_spi uli_u.spi
} uli_u;
#define fl_ip_sport uli_u.ports.sport
#define fl_ip_dport uli_u.ports.dport
#define fl_icmp_type uli_u.icmpt.type
#define fl_icmp_code uli_u.icmpt.code
#define fl_ipsec_spi uli_u.spi
#define fl_mh_type uli_u.mht.type
#define fl_mh_type uli_u.mht.type
__u32 secid; /* used by xfrm; see secid.txt */
} __attribute__((__aligned__(BITS_PER_LONG/8)));
__u32 secid; /* used by xfrm; see secid.txt */
} __attribute__((__aligned__(BITS_PER_LONG/8)));
case IPPROTO_ICMPV6:
port = htons(fl->fl_icmp_type);
break;
case IPPROTO_ICMPV6:
port = htons(fl->fl_icmp_type);
break;
case IPPROTO_MH:
port = htons(fl->fl_mh_type);
break;
case IPPROTO_MH:
port = htons(fl->fl_mh_type);
break;
default:
port = 0; /*XXX*/
}
default:
port = 0; /*XXX*/
}
+#else
+static void ipv6_rearrange_destopt(struct ipv6hdr *iph, struct ipv6_opt_hdr *destopt) {}
while (exthdr.raw < end) {
switch (nexthdr) {
case NEXTHDR_DEST:
while (exthdr.raw < end) {
switch (nexthdr) {
case NEXTHDR_DEST:
if (dir == XFRM_POLICY_OUT)
ipv6_rearrange_destopt(iph, exthdr.opth);
if (dir == XFRM_POLICY_OUT)
ipv6_rearrange_destopt(iph, exthdr.opth);
case NEXTHDR_HOP:
if (!zero_out_mutable_opts(exthdr.opth)) {
LIMIT_NETDEBUG(
case NEXTHDR_HOP:
if (!zero_out_mutable_opts(exthdr.opth)) {
LIMIT_NETDEBUG(
struct iovec *iov;
u8 __user *type = NULL;
u8 __user *code = NULL;
struct iovec *iov;
u8 __user *type = NULL;
u8 __user *code = NULL;
case IPPROTO_MH:
if (iov->iov_base && iov->iov_len < 1)
break;
case IPPROTO_MH:
if (iov->iov_base && iov->iov_len < 1)
break;
len += iov->iov_len;
break;
len += iov->iov_len;
break;
default:
probed = 1;
break;
default:
probed = 1;
break;