ifaddrs.h (93032) | ifaddrs.h (122687) |
---|---|
1/* $FreeBSD: head/include/ifaddrs.h 93032 2002-03-23 17:24:55Z imp $ */ | 1/* $FreeBSD: head/include/ifaddrs.h 122687 2003-11-14 18:53:22Z bms $ */ |
2 3/* 4 * Copyright (c) 1995, 1999 5 * Berkeley Software Design, Inc. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: --- 31 unchanged lines hidden (view full) --- 41/* 42 * This may have been defined in <net/if.h>. Note that if <net/if.h> is 43 * to be included it must be included before this header file. 44 */ 45#ifndef ifa_broadaddr 46#define ifa_broadaddr ifa_dstaddr /* broadcast address interface */ 47#endif 48 | 2 3/* 4 * Copyright (c) 1995, 1999 5 * Berkeley Software Design, Inc. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: --- 31 unchanged lines hidden (view full) --- 41/* 42 * This may have been defined in <net/if.h>. Note that if <net/if.h> is 43 * to be included it must be included before this header file. 44 */ 45#ifndef ifa_broadaddr 46#define ifa_broadaddr ifa_dstaddr /* broadcast address interface */ 47#endif 48 |
49struct ifmaddrs { 50 struct ifmaddrs *ifma_next; 51 struct sockaddr *ifma_name; 52 struct sockaddr *ifma_addr; 53 struct sockaddr *ifma_lladdr; 54}; 55 |
|
49#include <sys/cdefs.h> 50 51__BEGIN_DECLS 52extern int getifaddrs(struct ifaddrs **); 53extern void freeifaddrs(struct ifaddrs *); | 56#include <sys/cdefs.h> 57 58__BEGIN_DECLS 59extern int getifaddrs(struct ifaddrs **); 60extern void freeifaddrs(struct ifaddrs *); |
61extern int getifmaddrs(struct ifmaddrs **); 62extern void freeifmaddrs(struct ifmaddrs *); |
|
54__END_DECLS 55 56#endif | 63__END_DECLS 64 65#endif |