Skip to content

Commit

Permalink
bsd: Added partial Linux NETLINK socket support
Browse files Browse the repository at this point in the history
Signed-off-by: Charles Myers <charles.myers@spirent.com>
Message-Id: <1533610192-4019-10-git-send-email-charles.myers@spirent.com>
  • Loading branch information
cmyers-spirent authored and wkozaczuk committed Dec 11, 2019
1 parent 7238935 commit f1cd48e
Show file tree
Hide file tree
Showing 7 changed files with 1,091 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,7 @@ bsd += bsd/porting/kobj.o
bsd += bsd/sys/netinet/if_ether.o
bsd += bsd/sys/compat/linux/linux_socket.o
bsd += bsd/sys/compat/linux/linux_ioctl.o
bsd += bsd/sys/compat/linux/linux_netlink.o
bsd += bsd/sys/net/if_ethersubr.o
bsd += bsd/sys/net/if_llatbl.o
bsd += bsd/sys/net/radix.o
Expand Down
5 changes: 5 additions & 0 deletions bsd/net.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <bsd/sys/netinet/cc.h>
#include <bsd/sys/net/ethernet.h>
#include <bsd/sys/net/route.h>
#include <bsd/sys/compat/linux/linux_netlink.h>

/* Generation of ip ids */
void ip_initid(void);
Expand All @@ -32,6 +33,8 @@ extern "C" {
extern struct domain inetdomain;
/* AF_ROUTE */
extern struct domain routedomain;
/* AF_NETLINK */
extern struct domain netlinkdomain;
}

void net_init(void)
Expand All @@ -53,9 +56,11 @@ void net_init(void)
domaininit(NULL);
OSV_DOMAIN_SET(inet);
OSV_DOMAIN_SET(route);
OSV_DOMAIN_SET(netlink);
rts_init();
route_init();
vnet_route_init();
netlink_init();
ipport_tick_init(NULL);
arp_init();
domainfinalize(NULL);
Expand Down
Loading

0 comments on commit f1cd48e

Please sign in to comment.