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