Lines 49-55
Link Here
|
49 |
|
49 |
|
50 |
struct iodesc sockets[SOPEN_MAX]; |
50 |
struct iodesc sockets[SOPEN_MAX]; |
51 |
#ifdef NETIF_DEBUG |
51 |
#ifdef NETIF_DEBUG |
52 |
int netif_debug = 0; |
52 |
int netif_debug = 1; |
53 |
#endif |
53 |
#endif |
54 |
|
54 |
|
55 |
/* |
55 |
/* |
Lines 114-120
Link Here
|
114 |
|
114 |
|
115 |
#ifdef NETIF_DEBUG |
115 |
#ifdef NETIF_DEBUG |
116 |
if (netif_debug) |
116 |
if (netif_debug) |
117 |
printf("\t%s%d:", drv->netif_bname, |
117 |
printf(" * %s%d:\n", drv->netif_bname, |
118 |
cur_if.nif_unit); |
118 |
cur_if.nif_unit); |
119 |
#endif |
119 |
#endif |
120 |
|
120 |
|
Lines 124-130
Link Here
|
124 |
if (drv->netif_ifs[u].dif_used & (1 << s)) { |
124 |
if (drv->netif_ifs[u].dif_used & (1 << s)) { |
125 |
#ifdef NETIF_DEBUG |
125 |
#ifdef NETIF_DEBUG |
126 |
if (netif_debug) |
126 |
if (netif_debug) |
127 |
printf(" [%d used]", s); |
127 |
printf(" [%d used]\n", s); |
128 |
#endif |
128 |
#endif |
129 |
continue; |
129 |
continue; |
130 |
} |
130 |
} |
Lines 132-138
Link Here
|
132 |
val = netif_match(&cur_if, machdep_hint); |
132 |
val = netif_match(&cur_if, machdep_hint); |
133 |
#ifdef NETIF_DEBUG |
133 |
#ifdef NETIF_DEBUG |
134 |
if (netif_debug) |
134 |
if (netif_debug) |
135 |
printf(" [%d -> %d]", s, val); |
135 |
printf(" [%d -> %d]\n", s, val); |
136 |
#endif |
136 |
#endif |
137 |
if (val > best_val) { |
137 |
if (val > best_val) { |
138 |
best_val = val; |
138 |
best_val = val; |
Lines 139-148
Link Here
|
139 |
best_if = cur_if; |
139 |
best_if = cur_if; |
140 |
} |
140 |
} |
141 |
} |
141 |
} |
142 |
#ifdef NETIF_DEBUG |
|
|
143 |
if (netif_debug) |
144 |
printf("\n"); |
145 |
#endif |
146 |
} |
142 |
} |
147 |
} |
143 |
} |
148 |
|
144 |
|