if.c (70524) | if.c (72084) |
---|---|
1/* 2 * Copyright (c) 1983, 1988, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 22 unchanged lines hidden (view full) --- 31 * SUCH DAMAGE. 32 */ 33 34#ifndef lint 35/* 36static char sccsid[] = "@(#)if.c 8.3 (Berkeley) 4/28/95"; 37*/ 38static const char rcsid[] = | 1/* 2 * Copyright (c) 1983, 1988, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 22 unchanged lines hidden (view full) --- 31 * SUCH DAMAGE. 32 */ 33 34#ifndef lint 35/* 36static char sccsid[] = "@(#)if.c 8.3 (Berkeley) 4/28/95"; 37*/ 38static const char rcsid[] = |
39 "$FreeBSD: head/usr.bin/netstat/if.c 70524 2000-12-30 21:22:54Z phk $"; | 39 "$FreeBSD: head/usr.bin/netstat/if.c 72084 2001-02-06 10:12:15Z phk $"; |
40#endif /* not lint */ 41 42#include <sys/types.h> 43#include <sys/protosw.h> 44#include <sys/socket.h> 45#include <sys/sysctl.h> 46#include <sys/time.h> 47 --- 345 unchanged lines hidden (view full) --- 393 struct sockaddr_in in; 394#ifdef INET6 395 struct sockaddr_in6 in6; 396#endif /* INET6 */ 397 struct sockaddr_dl dl; 398 } msa; 399 const char *fmt; 400 | 40#endif /* not lint */ 41 42#include <sys/types.h> 43#include <sys/protosw.h> 44#include <sys/socket.h> 45#include <sys/sysctl.h> 46#include <sys/time.h> 47 --- 345 unchanged lines hidden (view full) --- 393 struct sockaddr_in in; 394#ifdef INET6 395 struct sockaddr_in6 in6; 396#endif /* INET6 */ 397 struct sockaddr_dl dl; 398 } msa; 399 const char *fmt; 400 |
401 LIST_FOREACH(multiaddr, &ifnet.if_multiaddrs, ifma_link) { | 401 TAILQ_FOREACH(multiaddr, &ifnet.if_multiaddrs, ifma_link) { |
402 if (kread(*(u_long *)multiaddr, (char *)&ifma, 403 sizeof ifma)) 404 break; 405 if (kread((u_long)ifma.ifma_addr, (char *)&msa, 406 sizeof msa)) 407 break; 408 if (msa.sa.sa_family != sa->sa_family) 409 continue; --- 226 unchanged lines hidden --- | 402 if (kread(*(u_long *)multiaddr, (char *)&ifma, 403 sizeof ifma)) 404 break; 405 if (kread((u_long)ifma.ifma_addr, (char *)&msa, 406 sizeof msa)) 407 break; 408 if (msa.sa.sa_family != sa->sa_family) 409 continue; --- 226 unchanged lines hidden --- |