Deleted Added
full compact
ip.h (270710) ip.h (275599)
1/*-
2 * Copyright (c) 2010 Isilon Systems, Inc.
3 * Copyright (c) 2010 iX Systems, Inc.
4 * Copyright (c) 2010 Panasas, Inc.
5 * Copyright (c) 2013, 2014 Mellanox Technologies, Ltd.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 31 unchanged lines hidden (view full) ---

40#include <net/if_var.h>
41
42#include <netinet/in.h>
43#include <netinet/in_pcb.h>
44
45#ifdef INET
46static inline void inet_get_local_port_range(int *low, int *high)
47{
1/*-
2 * Copyright (c) 2010 Isilon Systems, Inc.
3 * Copyright (c) 2010 iX Systems, Inc.
4 * Copyright (c) 2010 Panasas, Inc.
5 * Copyright (c) 2013, 2014 Mellanox Technologies, Ltd.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 31 unchanged lines hidden (view full) ---

40#include <net/if_var.h>
41
42#include <netinet/in.h>
43#include <netinet/in_pcb.h>
44
45#ifdef INET
46static inline void inet_get_local_port_range(int *low, int *high)
47{
48 CURVNET_SET_QUIET(TD_TO_VNET(curthread));
48 *low = V_ipport_firstauto;
49 *high = V_ipport_lastauto;
49 *low = V_ipport_firstauto;
50 *high = V_ipport_lastauto;
51 CURVNET_RESTORE();
50}
51
52static inline void
53ip_ib_mc_map(uint32_t addr, const unsigned char *bcast, char *buf)
54{
55 unsigned char scope;
56
57 addr = ntohl(addr);

--- 25 unchanged lines hidden ---
52}
53
54static inline void
55ip_ib_mc_map(uint32_t addr, const unsigned char *bcast, char *buf)
56{
57 unsigned char scope;
58
59 addr = ntohl(addr);

--- 25 unchanged lines hidden ---