FreeBSD Bugzilla – Attachment 151761 Details for
Bug 196818
[PATCH] net/libnet: Backport bugfixes to version 1.1.6
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
libnet_link_bpf.c.diff
patch-libnet_link_bpf.c.in (text/plain), 959 bytes, created by
Kevin Hung
on 2015-01-17 06:28:26 UTC
(
hide
)
Description:
libnet_link_bpf.c.diff
Filename:
MIME Type:
Creator:
Kevin Hung
Created:
2015-01-17 06:28:26 UTC
Size:
959 bytes
patch
obsolete
>--- src/libnet_link_bpf.c.orig 2015-01-17 00:30:38.000000000 -0500 >+++ src/libnet_link_bpf.c 2015-01-17 00:40:15.000000000 -0500 >@@ -316,7 +316,11 @@ > if (ifm->ifm_type == RTM_IFINFO) > { > sdl = (struct sockaddr_dl *)(ifm + 1); >- if (sdl->sdl_type != IFT_ETHER) >+ if (sdl->sdl_type != IFT_ETHER >+ && sdl->sdl_type != IFT_FASTETHER >+ && sdl->sdl_type != IFT_FASTETHERFX >+ && sdl->sdl_type != IFT_GIGABITETHERNET >+ && sdl->sdl_type != IFT_L2VLAN) > continue; > if (strncmp(&sdl->sdl_data[0], l->device, sdl->sdl_nlen) == 0) > { >@@ -326,6 +330,12 @@ > } > } > free(buf); >+ if (next == end) { >+ snprintf(l->err_buf, LIBNET_ERRBUF_SIZE, >+ "%s(): interface %s of known type not found.", >+ __func__, l->device); >+ return NULL; >+ } > return (&ea); > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 196818
:
151758
|
151759
|
151760
| 151761 |
151762
|
151763