Code Monkey home page Code Monkey logo

ebtables-dhcpsnooping's Issues

missing checking the header 'libnet.h'

Hi,

when trying to building whitout 'libnet.h' i got the message.

make

.....
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

GCC 9.1 warning: specified bound equals destination size

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));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.