All pastes #171033 Raw Edit

Unnamed

public text v1 · immutable
·published 2006-09-14 23:20 UTC
rendered paste body
--- kernel_sunos5.c.orig        Thu Sep 14 10:27:24 2006
+++ kernel_sunos5.c     Thu Sep 14 16:05:54 2006
@@ -1082,6 +1082,10 @@
        }

        switch (ifrp->ifr_name[0]) {
+        case 'a':          /* ath (802.11) */
+            if (ifrp->ifr_name[1] == 't' && ifrp->ifr_name[2] == 'h')
+                ifp->ifType = 71;
+            break;
        case 'l':          /* le / lo / lane (ATM LAN Emulation) */
            if (ifrp->ifr_name[1] == 'o') {
                if (!ifp->ifSpeed)
@@ -1136,8 +1140,11 @@
            }
            break;

-       case 'i':          /* ibd (Infiniband) */
-           ifp->ifType = 199;
+       case 'i':          /* ibd (Infiniband)/ip.tun (IP tunnel) */
+            if (ifrp->ifr_name[1] == 'b')
+               ifp->ifType = 199;
+            else if (ifrp->ifr_name[1] == 'p')
+                ifp->ifType = 131;
            break;
        }