mibII.c (146525) | mibII.c (146609) |
---|---|
1/* 2 * Copyright (c) 2001-2003 3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus). 4 * All rights reserved. 5 * 6 * Author: Harti Brandt <harti@freebsd.org> 7 * 8 * Redistribution and use in source and binary forms, with or without --- 430 unchanged lines hidden (view full) --- 439 */ 440void 441mib_extract_addrs(int addrs, u_char *info, struct sockaddr **out) 442{ 443 u_int i; 444 445 for (i = 0; i < RTAX_MAX; i++) { 446 if ((addrs & (1 << i)) != 0) { | 1/* 2 * Copyright (c) 2001-2003 3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus). 4 * All rights reserved. 5 * 6 * Author: Harti Brandt <harti@freebsd.org> 7 * 8 * Redistribution and use in source and binary forms, with or without --- 430 unchanged lines hidden (view full) --- 439 */ 440void 441mib_extract_addrs(int addrs, u_char *info, struct sockaddr **out) 442{ 443 u_int i; 444 445 for (i = 0; i < RTAX_MAX; i++) { 446 if ((addrs & (1 << i)) != 0) { |
447 *out = (struct sockaddr *)info; | 447 *out = (struct sockaddr *)(void *)info; |
448 info += roundup((*out)->sa_len, sizeof(long)); 449 } else 450 *out = NULL; 451 out++; 452 } 453} 454 455/* --- 1111 unchanged lines hidden --- | 448 info += roundup((*out)->sa_len, sizeof(long)); 449 } else 450 *out = NULL; 451 out++; 452 } 453} 454 455/* --- 1111 unchanged lines hidden --- |