X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/d9a64523371fa019c4575bb400cbbc3a50ac9903..94ff46dc2849db4d43eaaf144872decc522aafb4:/bsd/net/if_gif.h diff --git a/bsd/net/if_gif.h b/bsd/net/if_gif.h index 296cdbf21..19460fcc3 100644 --- a/bsd/net/if_gif.h +++ b/bsd/net/if_gif.h @@ -61,7 +61,7 @@ */ #ifndef _NET_IF_GIF_H_ -#define _NET_IF_GIF_H_ +#define _NET_IF_GIF_H_ #include #include @@ -74,9 +74,9 @@ extern void gif_init(void); struct encaptab; struct gif_softc { - ifnet_t gif_if; /* pointer back to the interface */ - struct sockaddr *gif_psrc; /* Physical src addr */ - struct sockaddr *gif_pdst; /* Physical dst addr */ + ifnet_t gif_if; /* pointer back to the interface */ + struct sockaddr *gif_psrc; /* Physical src addr */ + struct sockaddr *gif_pdst; /* Physical dst addr */ #ifdef __APPLE__ protocol_family_t gif_proto; /* dlil protocol attached */ #endif @@ -86,32 +86,32 @@ struct gif_softc { struct route_in6 gifscr_ro6; /* xxx */ #endif } gifsc_gifscr; - int gif_flags; -#define IFGIF_DETACHING 0x1 - int gif_called; + int gif_flags; +#define IFGIF_DETACHING 0x1 + int gif_called; const struct encaptab *encap_cookie4; const struct encaptab *encap_cookie6; TAILQ_ENTRY(gif_softc) gif_link; /* all gif's are linked */ - bpf_tap_mode tap_mode; + bpf_tap_mode tap_mode; bpf_packet_func tap_callback; - char gif_ifname[IFNAMSIZ]; - decl_lck_mtx_data(, gif_lock); /* lock for gif softc structure */ + char gif_ifname[IFNAMSIZ]; + decl_lck_mtx_data(, gif_lock); /* lock for gif softc structure */ }; -#define GIF_LOCK(_sc) lck_mtx_lock(&(_sc)->gif_lock) -#define GIF_UNLOCK(_sc) lck_mtx_unlock(&(_sc)->gif_lock) -#define GIF_LOCK_ASSERT(_sc) LCK_MTX_ASSERT(&(_sc)->gif_lock, \ +#define GIF_LOCK(_sc) lck_mtx_lock(&(_sc)->gif_lock) +#define GIF_UNLOCK(_sc) lck_mtx_unlock(&(_sc)->gif_lock) +#define GIF_LOCK_ASSERT(_sc) LCK_MTX_ASSERT(&(_sc)->gif_lock, \ LCK_MTX_ASSERT_OWNED) -#define gif_ro gifsc_gifscr.gifscr_ro +#define gif_ro gifsc_gifscr.gifscr_ro #if INET6 -#define gif_ro6 gifsc_gifscr.gifscr_ro6 +#define gif_ro6 gifsc_gifscr.gifscr_ro6 #endif #endif /* BSD_KERNEL_PRIVATE */ -#define GIF_MTU (1280) /* Default MTU */ -#define GIF_MTU_MIN (1280) /* Minimum MTU */ -#define GIF_MTU_MAX (8192) /* Maximum MTU */ +#define GIF_MTU (1280) /* Default MTU */ +#define GIF_MTU_MIN (1280) /* Minimum MTU */ +#define GIF_MTU_MAX (8192) /* Maximum MTU */ #endif /* _NET_IF_GIF_H_ */