]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/netipsec/xform_ipip.c
Merge OpenSSL 1.0.1i.
[FreeBSD/FreeBSD.git] / sys / netipsec / xform_ipip.c
1 /*      $FreeBSD$       */
2 /*      $OpenBSD: ip_ipip.c,v 1.25 2002/06/10 18:04:55 itojun Exp $ */
3 /*-
4  * The authors of this code are John Ioannidis (ji@tla.org),
5  * Angelos D. Keromytis (kermit@csd.uch.gr) and
6  * Niels Provos (provos@physnet.uni-hamburg.de).
7  *
8  * The original version of this code was written by John Ioannidis
9  * for BSD/OS in Athens, Greece, in November 1995.
10  *
11  * Ported to OpenBSD and NetBSD, with additional transforms, in December 1996,
12  * by Angelos D. Keromytis.
13  *
14  * Additional transforms and features in 1997 and 1998 by Angelos D. Keromytis
15  * and Niels Provos.
16  *
17  * Additional features in 1999 by Angelos D. Keromytis.
18  *
19  * Copyright (C) 1995, 1996, 1997, 1998, 1999 by John Ioannidis,
20  * Angelos D. Keromytis and Niels Provos.
21  * Copyright (c) 2001, Angelos D. Keromytis.
22  *
23  * Permission to use, copy, and modify this software with or without fee
24  * is hereby granted, provided that this entire notice is included in
25  * all copies of any software which is or includes a copy or
26  * modification of this software.
27  * You may use this code under the GNU public license if you so wish. Please
28  * contribute changes back to the authors under this freer than GPL license
29  * so that we may further the use of strong encryption without limitations to
30  * all.
31  *
32  * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR
33  * IMPLIED WARRANTY. IN PARTICULAR, NONE OF THE AUTHORS MAKES ANY
34  * REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE
35  * MERCHANTABILITY OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR
36  * PURPOSE.
37  */
38
39 /*
40  * IP-inside-IP processing
41  */
42 #include "opt_inet.h"
43 #include "opt_inet6.h"
44 #include "opt_enc.h"
45
46 #include <sys/param.h>
47 #include <sys/systm.h>
48 #include <sys/mbuf.h>
49 #include <sys/socket.h>
50 #include <sys/kernel.h>
51 #include <sys/protosw.h>
52 #include <sys/sysctl.h>
53
54 #include <net/if.h>
55 #include <net/if_var.h>
56 #include <net/pfil.h>
57 #include <net/route.h>
58 #include <net/netisr.h>
59 #include <net/vnet.h>
60
61 #include <netinet/in.h>
62 #include <netinet/in_systm.h>
63 #include <netinet/in_var.h>
64 #include <netinet/ip.h>
65 #include <netinet/ip_ecn.h>
66 #include <netinet/ip_var.h>
67 #include <netinet/ip_encap.h>
68
69 #include <netipsec/ipsec.h>
70 #include <netipsec/xform.h>
71
72 #include <netipsec/ipip_var.h>
73
74 #ifdef INET6
75 #include <netinet/ip6.h>
76 #include <netipsec/ipsec6.h>
77 #include <netinet6/ip6_ecn.h>
78 #include <netinet6/in6_var.h>
79 #include <netinet6/ip6protosw.h>
80 #endif
81
82 #include <netipsec/key.h>
83 #include <netipsec/key_debug.h>
84
85 #include <machine/stdarg.h>
86
87 /*
88  * We can control the acceptance of IP4 packets by altering the sysctl
89  * net.inet.ipip.allow value.  Zero means drop them, all else is acceptance.
90  */
91 VNET_DEFINE(int, ipip_allow) = 0;
92 VNET_PCPUSTAT_DEFINE(struct ipipstat, ipipstat);
93 VNET_PCPUSTAT_SYSINIT(ipipstat);
94
95 #ifdef VIMAGE
96 VNET_PCPUSTAT_SYSUNINIT(ipipstat);
97 #endif /* VIMAGE */
98
99 SYSCTL_DECL(_net_inet_ipip);
100 SYSCTL_VNET_INT(_net_inet_ipip, OID_AUTO,
101         ipip_allow,     CTLFLAG_RW,     &VNET_NAME(ipip_allow), 0, "");
102 SYSCTL_VNET_PCPUSTAT(_net_inet_ipip, IPSECCTL_STATS, stats,
103     struct ipipstat, ipipstat,
104     "IPIP statistics (struct ipipstat, netipsec/ipip_var.h)");
105
106 /* XXX IPCOMP */
107 #define M_IPSEC (M_AUTHIPHDR|M_AUTHIPDGM|M_DECRYPTED)
108
109 static void _ipip_input(struct mbuf *m, int iphlen, struct ifnet *gifp);
110
111 #ifdef INET6
112 /*
113  * Really only a wrapper for ipip_input(), for use with IPv6.
114  */
115 int
116 ip4_input6(struct mbuf **m, int *offp, int proto)
117 {
118 #if 0
119         /* If we do not accept IP-in-IP explicitly, drop.  */
120         if (!V_ipip_allow && ((*m)->m_flags & M_IPSEC) == 0) {
121                 DPRINTF(("%s: dropped due to policy\n", __func__));
122                 IPIPSTAT_INC(ipips_pdrops);
123                 m_freem(*m);
124                 return IPPROTO_DONE;
125         }
126 #endif
127         _ipip_input(*m, *offp, NULL);
128         return IPPROTO_DONE;
129 }
130 #endif /* INET6 */
131
132 #ifdef INET
133 /*
134  * Really only a wrapper for ipip_input(), for use with IPv4.
135  */
136 void
137 ip4_input(struct mbuf *m, int off)
138 {
139 #if 0
140         /* If we do not accept IP-in-IP explicitly, drop.  */
141         if (!V_ipip_allow && (m->m_flags & M_IPSEC) == 0) {
142                 DPRINTF(("%s: dropped due to policy\n", __func__));
143                 IPIPSTAT_INC(ipips_pdrops);
144                 m_freem(m);
145                 return;
146         }
147 #endif
148         _ipip_input(m, off, NULL);
149 }
150 #endif /* INET */
151
152 /*
153  * ipip_input gets called when we receive an IP{46} encapsulated packet,
154  * either because we got it at a real interface, or because AH or ESP
155  * were being used in tunnel mode (in which case the rcvif element will
156  * contain the address of the encX interface associated with the tunnel.
157  */
158
159 static void
160 _ipip_input(struct mbuf *m, int iphlen, struct ifnet *gifp)
161 {
162         struct ip *ipo;
163 #ifdef INET6
164         struct ip6_hdr *ip6 = NULL;
165         u_int8_t itos;
166 #endif
167         int isr;
168         u_int8_t otos;
169         u_int8_t v;
170         int hlen;
171
172         IPIPSTAT_INC(ipips_ipackets);
173
174         m_copydata(m, 0, 1, &v);
175
176         switch (v >> 4) {
177 #ifdef INET
178         case 4:
179                 hlen = sizeof(struct ip);
180                 break;
181 #endif /* INET */
182 #ifdef INET6
183         case 6:
184                 hlen = sizeof(struct ip6_hdr);
185                 break;
186 #endif
187         default:
188                 IPIPSTAT_INC(ipips_family);
189                 m_freem(m);
190                 return /* EAFNOSUPPORT */;
191         }
192
193         /* Bring the IP header in the first mbuf, if not there already */
194         if (m->m_len < hlen) {
195                 if ((m = m_pullup(m, hlen)) == NULL) {
196                         DPRINTF(("%s: m_pullup (1) failed\n", __func__));
197                         IPIPSTAT_INC(ipips_hdrops);
198                         return;
199                 }
200         }
201         ipo = mtod(m, struct ip *);
202
203         /* Keep outer ecn field. */
204         switch (v >> 4) {
205 #ifdef INET
206         case 4:
207                 otos = ipo->ip_tos;
208                 break;
209 #endif /* INET */
210 #ifdef INET6
211         case 6:
212                 otos = (ntohl(mtod(m, struct ip6_hdr *)->ip6_flow) >> 20) & 0xff;
213                 break;
214 #endif
215         default:
216                 panic("ipip_input: unknown ip version %u (outer)", v>>4);
217         }
218
219         /* Remove outer IP header */
220         m_adj(m, iphlen);
221
222         /* Sanity check */
223         if (m->m_pkthdr.len < sizeof(struct ip))  {
224                 IPIPSTAT_INC(ipips_hdrops);
225                 m_freem(m);
226                 return;
227         }
228
229         m_copydata(m, 0, 1, &v);
230
231         switch (v >> 4) {
232 #ifdef INET
233         case 4:
234                 hlen = sizeof(struct ip);
235                 break;
236 #endif /* INET */
237
238 #ifdef INET6
239         case 6:
240                 hlen = sizeof(struct ip6_hdr);
241                 break;
242 #endif
243         default:
244                 IPIPSTAT_INC(ipips_family);
245                 m_freem(m);
246                 return; /* EAFNOSUPPORT */
247         }
248
249         /*
250          * Bring the inner IP header in the first mbuf, if not there already.
251          */
252         if (m->m_len < hlen) {
253                 if ((m = m_pullup(m, hlen)) == NULL) {
254                         DPRINTF(("%s: m_pullup (2) failed\n", __func__));
255                         IPIPSTAT_INC(ipips_hdrops);
256                         return;
257                 }
258         }
259
260         /*
261          * RFC 1853 specifies that the inner TTL should not be touched on
262          * decapsulation. There's no reason this comment should be here, but
263          * this is as good as any a position.
264          */
265
266         /* Some sanity checks in the inner IP header */
267         switch (v >> 4) {
268 #ifdef INET
269         case 4:
270                 ipo = mtod(m, struct ip *);
271                 ip_ecn_egress(V_ip4_ipsec_ecn, &otos, &ipo->ip_tos);
272                 break;
273 #endif /* INET */
274 #ifdef INET6
275         case 6:
276                 ip6 = (struct ip6_hdr *) ipo;
277                 itos = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
278                 ip_ecn_egress(V_ip6_ipsec_ecn, &otos, &itos);
279                 ip6->ip6_flow &= ~htonl(0xff << 20);
280                 ip6->ip6_flow |= htonl((u_int32_t) itos << 20);
281                 break;
282 #endif
283         default:
284                 panic("ipip_input: unknown ip version %u (inner)", v>>4);
285         }
286
287         /* Check for local address spoofing. */
288         if ((m->m_pkthdr.rcvif == NULL ||
289             !(m->m_pkthdr.rcvif->if_flags & IFF_LOOPBACK)) &&
290             V_ipip_allow != 2) {
291 #ifdef INET
292                 if ((v >> 4) == IPVERSION &&
293                     in_localip(ipo->ip_src) != 0) {
294                         IPIPSTAT_INC(ipips_spoof);
295                         m_freem(m);
296                         return;
297                 }
298 #endif
299 #ifdef INET6
300                 if ((v & IPV6_VERSION_MASK) == IPV6_VERSION &&
301                     in6_localip(&ip6->ip6_src) != 0) {
302                         IPIPSTAT_INC(ipips_spoof);
303                         m_freem(m);
304                         return;
305                 }
306 #endif
307         }
308
309         /* Statistics */
310         IPIPSTAT_ADD(ipips_ibytes, m->m_pkthdr.len - iphlen);
311
312         /*
313          * Interface pointer stays the same; if no IPsec processing has
314          * been done (or will be done), this will point to a normal
315          * interface. Otherwise, it'll point to an enc interface, which
316          * will allow a packet filter to distinguish between secure and
317          * untrusted packets.
318          */
319
320         switch (v >> 4) {
321 #ifdef INET
322         case 4:
323                 isr = NETISR_IP;
324                 break;
325 #endif
326 #ifdef INET6
327         case 6:
328                 isr = NETISR_IPV6;
329                 break;
330 #endif
331         default:
332                 panic("%s: bogus ip version %u", __func__, v>>4);
333         }
334
335         if (netisr_queue(isr, m)) {     /* (0) on success. */
336                 IPIPSTAT_INC(ipips_qfull);
337                 DPRINTF(("%s: packet dropped because of full queue\n",
338                         __func__));
339         }
340 }
341
342 int
343 ipip_output(
344         struct mbuf *m,
345         struct ipsecrequest *isr,
346         struct mbuf **mp,
347         int skip,
348         int protoff
349 )
350 {
351         struct secasvar *sav;
352         u_int8_t tp, otos;
353         struct secasindex *saidx;
354         int error;
355 #if defined(INET) || defined(INET6)
356         u_int8_t itos;
357 #endif
358 #ifdef INET
359         struct ip *ipo;
360 #endif /* INET */
361 #ifdef INET6
362         struct ip6_hdr *ip6, *ip6o;
363 #endif /* INET6 */
364
365         sav = isr->sav;
366         IPSEC_ASSERT(sav != NULL, ("null SA"));
367         IPSEC_ASSERT(sav->sah != NULL, ("null SAH"));
368
369         /* XXX Deal with empty TDB source/destination addresses. */
370
371         m_copydata(m, 0, 1, &tp);
372         tp = (tp >> 4) & 0xff;  /* Get the IP version number. */
373
374         saidx = &sav->sah->saidx;
375         switch (saidx->dst.sa.sa_family) {
376 #ifdef INET
377         case AF_INET:
378                 if (saidx->src.sa.sa_family != AF_INET ||
379                     saidx->src.sin.sin_addr.s_addr == INADDR_ANY ||
380                     saidx->dst.sin.sin_addr.s_addr == INADDR_ANY) {
381                         DPRINTF(("%s: unspecified tunnel endpoint "
382                             "address in SA %s/%08lx\n", __func__,
383                             ipsec_address(&saidx->dst),
384                             (u_long) ntohl(sav->spi)));
385                         IPIPSTAT_INC(ipips_unspec);
386                         error = EINVAL;
387                         goto bad;
388                 }
389
390                 M_PREPEND(m, sizeof(struct ip), M_NOWAIT);
391                 if (m == 0) {
392                         DPRINTF(("%s: M_PREPEND failed\n", __func__));
393                         IPIPSTAT_INC(ipips_hdrops);
394                         error = ENOBUFS;
395                         goto bad;
396                 }
397
398                 ipo = mtod(m, struct ip *);
399
400                 ipo->ip_v = IPVERSION;
401                 ipo->ip_hl = 5;
402                 ipo->ip_len = htons(m->m_pkthdr.len);
403                 ipo->ip_ttl = V_ip_defttl;
404                 ipo->ip_sum = 0;
405                 ipo->ip_src = saidx->src.sin.sin_addr;
406                 ipo->ip_dst = saidx->dst.sin.sin_addr;
407
408                 ipo->ip_id = ip_newid();
409
410                 /* If the inner protocol is IP... */
411                 switch (tp) {
412                 case IPVERSION:
413                         /* Save ECN notification */
414                         m_copydata(m, sizeof(struct ip) +
415                             offsetof(struct ip, ip_tos),
416                             sizeof(u_int8_t), (caddr_t) &itos);
417
418                         ipo->ip_p = IPPROTO_IPIP;
419
420                         /*
421                          * We should be keeping tunnel soft-state and
422                          * send back ICMPs if needed.
423                          */
424                         m_copydata(m, sizeof(struct ip) +
425                             offsetof(struct ip, ip_off),
426                             sizeof(u_int16_t), (caddr_t) &ipo->ip_off);
427                         ipo->ip_off = ntohs(ipo->ip_off);
428                         ipo->ip_off &= ~(IP_DF | IP_MF | IP_OFFMASK);
429                         ipo->ip_off = htons(ipo->ip_off);
430                         break;
431 #ifdef INET6
432                 case (IPV6_VERSION >> 4):
433                 {
434                         u_int32_t itos32;
435
436                         /* Save ECN notification. */
437                         m_copydata(m, sizeof(struct ip) +
438                             offsetof(struct ip6_hdr, ip6_flow),
439                             sizeof(u_int32_t), (caddr_t) &itos32);
440                         itos = ntohl(itos32) >> 20;
441                         ipo->ip_p = IPPROTO_IPV6;
442                         ipo->ip_off = 0;
443                         break;
444                 }
445 #endif /* INET6 */
446                 default:
447                         goto nofamily;
448                 }
449
450                 otos = 0;
451                 ip_ecn_ingress(ECN_ALLOWED, &otos, &itos);
452                 ipo->ip_tos = otos;
453                 break;
454 #endif /* INET */
455
456 #ifdef INET6
457         case AF_INET6:
458                 if (IN6_IS_ADDR_UNSPECIFIED(&saidx->dst.sin6.sin6_addr) ||
459                     saidx->src.sa.sa_family != AF_INET6 ||
460                     IN6_IS_ADDR_UNSPECIFIED(&saidx->src.sin6.sin6_addr)) {
461                         DPRINTF(("%s: unspecified tunnel endpoint "
462                             "address in SA %s/%08lx\n", __func__,
463                             ipsec_address(&saidx->dst),
464                             (u_long) ntohl(sav->spi)));
465                         IPIPSTAT_INC(ipips_unspec);
466                         error = ENOBUFS;
467                         goto bad;
468                 }
469
470                 /* scoped address handling */
471                 ip6 = mtod(m, struct ip6_hdr *);
472                 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_src))
473                         ip6->ip6_src.s6_addr16[1] = 0;
474                 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst))
475                         ip6->ip6_dst.s6_addr16[1] = 0;
476
477                 M_PREPEND(m, sizeof(struct ip6_hdr), M_NOWAIT);
478                 if (m == 0) {
479                         DPRINTF(("%s: M_PREPEND failed\n", __func__));
480                         IPIPSTAT_INC(ipips_hdrops);
481                         error = ENOBUFS;
482                         goto bad;
483                 }
484
485                 /* Initialize IPv6 header */
486                 ip6o = mtod(m, struct ip6_hdr *);
487                 ip6o->ip6_flow = 0;
488                 ip6o->ip6_vfc &= ~IPV6_VERSION_MASK;
489                 ip6o->ip6_vfc |= IPV6_VERSION;
490                 ip6o->ip6_plen = htons(m->m_pkthdr.len);
491                 ip6o->ip6_hlim = IPV6_DEFHLIM;
492                 ip6o->ip6_dst = saidx->dst.sin6.sin6_addr;
493                 ip6o->ip6_src = saidx->src.sin6.sin6_addr;
494
495                 /* Fix payload length */
496                 ip6o->ip6_plen = htons(m->m_pkthdr.len - sizeof(*ip6));
497
498                 switch (tp) {
499 #ifdef INET
500                 case IPVERSION:
501                         /* Save ECN notification */
502                         m_copydata(m, sizeof(struct ip6_hdr) +
503                             offsetof(struct ip, ip_tos), sizeof(u_int8_t),
504                             (caddr_t) &itos);
505
506                         /* This is really IPVERSION. */
507                         ip6o->ip6_nxt = IPPROTO_IPIP;
508                         break;
509 #endif /* INET */
510                 case (IPV6_VERSION >> 4):
511                 {
512                         u_int32_t itos32;
513
514                         /* Save ECN notification. */
515                         m_copydata(m, sizeof(struct ip6_hdr) +
516                             offsetof(struct ip6_hdr, ip6_flow),
517                             sizeof(u_int32_t), (caddr_t) &itos32);
518                         itos = ntohl(itos32) >> 20;
519
520                         ip6o->ip6_nxt = IPPROTO_IPV6;
521                         break;
522                 }
523                 default:
524                         goto nofamily;
525                 }
526
527                 otos = 0;
528                 ip_ecn_ingress(V_ip6_ipsec_ecn, &otos, &itos);
529                 ip6o->ip6_flow |= htonl((u_int32_t) otos << 20);
530                 break;
531 #endif /* INET6 */
532
533         default:
534 nofamily:
535                 DPRINTF(("%s: unsupported protocol family %u\n", __func__,
536                     saidx->dst.sa.sa_family));
537                 IPIPSTAT_INC(ipips_family);
538                 error = EAFNOSUPPORT;           /* XXX diffs from openbsd */
539                 goto bad;
540         }
541
542         IPIPSTAT_INC(ipips_opackets);
543         *mp = m;
544
545 #ifdef INET
546         if (saidx->dst.sa.sa_family == AF_INET) {
547 #if 0
548                 if (sav->tdb_xform->xf_type == XF_IP4)
549                         tdb->tdb_cur_bytes +=
550                             m->m_pkthdr.len - sizeof(struct ip);
551 #endif
552                 IPIPSTAT_ADD(ipips_obytes,
553                     m->m_pkthdr.len - sizeof(struct ip));
554         }
555 #endif /* INET */
556
557 #ifdef INET6
558         if (saidx->dst.sa.sa_family == AF_INET6) {
559 #if 0
560                 if (sav->tdb_xform->xf_type == XF_IP4)
561                         tdb->tdb_cur_bytes +=
562                             m->m_pkthdr.len - sizeof(struct ip6_hdr);
563 #endif
564                 IPIPSTAT_ADD(ipips_obytes,
565                     m->m_pkthdr.len - sizeof(struct ip6_hdr));
566         }
567 #endif /* INET6 */
568
569         return 0;
570 bad:
571         if (m)
572                 m_freem(m);
573         *mp = NULL;
574         return (error);
575 }
576
577 #ifdef IPSEC
578 #if defined(INET) || defined(INET6)
579 static int
580 ipe4_init(struct secasvar *sav, struct xformsw *xsp)
581 {
582         sav->tdb_xform = xsp;
583         return 0;
584 }
585
586 static int
587 ipe4_zeroize(struct secasvar *sav)
588 {
589         sav->tdb_xform = NULL;
590         return 0;
591 }
592
593 static int
594 ipe4_input(struct mbuf *m, struct secasvar *sav, int skip, int protoff)
595 {
596         /* This is a rather serious mistake, so no conditional printing. */
597         printf("%s: should never be called\n", __func__);
598         if (m)
599                 m_freem(m);
600         return EOPNOTSUPP;
601 }
602
603 static struct xformsw ipe4_xformsw = {
604         XF_IP4,         0,              "IPv4 Simple Encapsulation",
605         ipe4_init,      ipe4_zeroize,   ipe4_input,     ipip_output,
606 };
607
608 extern struct domain inetdomain;
609 #endif /* INET || INET6 */
610 #ifdef INET
611 static struct protosw ipe4_protosw = {
612         .pr_type =      SOCK_RAW,
613         .pr_domain =    &inetdomain,
614         .pr_protocol =  IPPROTO_IPV4,
615         .pr_flags =     PR_ATOMIC|PR_ADDR|PR_LASTHDR,
616         .pr_input =     ip4_input,
617         .pr_ctloutput = rip_ctloutput,
618         .pr_usrreqs =   &rip_usrreqs
619 };
620 #endif /* INET */
621 #if defined(INET6) && defined(INET)
622 static struct ip6protosw ipe6_protosw = {
623         .pr_type =      SOCK_RAW,
624         .pr_domain =    &inetdomain,
625         .pr_protocol =  IPPROTO_IPV6,
626         .pr_flags =     PR_ATOMIC|PR_ADDR|PR_LASTHDR,
627         .pr_input =     ip4_input6,
628         .pr_ctloutput = rip_ctloutput,
629         .pr_usrreqs =   &rip_usrreqs
630 };
631 #endif /* INET6 && INET */
632
633 #ifdef INET
634 /*
635  * Check the encapsulated packet to see if we want it
636  */
637 static int
638 ipe4_encapcheck(const struct mbuf *m, int off, int proto, void *arg)
639 {
640         /*
641          * Only take packets coming from IPSEC tunnels; the rest
642          * must be handled by the gif tunnel code.  Note that we
643          * also return a minimum priority when we want the packet
644          * so any explicit gif tunnels take precedence.
645          */
646         return ((m->m_flags & M_IPSEC) != 0 ? 1 : 0);
647 }
648 #endif /* INET */
649
650 static void
651 ipe4_attach(void)
652 {
653
654         xform_register(&ipe4_xformsw);
655         /* attach to encapsulation framework */
656         /* XXX save return cookie for detach on module remove */
657 #ifdef INET
658         (void) encap_attach_func(AF_INET, -1,
659                 ipe4_encapcheck, &ipe4_protosw, NULL);
660 #endif
661 #if defined(INET6) && defined(INET)
662         (void) encap_attach_func(AF_INET6, -1,
663                 ipe4_encapcheck, (struct protosw *)&ipe6_protosw, NULL);
664 #endif
665 }
666 SYSINIT(ipe4_xform_init, SI_SUB_PROTO_DOMAIN, SI_ORDER_MIDDLE, ipe4_attach, NULL);
667 #endif  /* IPSEC */