if_fwip.c (302408) | if_fwip.c (315221) |
---|---|
1/*- 2 * Copyright (c) 2004 3 * Doug Rabson 4 * Copyright (c) 2002-2003 5 * Hidetoshi Shimokawa. 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 --- 19 unchanged lines hidden (view full) --- 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * | 1/*- 2 * Copyright (c) 2004 3 * Doug Rabson 4 * Copyright (c) 2002-2003 5 * Hidetoshi Shimokawa. 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 --- 19 unchanged lines hidden (view full) --- 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * |
36 * $FreeBSD: stable/11/sys/dev/firewire/if_fwip.c 298955 2016-05-03 03:41:25Z pfg $ | 36 * $FreeBSD: stable/11/sys/dev/firewire/if_fwip.c 315221 2017-03-14 02:06:03Z pfg $ |
37 */ 38 39#ifdef HAVE_KERNEL_OPTION_HEADERS 40#include "opt_device_polling.h" 41#include "opt_inet.h" 42#endif 43 44#include <sys/param.h> --- 525 unchanged lines hidden (view full) --- 570 /* 571 * Dig out the link-level address which 572 * firewire_output got via arp or neighbour 573 * discovery. If we don't have a link-level address, 574 * just stick the thing on the broadcast channel. 575 */ 576 mtag = m_tag_locate(m, MTAG_FIREWIRE, MTAG_FIREWIRE_HWADDR, 0); 577 if (mtag == NULL) | 37 */ 38 39#ifdef HAVE_KERNEL_OPTION_HEADERS 40#include "opt_device_polling.h" 41#include "opt_inet.h" 42#endif 43 44#include <sys/param.h> --- 525 unchanged lines hidden (view full) --- 570 /* 571 * Dig out the link-level address which 572 * firewire_output got via arp or neighbour 573 * discovery. If we don't have a link-level address, 574 * just stick the thing on the broadcast channel. 575 */ 576 mtag = m_tag_locate(m, MTAG_FIREWIRE, MTAG_FIREWIRE_HWADDR, 0); 577 if (mtag == NULL) |
578 destfw = 0; | 578 destfw = NULL; |
579 else 580 destfw = (struct fw_hwaddr *) (mtag + 1); 581 582 583 /* 584 * We don't do any bpf stuff here - the generic code 585 * in firewire_output gives the packet to bpf before 586 * it adds the link-level encapsulation. --- 348 unchanged lines hidden --- | 579 else 580 destfw = (struct fw_hwaddr *) (mtag + 1); 581 582 583 /* 584 * We don't do any bpf stuff here - the generic code 585 * in firewire_output gives the packet to bpf before 586 * it adds the link-level encapsulation. --- 348 unchanged lines hidden --- |