ip.h (219820) | ip.h (234183) |
---|---|
1/*- 2 * Copyright (c) 2010 Isilon Systems, Inc. 3 * Copyright (c) 2010 iX Systems, Inc. 4 * Copyright (c) 2010 Panasas, Inc. 5 * 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 --- 15 unchanged lines hidden (view full) --- 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29#ifndef _LINUX_NET_IP_H_ 30#define _LINUX_NET_IP_H_ 31 | 1/*- 2 * Copyright (c) 2010 Isilon Systems, Inc. 3 * Copyright (c) 2010 iX Systems, Inc. 4 * Copyright (c) 2010 Panasas, Inc. 5 * 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 --- 15 unchanged lines hidden (view full) --- 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29#ifndef _LINUX_NET_IP_H_ 30#define _LINUX_NET_IP_H_ 31 |
32#include "opt_inet.h" 33 |
|
32#include <sys/types.h> 33#include <sys/socket.h> 34 35#include <net/if_types.h> 36#include <net/if.h> 37#include <net/if_var.h> 38 39#include <netinet/in.h> 40#include <netinet/in_pcb.h> 41 | 34#include <sys/types.h> 35#include <sys/socket.h> 36 37#include <net/if_types.h> 38#include <net/if.h> 39#include <net/if_var.h> 40 41#include <netinet/in.h> 42#include <netinet/in_pcb.h> 43 |
44#ifdef INET |
|
42static inline void inet_get_local_port_range(int *low, int *high) 43{ 44 *low = V_ipport_firstauto; 45 *high = V_ipport_lastauto; 46} 47 48static inline void 49ip_ib_mc_map(uint32_t addr, const unsigned char *bcast, char *buf) --- 18 unchanged lines hidden (view full) --- 68 buf[13] = 0; 69 buf[14] = 0; 70 buf[15] = 0; 71 buf[16] = (addr >> 24) & 0x0f; 72 buf[17] = (addr >> 16) & 0xff; 73 buf[18] = (addr >> 8) & 0xff; 74 buf[19] = addr & 0xff; 75} | 45static inline void inet_get_local_port_range(int *low, int *high) 46{ 47 *low = V_ipport_firstauto; 48 *high = V_ipport_lastauto; 49} 50 51static inline void 52ip_ib_mc_map(uint32_t addr, const unsigned char *bcast, char *buf) --- 18 unchanged lines hidden (view full) --- 71 buf[13] = 0; 72 buf[14] = 0; 73 buf[15] = 0; 74 buf[16] = (addr >> 24) & 0x0f; 75 buf[17] = (addr >> 16) & 0xff; 76 buf[18] = (addr >> 8) & 0xff; 77 buf[19] = addr & 0xff; 78} |
79#endif |
|
76 77#endif /* _LINUX_NET_IP_H_ */ | 80 81#endif /* _LINUX_NET_IP_H_ */ |