| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: netif_news.c,v 1.8 2009/10/21 23:12:09 snj Exp $ */ | | 1 | /* $NetBSD: netif_news.c,v 1.9 2014/09/21 16:35:44 christos Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * Copyright (c) 1995 Gordon W. Ross | | 4 | * Copyright (c) 1995 Gordon W. Ross |
5 | * All rights reserved. | | 5 | * All rights reserved. |
6 | * | | 6 | * |
7 | * Redistribution and use in source and binary forms, with or without | | 7 | * Redistribution and use in source and binary forms, with or without |
8 | * modification, are permitted provided that the following conditions | | 8 | * modification, are permitted provided that the following conditions |
9 | * are met: | | 9 | * are met: |
10 | * 1. Redistributions of source code must retain the above copyright | | 10 | * 1. Redistributions of source code must retain the above copyright |
11 | * notice, this list of conditions and the following disclaimer. | | 11 | * notice, this list of conditions and the following disclaimer. |
12 | * 2. Redistributions in binary form must reproduce the above copyright | | 12 | * 2. Redistributions in binary form must reproduce the above copyright |
13 | * notice, this list of conditions and the following disclaimer in the | | 13 | * notice, this list of conditions and the following disclaimer in the |
14 | * documentation and/or other materials provided with the distribution. | | 14 | * documentation and/or other materials provided with the distribution. |
| @@ -181,27 +181,27 @@ netif_get(struct iodesc *desc, void *pkt | | | @@ -181,27 +181,27 @@ netif_get(struct iodesc *desc, void *pkt |
181 | printf("dst: %s ", ether_sprintf(eh->ether_dhost)); | | 181 | printf("dst: %s ", ether_sprintf(eh->ether_dhost)); |
182 | printf("src: %s ", ether_sprintf(eh->ether_shost)); | | 182 | printf("src: %s ", ether_sprintf(eh->ether_shost)); |
183 | printf("type: 0x%x\n", eh->ether_type & 0xFFFF); | | 183 | printf("type: 0x%x\n", eh->ether_type & 0xFFFF); |
184 | } | | 184 | } |
185 | #endif | | 185 | #endif |
186 | | | 186 | |
187 | return len; | | 187 | return len; |
188 | } | | 188 | } |
189 | | | 189 | |
190 | int | | 190 | int |
191 | prom_getether(struct romdev *pd, u_char *ea) | | 191 | prom_getether(struct romdev *pd, u_char *ea) |
192 | { | | 192 | { |
193 | | | 193 | |
194 | if (apcall_ioctl(pd->fd, APIOCGIFHWADDR, ea)); | | 194 | if (apcall_ioctl(pd->fd, APIOCGIFHWADDR, ea)) |
195 | return -1; | | 195 | return -1; |
196 | | | 196 | |
197 | #ifdef BOOT_DEBUG | | 197 | #ifdef BOOT_DEBUG |
198 | printf("hardware address %s\n", ether_sprintf(ea)); | | 198 | printf("hardware address %s\n", ether_sprintf(ea)); |
199 | #endif | | 199 | #endif |
200 | | | 200 | |
201 | return 0; | | 201 | return 0; |
202 | } | | 202 | } |
203 | | | 203 | |
204 | satime_t | | 204 | satime_t |
205 | getsecs(void) | | 205 | getsecs(void) |
206 | { | | 206 | { |
207 | u_int t[2]; | | 207 | u_int t[2]; |