Deleted Added
full compact
ethernet.h (191148) ethernet.h (249925)
1/*
2 * Fundamental constants relating to ethernet.
3 *
1/*
2 * Fundamental constants relating to ethernet.
3 *
4 * $FreeBSD: head/sys/net/ethernet.h 191148 2009-04-16 20:30:28Z kmacy $
4 * $FreeBSD: head/sys/net/ethernet.h 249925 2013-04-26 12:50:32Z glebius $
5 *
6 */
7
8#ifndef _NET_ETHERNET_H_
9#define _NET_ETHERNET_H_
10
11/*
12 * Some basic Ethernet constants.

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

370struct bpf_if;
371
372extern uint32_t ether_crc32_le(const uint8_t *, size_t);
373extern uint32_t ether_crc32_be(const uint8_t *, size_t);
374extern void ether_demux(struct ifnet *, struct mbuf *);
375extern void ether_ifattach(struct ifnet *, const u_int8_t *);
376extern void ether_ifdetach(struct ifnet *);
377extern int ether_ioctl(struct ifnet *, u_long, caddr_t);
5 *
6 */
7
8#ifndef _NET_ETHERNET_H_
9#define _NET_ETHERNET_H_
10
11/*
12 * Some basic Ethernet constants.

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

370struct bpf_if;
371
372extern uint32_t ether_crc32_le(const uint8_t *, size_t);
373extern uint32_t ether_crc32_be(const uint8_t *, size_t);
374extern void ether_demux(struct ifnet *, struct mbuf *);
375extern void ether_ifattach(struct ifnet *, const u_int8_t *);
376extern void ether_ifdetach(struct ifnet *);
377extern int ether_ioctl(struct ifnet *, u_long, caddr_t);
378extern int ether_output(struct ifnet *,
379 struct mbuf *, struct sockaddr *, struct route *);
378extern int ether_output(struct ifnet *, struct mbuf *,
379 const struct sockaddr *, struct route *);
380extern int ether_output_frame(struct ifnet *, struct mbuf *);
381extern char *ether_sprintf(const u_int8_t *);
382void ether_vlan_mtap(struct bpf_if *, struct mbuf *,
383 void *, u_int);
384struct mbuf *ether_vlanencap(struct mbuf *, uint16_t);
385
386#else /* _KERNEL */
387

--- 18 unchanged lines hidden ---
380extern int ether_output_frame(struct ifnet *, struct mbuf *);
381extern char *ether_sprintf(const u_int8_t *);
382void ether_vlan_mtap(struct bpf_if *, struct mbuf *,
383 void *, u_int);
384struct mbuf *ether_vlanencap(struct mbuf *, uint16_t);
385
386#else /* _KERNEL */
387

--- 18 unchanged lines hidden ---