]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/net/if_fddisubr.c
Update libucl to latest version
[FreeBSD/FreeBSD.git] / sys / net / if_fddisubr.c
1 /*-
2  * Copyright (c) 1995, 1996
3  *      Matt Thomas <matt@3am-software.com>.  All rights reserved.
4  * Copyright (c) 1982, 1989, 1993
5  *      The Regents of the University of California.  All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions
9  * are met:
10  * 1. Redistributions of source code must retain the above copyright
11  *    notice, this list of conditions and the following disclaimer.
12  * 2. Redistributions in binary form must reproduce the above copyright
13  *    notice, this list of conditions and the following disclaimer in the
14  *    documentation and/or other materials provided with the distribution.
15  * 3. All advertising materials mentioning features or use of this software
16  *    must display the following acknowledgement:
17  *      This product includes software developed by the University of
18  *      California, Berkeley and its contributors.
19  * 4. Neither the name of the University nor the names of its contributors
20  *    may be used to endorse or promote products derived from this software
21  *    without specific prior written permission.
22  *
23  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33  * SUCH DAMAGE.
34  *
35  *      from: if_ethersubr.c,v 1.5 1994/12/13 22:31:45 wollman Exp
36  * $FreeBSD$
37  */
38
39 #include "opt_inet.h"
40 #include "opt_inet6.h"
41
42 #include <sys/param.h>
43 #include <sys/systm.h>
44 #include <sys/kernel.h>
45 #include <sys/malloc.h>
46 #include <sys/mbuf.h>
47 #include <sys/module.h>
48 #include <sys/socket.h>
49 #include <sys/sockio.h>
50
51 #include <net/if.h>
52 #include <net/if_var.h>
53 #include <net/if_dl.h>
54 #include <net/if_llc.h>
55 #include <net/if_types.h>
56 #include <net/if_llatbl.h>
57
58 #include <net/ethernet.h>
59 #include <net/netisr.h>
60 #include <net/route.h>
61 #include <net/bpf.h>
62 #include <net/fddi.h>
63
64 #if defined(INET) || defined(INET6)
65 #include <netinet/in.h>
66 #include <netinet/in_var.h>
67 #include <netinet/if_ether.h>
68 #endif
69 #ifdef INET6
70 #include <netinet6/nd6.h>
71 #endif
72
73 #ifdef DECNET
74 #include <netdnet/dn.h>
75 #endif
76
77 #include <security/mac/mac_framework.h>
78
79 static const u_char fddibroadcastaddr[FDDI_ADDR_LEN] =
80                         { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
81
82 static int fddi_resolvemulti(struct ifnet *, struct sockaddr **,
83                               struct sockaddr *);
84 static int fddi_output(struct ifnet *, struct mbuf *, const struct sockaddr *,
85                        struct route *); 
86 static void fddi_input(struct ifnet *ifp, struct mbuf *m);
87
88 #define senderr(e)      do { error = (e); goto bad; } while (0)
89
90 /*
91  * FDDI output routine.
92  * Encapsulate a packet of type family for the local net.
93  * Use trailer local net encapsulation if enough data in first
94  * packet leaves a multiple of 512 bytes of data in remainder.
95  */
96 static int
97 fddi_output(struct ifnet *ifp, struct mbuf *m, const struct sockaddr *dst,
98         struct route *ro)
99 {
100         u_int16_t type;
101         int loop_copy = 0, error = 0, hdrcmplt = 0;
102         u_char esrc[FDDI_ADDR_LEN], edst[FDDI_ADDR_LEN];
103         struct fddi_header *fh;
104 #ifdef INET
105         int is_gw;
106 #endif
107
108 #ifdef MAC
109         error = mac_ifnet_check_transmit(ifp, m);
110         if (error)
111                 senderr(error);
112 #endif
113
114         if (ifp->if_flags & IFF_MONITOR)
115                 senderr(ENETDOWN);
116         if (!((ifp->if_flags & IFF_UP) &&
117             (ifp->if_drv_flags & IFF_DRV_RUNNING)))
118                 senderr(ENETDOWN);
119         getmicrotime(&ifp->if_lastchange);
120
121         switch (dst->sa_family) {
122 #ifdef INET
123         case AF_INET: {
124                 is_gw = 0;
125                 if (ro != NULL && ro->ro_rt != NULL &&
126                     (ro->ro_rt->rt_flags & RTF_GATEWAY) != 0)
127                         is_gw = 1;
128                 error = arpresolve(ifp, is_gw, m, dst, edst, NULL);
129                 if (error)
130                         return (error == EWOULDBLOCK ? 0 : error);
131                 type = htons(ETHERTYPE_IP);
132                 break;
133         }
134         case AF_ARP:
135         {
136                 struct arphdr *ah;
137                 ah = mtod(m, struct arphdr *);
138                 ah->ar_hrd = htons(ARPHRD_ETHER);
139
140                 loop_copy = -1; /* if this is for us, don't do it */
141
142                 switch (ntohs(ah->ar_op)) {
143                 case ARPOP_REVREQUEST:
144                 case ARPOP_REVREPLY:
145                         type = htons(ETHERTYPE_REVARP);
146                         break;
147                 case ARPOP_REQUEST:
148                 case ARPOP_REPLY:
149                 default:
150                         type = htons(ETHERTYPE_ARP);
151                         break;
152                 }
153
154                 if (m->m_flags & M_BCAST)
155                         bcopy(ifp->if_broadcastaddr, edst, FDDI_ADDR_LEN);
156                 else
157                         bcopy(ar_tha(ah), edst, FDDI_ADDR_LEN);
158
159         }
160         break;
161 #endif /* INET */
162 #ifdef INET6
163         case AF_INET6:
164                 error = nd6_storelladdr(ifp, m, dst, (u_char *)edst, NULL);
165                 if (error)
166                         return (error); /* Something bad happened */
167                 type = htons(ETHERTYPE_IPV6);
168                 break;
169 #endif /* INET6 */
170         case pseudo_AF_HDRCMPLT:
171         {
172                 const struct ether_header *eh;
173
174                 hdrcmplt = 1;
175                 eh = (const struct ether_header *)dst->sa_data;
176                 bcopy(eh->ether_shost, esrc, FDDI_ADDR_LEN);
177                 /* FALLTHROUGH */
178         }
179
180         case AF_UNSPEC:
181         {
182                 const struct ether_header *eh;
183
184                 loop_copy = -1;
185                 eh = (const struct ether_header *)dst->sa_data;
186                 bcopy(eh->ether_dhost, edst, FDDI_ADDR_LEN);
187                 if (*edst & 1)
188                         m->m_flags |= (M_BCAST|M_MCAST);
189                 type = eh->ether_type;
190                 break;
191         }
192
193         case AF_IMPLINK:
194         {
195                 fh = mtod(m, struct fddi_header *);
196                 error = EPROTONOSUPPORT;
197                 switch (fh->fddi_fc & (FDDIFC_C|FDDIFC_L|FDDIFC_F)) {
198                         case FDDIFC_LLC_ASYNC: {
199                                 /* legal priorities are 0 through 7 */
200                                 if ((fh->fddi_fc & FDDIFC_Z) > 7)
201                                         goto bad;
202                                 break;
203                         }
204                         case FDDIFC_LLC_SYNC: {
205                                 /* FDDIFC_Z bits reserved, must be zero */
206                                 if (fh->fddi_fc & FDDIFC_Z)
207                                         goto bad;
208                                 break;
209                         }
210                         case FDDIFC_SMT: {
211                                 /* FDDIFC_Z bits must be non zero */
212                                 if ((fh->fddi_fc & FDDIFC_Z) == 0)
213                                         goto bad;
214                                 break;
215                         }
216                         default: {
217                                 /* anything else is too dangerous */
218                                 goto bad;
219                         }
220                 }
221                 error = 0;
222                 if (fh->fddi_dhost[0] & 1)
223                         m->m_flags |= (M_BCAST|M_MCAST);
224                 goto queue_it;
225         }
226         default:
227                 if_printf(ifp, "can't handle af%d\n", dst->sa_family);
228                 senderr(EAFNOSUPPORT);
229         }
230
231         /*
232          * Add LLC header.
233          */
234         if (type != 0) {
235                 struct llc *l;
236                 M_PREPEND(m, LLC_SNAPFRAMELEN, M_NOWAIT);
237                 if (m == 0)
238                         senderr(ENOBUFS);
239                 l = mtod(m, struct llc *);
240                 l->llc_control = LLC_UI;
241                 l->llc_dsap = l->llc_ssap = LLC_SNAP_LSAP;
242                 l->llc_snap.org_code[0] =
243                         l->llc_snap.org_code[1] =
244                         l->llc_snap.org_code[2] = 0;
245                 l->llc_snap.ether_type = htons(type);
246         }
247
248         /*
249          * Add local net header.  If no space in first mbuf,
250          * allocate another.
251          */
252         M_PREPEND(m, FDDI_HDR_LEN, M_NOWAIT);
253         if (m == 0)
254                 senderr(ENOBUFS);
255         fh = mtod(m, struct fddi_header *);
256         fh->fddi_fc = FDDIFC_LLC_ASYNC|FDDIFC_LLC_PRIO4;
257         bcopy((caddr_t)edst, (caddr_t)fh->fddi_dhost, FDDI_ADDR_LEN);
258   queue_it:
259         if (hdrcmplt)
260                 bcopy((caddr_t)esrc, (caddr_t)fh->fddi_shost, FDDI_ADDR_LEN);
261         else
262                 bcopy(IF_LLADDR(ifp), (caddr_t)fh->fddi_shost,
263                         FDDI_ADDR_LEN);
264
265         /*
266          * If a simplex interface, and the packet is being sent to our
267          * Ethernet address or a broadcast address, loopback a copy.
268          * XXX To make a simplex device behave exactly like a duplex
269          * device, we should copy in the case of sending to our own
270          * ethernet address (thus letting the original actually appear
271          * on the wire). However, we don't do that here for security
272          * reasons and compatibility with the original behavior.
273          */
274         if ((ifp->if_flags & IFF_SIMPLEX) && (loop_copy != -1)) {
275                 if ((m->m_flags & M_BCAST) || (loop_copy > 0)) {
276                         struct mbuf *n;
277                         n = m_copy(m, 0, (int)M_COPYALL);
278                         (void) if_simloop(ifp, n, dst->sa_family,
279                                           FDDI_HDR_LEN);
280                 } else if (bcmp(fh->fddi_dhost, fh->fddi_shost,
281                                 FDDI_ADDR_LEN) == 0) {
282                         (void) if_simloop(ifp, m, dst->sa_family,
283                                           FDDI_HDR_LEN);
284                         return (0);     /* XXX */
285                 }
286         }
287
288         error = (ifp->if_transmit)(ifp, m);
289         if (error)
290                 if_inc_counter(ifp, IFCOUNTER_OERRORS, 1);
291
292         return (error);
293
294 bad:
295         if_inc_counter(ifp, IFCOUNTER_OERRORS, 1);
296         if (m)
297                 m_freem(m);
298         return (error);
299 }
300
301 /*
302  * Process a received FDDI packet.
303  */
304 static void
305 fddi_input(ifp, m)
306         struct ifnet *ifp;
307         struct mbuf *m;
308 {
309         int isr;
310         struct llc *l;
311         struct fddi_header *fh;
312
313         /*
314          * Do consistency checks to verify assumptions
315          * made by code past this point.
316          */
317         if ((m->m_flags & M_PKTHDR) == 0) {
318                 if_printf(ifp, "discard frame w/o packet header\n");
319                 if_inc_counter(ifp, IFCOUNTER_IERRORS, 1);
320                 m_freem(m);
321                 return;
322         }
323         if (m->m_pkthdr.rcvif == NULL) {
324                 if_printf(ifp, "discard frame w/o interface pointer\n");
325                 if_inc_counter(ifp, IFCOUNTER_IERRORS, 1);
326                 m_freem(m);
327                 return;
328         }
329
330         m = m_pullup(m, FDDI_HDR_LEN);
331         if (m == NULL) {
332                 if_inc_counter(ifp, IFCOUNTER_IERRORS, 1);
333                 goto dropanyway;
334         }
335         fh = mtod(m, struct fddi_header *);
336
337         /*
338          * Discard packet if interface is not up.
339          */
340         if (!((ifp->if_flags & IFF_UP) &&
341             (ifp->if_drv_flags & IFF_DRV_RUNNING)))
342                 goto dropanyway;
343
344         /*
345          * Give bpf a chance at the packet.
346          */
347         BPF_MTAP(ifp, m);
348
349         /*
350          * Interface marked for monitoring; discard packet.
351          */
352         if (ifp->if_flags & IFF_MONITOR) {
353                 m_freem(m);
354                 return;
355         }
356
357 #ifdef MAC
358         mac_ifnet_create_mbuf(ifp, m);
359 #endif
360
361         /*
362          * Update interface statistics.
363          */
364         if_inc_counter(ifp, IFCOUNTER_IBYTES, m->m_pkthdr.len);
365         getmicrotime(&ifp->if_lastchange);
366
367         /*
368          * Discard non local unicast packets when interface
369          * is in promiscuous mode.
370          */
371         if ((ifp->if_flags & IFF_PROMISC) && ((fh->fddi_dhost[0] & 1) == 0) &&
372             (bcmp(IF_LLADDR(ifp), (caddr_t)fh->fddi_dhost,
373              FDDI_ADDR_LEN) != 0))
374                 goto dropanyway;
375
376         /*
377          * Set mbuf flags for bcast/mcast.
378          */
379         if (fh->fddi_dhost[0] & 1) {
380                 if (bcmp(ifp->if_broadcastaddr, fh->fddi_dhost,
381                     FDDI_ADDR_LEN) == 0)
382                         m->m_flags |= M_BCAST;
383                 else
384                         m->m_flags |= M_MCAST;
385                 if_inc_counter(ifp, IFCOUNTER_IMCASTS, 1);
386         }
387
388 #ifdef M_LINK0
389         /*
390          * If this has a LLC priority of 0, then mark it so upper
391          * layers have a hint that it really came via a FDDI/Ethernet
392          * bridge.
393          */
394         if ((fh->fddi_fc & FDDIFC_LLC_PRIO7) == FDDIFC_LLC_PRIO0)
395                 m->m_flags |= M_LINK0;
396 #endif
397
398         /* Strip off FDDI header. */
399         m_adj(m, FDDI_HDR_LEN);
400
401         m = m_pullup(m, LLC_SNAPFRAMELEN);
402         if (m == 0) {
403                 if_inc_counter(ifp, IFCOUNTER_IERRORS, 1);
404                 goto dropanyway;
405         }
406         l = mtod(m, struct llc *);
407
408         switch (l->llc_dsap) {
409         case LLC_SNAP_LSAP:
410         {
411                 u_int16_t type;
412                 if ((l->llc_control != LLC_UI) ||
413                     (l->llc_ssap != LLC_SNAP_LSAP)) {
414                         if_inc_counter(ifp, IFCOUNTER_NOPROTO, 1);
415                         goto dropanyway;
416                 }
417                 if (l->llc_snap.org_code[0] != 0 ||
418                     l->llc_snap.org_code[1] != 0 ||
419                     l->llc_snap.org_code[2] != 0) {
420                         if_inc_counter(ifp, IFCOUNTER_NOPROTO, 1);
421                         goto dropanyway;
422                 }
423
424                 type = ntohs(l->llc_snap.ether_type);
425                 m_adj(m, LLC_SNAPFRAMELEN);
426
427                 switch (type) {
428 #ifdef INET
429                 case ETHERTYPE_IP:
430                         if ((m = ip_fastforward(m)) == NULL)
431                                 return;
432                         isr = NETISR_IP;
433                         break;
434
435                 case ETHERTYPE_ARP:
436                         if (ifp->if_flags & IFF_NOARP)
437                                 goto dropanyway;
438                         isr = NETISR_ARP;
439                         break;
440 #endif
441 #ifdef INET6
442                 case ETHERTYPE_IPV6:
443                         isr = NETISR_IPV6;
444                         break;
445 #endif
446 #ifdef DECNET
447                 case ETHERTYPE_DECNET:
448                         isr = NETISR_DECNET;
449                         break;
450 #endif
451                 default:
452                         /* printf("fddi_input: unknown protocol 0x%x\n", type); */
453                         if_inc_counter(ifp, IFCOUNTER_NOPROTO, 1);
454                         goto dropanyway;
455                 }
456                 break;
457         }
458                 
459         default:
460                 /* printf("fddi_input: unknown dsap 0x%x\n", l->llc_dsap); */
461                 if_inc_counter(ifp, IFCOUNTER_NOPROTO, 1);
462                 goto dropanyway;
463         }
464         M_SETFIB(m, ifp->if_fib);
465         netisr_dispatch(isr, m);
466         return;
467
468 dropanyway:
469         if_inc_counter(ifp, IFCOUNTER_IQDROPS, 1);
470         if (m)
471                 m_freem(m);
472         return;
473 }
474
475 /*
476  * Perform common duties while attaching to interface list
477  */
478 void
479 fddi_ifattach(ifp, lla, bpf)
480         struct ifnet *ifp;
481         const u_int8_t *lla;
482         int bpf;
483 {
484         struct ifaddr *ifa;
485         struct sockaddr_dl *sdl;
486
487         ifp->if_type = IFT_FDDI;
488         ifp->if_addrlen = FDDI_ADDR_LEN;
489         ifp->if_hdrlen = 21;
490
491         if_attach(ifp);         /* Must be called before additional assignments */
492
493         ifp->if_mtu = FDDIMTU;
494         ifp->if_output = fddi_output;
495         ifp->if_input = fddi_input;
496         ifp->if_resolvemulti = fddi_resolvemulti;
497         ifp->if_broadcastaddr = fddibroadcastaddr;
498         ifp->if_baudrate = 100000000;
499 #ifdef IFF_NOTRAILERS
500         ifp->if_flags |= IFF_NOTRAILERS;
501 #endif
502         ifa = ifp->if_addr;
503         KASSERT(ifa != NULL, ("%s: no lladdr!\n", __func__));
504
505         sdl = (struct sockaddr_dl *)ifa->ifa_addr;
506         sdl->sdl_type = IFT_FDDI;
507         sdl->sdl_alen = ifp->if_addrlen;
508         bcopy(lla, LLADDR(sdl), ifp->if_addrlen);
509
510         if (bpf)
511                 bpfattach(ifp, DLT_FDDI, FDDI_HDR_LEN);
512
513         return;
514 }
515
516 void
517 fddi_ifdetach(ifp, bpf)
518         struct ifnet *ifp;
519         int bpf;
520 {
521      
522         if (bpf)
523                 bpfdetach(ifp);
524
525         if_detach(ifp);
526
527         return;
528 }
529
530 int
531 fddi_ioctl (ifp, command, data)
532         struct ifnet *ifp;
533         u_long command;
534         caddr_t data;
535 {
536         struct ifaddr *ifa;
537         struct ifreq *ifr;
538         int error;
539
540         ifa = (struct ifaddr *) data;
541         ifr = (struct ifreq *) data;
542         error = 0;
543
544         switch (command) {
545         case SIOCSIFADDR:
546                 ifp->if_flags |= IFF_UP;
547
548                 switch (ifa->ifa_addr->sa_family) {
549 #ifdef INET
550                 case AF_INET:   /* before arpwhohas */
551                         ifp->if_init(ifp->if_softc);
552                         arp_ifinit(ifp, ifa);
553                         break;
554 #endif
555                 default:
556                         ifp->if_init(ifp->if_softc);
557                         break;
558                 }
559                 break;
560         case SIOCGIFADDR: {
561                         struct sockaddr *sa;
562
563                         sa = (struct sockaddr *) & ifr->ifr_data;
564                         bcopy(IF_LLADDR(ifp),
565                               (caddr_t) sa->sa_data, FDDI_ADDR_LEN);
566
567                 }
568                 break;
569         case SIOCSIFMTU:
570                 /*
571                  * Set the interface MTU.
572                  */
573                 if (ifr->ifr_mtu > FDDIMTU) {
574                         error = EINVAL;
575                 } else {
576                         ifp->if_mtu = ifr->ifr_mtu;
577                 }
578                 break;
579         default:
580                 error = EINVAL;
581                 break;
582         }
583
584         return (error);
585 }
586
587 static int
588 fddi_resolvemulti(ifp, llsa, sa)
589         struct ifnet *ifp;
590         struct sockaddr **llsa;
591         struct sockaddr *sa;
592 {
593         struct sockaddr_dl *sdl;
594 #ifdef INET
595         struct sockaddr_in *sin;
596 #endif
597 #ifdef INET6
598         struct sockaddr_in6 *sin6;
599 #endif
600         u_char *e_addr;
601
602         switch(sa->sa_family) {
603         case AF_LINK:
604                 /*
605                  * No mapping needed. Just check that it's a valid MC address.
606                  */
607                 sdl = (struct sockaddr_dl *)sa;
608                 e_addr = LLADDR(sdl);
609                 if ((e_addr[0] & 1) != 1)
610                         return (EADDRNOTAVAIL);
611                 *llsa = 0;
612                 return (0);
613
614 #ifdef INET
615         case AF_INET:
616                 sin = (struct sockaddr_in *)sa;
617                 if (!IN_MULTICAST(ntohl(sin->sin_addr.s_addr)))
618                         return (EADDRNOTAVAIL);
619                 sdl = link_init_sdl(ifp, *llsa, IFT_FDDI);
620                 sdl->sdl_nlen = 0;
621                 sdl->sdl_alen = FDDI_ADDR_LEN;
622                 sdl->sdl_slen = 0;
623                 e_addr = LLADDR(sdl);
624                 ETHER_MAP_IP_MULTICAST(&sin->sin_addr, e_addr);
625                 *llsa = (struct sockaddr *)sdl;
626                 return (0);
627 #endif
628 #ifdef INET6
629         case AF_INET6:
630                 sin6 = (struct sockaddr_in6 *)sa;
631                 if (IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)) {
632                         /*
633                          * An IP6 address of 0 means listen to all
634                          * of the Ethernet multicast address used for IP6.
635                          * (This is used for multicast routers.)
636                          */
637                         ifp->if_flags |= IFF_ALLMULTI;
638                         *llsa = 0;
639                         return (0);
640                 }
641                 if (!IN6_IS_ADDR_MULTICAST(&sin6->sin6_addr))
642                         return (EADDRNOTAVAIL);
643                 sdl = link_init_sdl(ifp, *llsa, IFT_FDDI);
644                 sdl->sdl_nlen = 0;
645                 sdl->sdl_alen = FDDI_ADDR_LEN;
646                 sdl->sdl_slen = 0;
647                 e_addr = LLADDR(sdl);
648                 ETHER_MAP_IPV6_MULTICAST(&sin6->sin6_addr, e_addr);
649                 *llsa = (struct sockaddr *)sdl;
650                 return (0);
651 #endif
652
653         default:
654                 /*
655                  * Well, the text isn't quite right, but it's the name
656                  * that counts...
657                  */
658                 return (EAFNOSUPPORT);
659         }
660
661         return (0);
662 }
663
664 static moduledata_t fddi_mod = {
665         "fddi", /* module name */
666         NULL,   /* event handler */
667         0       /* extra data */
668 };
669
670 DECLARE_MODULE(fddi, fddi_mod, SI_SUB_PSEUDO, SI_ORDER_ANY);
671 MODULE_VERSION(fddi, 1);