summaryrefslogtreecommitdiff
path: root/usr.sbin/ndiscvt
Commit message (Collapse)AuthorAgeFilesLines
* Stop linking to libl by specifying we do not need yywrapBaptiste Daroussin2019-09-102-2/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=352124
* ndiscvt(8): abort if no IDs were found during conversion.Andriy Voskoboinyk2019-01-302-13/+16
| | | | | | | | | | | Checked with Broadcom driver mentioned in PR 179285. PR: 69268 Submitted by: <darius@dons.net.au> MFC after: 5 days Notes: svn path=/head/; revision=343576
* Don't leak outfile. Free it before we return from bincvt.Warner Losh2017-12-281-0/+1
| | | | | | | CID: 273685 Notes: svn path=/head/; revision=327274
* spdx: initial adoption of licensing ID tags.Pedro F. Giffuni2017-11-186-3/+15
| | | | | | | | | | | | | | | | | | | | The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Initially, only tag files that use BSD 4-Clause "Original" license. RelNotes: yes Differential Revision: https://reviews.freebsd.org/D13133 Notes: svn path=/head/; revision=325966
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* usr.sbin: normalize paths using SRCTOP-relative paths or :H when possibleEnji Cooper2017-03-041-2/+2
| | | | | | | | | | This simplifies make logic/output MFC after: 1 month Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314659
* Remove the old depend (mkdep) code and make FAST_DEPEND the one true way.Bryan Drewery2016-03-301-5/+0
| | | | | | | | | | Reviewed by: emaste, hselasky (partial), brooks (brief) Discussed on: arch@ Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D5742 Notes: svn path=/head/; revision=297434
* DIRDEPS_BUILD: Regenerate without local dependencies.Bryan Drewery2016-02-241-6/+0
| | | | | | | | | | | These are no longer needed after the recent 'beforebuild: depend' changes and hooking DIRDEPS_BUILD into a subset of FAST_DEPEND which supports skipping 'make depend'. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=295989
* Remove unneeded NAME override.Bryan Drewery2015-10-271-1/+0
| | | | | | | | MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=290084
* Use more appropriate ${SHAREDIR} rather than /usr/share.Bryan Drewery2015-10-271-1/+1
| | | | | | | | MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=290083
* Fix crash on parsing some inf filesDmitry Marakasov2015-09-222-1/+7
| | | | | | | | | | | | | | | | | | | | | ndiscvt uses 16 entry array for words into which it parses comma-separated lists of strings, like AddReg line in [somesection] AddReg = foo.reg, bar.reg, baz.reg, quiz.reg Overflows were not checked so it crashed on a line with 17 words encountered in some Broadcom/Dell Wireless 1704 802.11b-g-n driver So extend the array up to 32 entries and add an overflow check. Reviewed by: bapt Approved by: bapt MFC after: 2 weeks Differential Revision: D3713 Notes: svn path=/head/; revision=288120
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+26
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-272-2/+2
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge head from 7/28Simon J. Gerraty2014-08-192-3/+3
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | Merge headSimon J. Gerraty2014-04-281-1/+1
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265044
| * \ \ Merge from headSimon J. Gerraty2013-09-051-2/+3
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=255263
| * | | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+2
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | | Sync with HEAD.David E. O'Brien2013-02-082-1/+2
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246555
| * \ \ \ \ Sync from headSimon J. Gerraty2012-11-041-1/+1
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | | | Convert usr.sbin to LIBADDBaptiste Daroussin2014-11-251-2/+1
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275054
* | | | | | use .Mt to mark up email addresses consistently (part2)Baptiste Daroussin2014-06-202-3/+3
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de> Notes: svn path=/head/; revision=267668
* | | | | We have in base iconv.Gleb Smirnoff2013-12-251-1/+1
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | PR: 185135 Submitted by: Lars Engels <lars 0x20.net> Notes: svn path=/head/; revision=259855
* | | | Improve compatibility with recent flex from flex.sourceforge.net.Jung-uk Kim2013-05-031-2/+3
| |_|/ |/| | | | | | | | Notes: svn path=/head/; revision=250227
* | | remove redundant yyparse declarationsBaptiste Daroussin2012-12-051-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | PR: conf/174079 Submitted by: Garrett Cooper <yanegomi@gmail.com> Notes: svn path=/head/; revision=243906
* | | Add a missing check for freadEitan Adler2012-11-151-0/+2
| |/ |/| | | | | | | | | | | | | Approved by: cperciva MFC after: 3 days Notes: svn path=/head/; revision=243074
* | Minor spelling fixes.Joel Dahl2012-06-031-1/+1
|/ | | | Notes: svn path=/head/; revision=236509
* Use NO_WCAST_ALIGN for usr.sbin/ndiscvt; because this is only built forDimitry Andric2011-12-172-0/+2
| | | | | | | | | | x86, any alignment warnings can be safely ignored. Define YY_NO_INPUT in usr.sbin/ndiscvt/inf-token.l, so no unused lex functions are defined. MFC after: 1 week Notes: svn path=/head/; revision=228665
* Use new output format 'elf64-x86-64-freebsd' instead of 'elf64-x86-64',Dimitry Andric2010-11-011-2/+2
| | | | | | | and similarly 'elf64-sparc-freebsd' instead of 'elf64-sparc'. Notes: svn path=/projects/binutils-2.17/; revision=214647
* ANSIfy some more tools in usr.sbin/.Ed Schouten2010-01-021-4/+2
| | | | | | | | Most of these tools build with WARNS=6, except for their use of K&R function declarations. Notes: svn path=/head/; revision=201387
* Integrate the NDIS USB support code to CURRENT.Weongyo Jeong2008-12-272-0/+139
| | | | | | | | | | | | | | | | | | | | | | | | | | | Now the NDISulator supports NDIS USB drivers that it've tested with devices as follows: - Anygate XM-142 (Conexant) - Netgear WG111v2 (Realtek) - U-Khan UW-2054u (Marvell) - Shuttle XPC Accessory PN20 (Realtek) - ipTIME G054U2 (Ralink) - UNiCORN WL-54G (ZyDAS) - ZyXEL G-200v2 (ZyDAS) All of them succeeded to attach and worked though there are still some problems that it's expected to be solved. To use NDIS USB support, you should rebuild and install ndiscvt(8) and if you encounter a problem to attach please set `hw.ndisusb.halt' to 0 then retry. I expect no changes of the NDIS code for PCI, PCMCIA devices. Obtained from: //depot/projects/ndisusb/... Notes: svn path=/head/; revision=186507
* remove reference for unexisting ndisapi(9)Weongyo Jeong2008-07-231-2/+1
| | | | Notes: svn path=/head/; revision=180730
* handle .INF files for PCMCIA correctly that specify multiple entries inWeongyo Jeong2008-06-181-7/+13
| | | | | | | | | their [Manufacturer] sections and prevent a case that NDIS_PCI_DEV_TABLE definition was always emitted that it's only emitted once if a .INF file is for PCI. Notes: svn path=/head/; revision=179855
* If the .inf file did not have a Default entry for the registry key then writeAndrew Thompson2008-04-151-1/+3
| | | | | | | out a blank value and close the brackets on the ndis_regvals array. Notes: svn path=/head/; revision=178214
* Use a ndis_ prefix on the C variable instead of directly using the .sysAndrew Thompson2008-04-152-7/+7
| | | | | | | | | | filename, this would fail if the filename started with a number. PR: bin/84911 Submitted by: Fredrik Lindberg Notes: svn path=/head/; revision=178213
* Remove ndisapi.9 Xref.Tom Rhodes2006-10-101-2/+1
| | | | | | | PR: 97375 Notes: svn path=/head/; revision=163191
* Silence GCC4 signed/unsigned pointer mismatch warning.Alexander Kabaev2006-09-211-1/+1
| | | | Notes: svn path=/head/; revision=162491
* Clean up and apply the fix for PR 83477. The calculation for locatingBill Paul2005-10-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the start of the section headers has to take into account the fact that the image_nt_header is really variable sized. It happens that the existing calculation is correct for _most_ production binaries produced by the Windows DDK, but if we get a binary with oddball offsets, the PE loader could crash. Changes from the supplied patch are: - We don't really need to use the IMAGE_SIZEOF_NT_HEADER() macro when computing how much of the header to return to callers of pe_get_optional_header(). While it's important to take the variable size of the header into account in other calculations, we never actually look at anything outside the non-variable portion of the header. This saves callers from having to allocate a variable sized buffer off the heap (I purposely tried to avoid using malloc() in subr_pe.c to make it easier to compile in both the -D_KERNEL and !-D_KERNEL case), and since we're copying into a buffer on the stack, we always have to copy the same amount of data or else we'll trash the stack something fierce. - We need <stddef.h> to get offsetof() in the !-D_KERNEL case. - ndiscvt.c needs the IMAGE_FIRST_SECTION() macro too, since it does a little bit of section pre-processing. PR: kern/83477 Notes: svn path=/head/; revision=151703
* Fix all the spelling mistakes I could find in the man pages for wordsGiorgos Keramidas2005-07-311-1/+1
| | | | | | | | | | | that have at least 3 characters. MFC after: 1 week Thanks to: Music band ``Chingon'' for keeping me company while searching for these. Notes: svn path=/head/; revision=148580
* (More thoroughly) fix the problem with the EGREP lines that was reportedDoug Barton2005-07-232-26/+45
| | | | | | | | | | on -current by Ben Kaduk <minimarmot@gmail.com>. Add a hack of my own to allow the user to supply the paths to the INF and SYS files on the command line. Notes: svn path=/head/; revision=148350
* Use "FreeBSD/i386" over "FreeBSD/ia32" to avoid any confusion.Ceri Davies2005-07-221-1/+1
| | | | Notes: svn path=/head/; revision=148283
* Correct some spelling and grammatical errors.Ceri Davies2005-07-221-7/+7
| | | | Notes: svn path=/head/; revision=148281
* Fix ndisgen(8) for amd64Jung-uk Kim2005-07-221-72/+116
| | | | | | | | | | | | | | | | | | - file(1) does not recognize UTF-16 encoded .INF file: netbc564.inf: MPEG ADTS, layer I, v1, 96 kBits, 32 kHz, Stereo Use egrep(1) to match two strings, i. e., `Signature' and `Class=Net'. - Fix linking failure. Generate a temporary Makefile to emluate official kernel module build process. - Some minor typo/style fixes. Reviewed by: obrien Notes: svn path=/head/; revision=148279
* Markup fixes.Ruslan Ermilov2005-06-162-9/+9
| | | | | | | Approved by: re Notes: svn path=/head/; revision=147436
* Update ndiscvt to handle .INF files that specify multiple entries inBill Paul2005-05-151-8/+56
| | | | | | | their [Manufacturer] sections. Notes: svn path=/head/; revision=146243
* Fix support for Windows drivers that support both PCI and PCMCIA devices atBill Paul2005-05-081-13/+15
| | | | | | | | | | | | | | | | the same time. Fix if_ndis_pccard.c so that it sets sc->ndis_dobj and sc->ndis_regvals. Correct IMPORT_SFUNC() macros for the READ_PORT_BUFFER_xxx() routines, which take 3 arguments, not 2. This fixes it so that the Windows driver for my Cisco Aironet 340 PCMCIA card works again. (Yes, I know the an(4) driver supports this card natively, but it's the only PCMCIA device I have with a Windows XP driver.) Notes: svn path=/head/; revision=146015