michael-dev / ebtables-dhcpsnooping Goto Github PK
View Code? Open in Web Editor NEWLinux generic dhcp snooping daemon using nflog and ebtables or nftables
License: GNU General Public License v3.0
Linux generic dhcp snooping daemon using nflog and ebtables or nftables
License: GNU General Public License v3.0
Hi,
when trying to building whitout 'libnet.h' i got the message.
.....
include/libnl3 -Wall -D _FORTIFY_SOURCE=2 -O2 -g -fPIE -std=gnu99 -Wall -Werror -g -O2 -fstack-protector -MT src/dh
cpv4.o -MD -MP -MF $depbase.Tpo -c -o src/dhcpv4.o src/dhcpv4.c &&
mv -f $depbase.Tpo $depbase.Po
src/dhcpv4.c:24:20: fatal error: libnet.h: No such file or directory
compilation terminated.
the attached patch, fix.
http://blog.jorgepereira.com.br/jorge/patchs/ebtables-dhcpsnooping-0001-Fix-missing-checking-the-header-libnet.h.patch
Tracking issue for:
Hi @michael-dev,
Is it necessary to apply the patch in the kernel 3.16.0-37-generic? Because I have checked in the kernel source[1] and they looks like the same behavior added by your patch.
[1] https://github.com/torvalds/linux/blob/v3.16/net/bridge/br_fdb.c
Hi @michael-dev,
I would like to know if you know about the 'option 82'. And what do you think to add support to update/insert the informations in the dhcp request. I made something like that using the 'relay concept'[1], but the idea is to do like cisco/3com and another appliance in 'snooping' mode.
.
In file included from /usr/include/string.h:494,
from src/dhcp-ack.c:29:
In function 'strncpy',
inlined from 'add_ack_entry' at src/dhcp-ack.c:93:2:
/usr/include/bits/string_fortified.h:106:10: error: '__builtin_strncpy' specified bound 16 equals destination size [-Werror=stringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The binary should report some info about the source code.
See http://www.atmel.com/webdoc/avrlibcreferencemanual/FAQ_1faq_binarydata.html
for an approach.
https://balau82.wordpress.com/2012/02/19/linking-a-binary-blob-with-gcc/
https://stackoverflow.com/questions/4864866/c-c-with-gcc-statically-add-resource-files-to-executable-library
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.