aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2016-08-02[router] Correctly handle per-interface protocolsJeff Shaw1-46/+70
Previously, if one interface were configured to inject a protocol, then all interfaces would inject the protocol. In other words, if iface 1 were configured for arp,icmp4 and iface 2 were configured for arp,icmp4,tcp, then iface 1 would erroneously inject tcp. This commit fixes the above behavior such that each packet is compared with the protocols enabled for the interface before injecting. Change-Id: I20477a24019f3e0209b863aca25c1253ba45d7f4 Signed-off-by: Jeff Shaw <jeffrey.b.shaw@intel.com>
2016-06-30Merge changes from topic 'cleanup'Pierre Pfister2-275/+201
* changes: [router] Remove note about build failure. [router] Support tcp injection on tapped interfaces. [router] Combine node functions.
2016-06-29[router] Remove note about build failure.Jeff Shaw1-4/+1
The build issue has been fixed in the netlink repo. Remove the note from the README as it is no longer relevant. Change-Id: I3d9fe59f443b926fb83dce16655d86d88ea06be4 Signed-off-by: Jeff Shaw <jeffrey.b.shaw@intel.com>
2016-06-29[router] Support tcp injection on tapped interfaces.Jeff Shaw1-1/+13
Enabled with 'tap inject arp,icmp4,tcp from ... as ...' Change-Id: Ibc1670a8d4b9b3c4369ced9e42df85f496f4129c Signed-off-by: Jeff Shaw <jeffrey.b.shaw@intel.com>
2016-06-29[router] Combine node functions.Jeff Shaw1-270/+187
Handle arp, icmp4, and classified packets in a single node function instead of three nearly identical ones. Change-Id: Id3752bbf2b4f5b1f9d8f98315d330dcf2124c829 Signed-off-by: Jeff Shaw <jeffrey.b.shaw@intel.com>
2016-06-29[Netlink] Fix testrtnl_plugin dependency on librtnl.Jeff Shaw1-1/+1
Link against the libtool file, not the library itself. Without this change, the following error is produced when building the plugin. /usr/bin/ld: cannot find -lrtnl collect2: error: ld returned 1 exit status Makefile:465: recipe for target 'testrtnl_plugin.la' failed Change-Id: I60c7c33baa3958c26749e4507e9d5bebb65a3519 Signed-off-by: Jeff Shaw <jeffrey.b.shaw@intel.com>
2016-06-29[Netlink] Namespace name formatting bugfix and reduced verbosityPierre Pfister2-3/+3
Change-Id: Idf7d9cff0bf5b4e8c9eea8a38a61c75ee9d3da1c Signed-off-by: Pierre Pfister <ppfister@cisco.com>
2016-06-20Merge "netlink: re-define DBL_MAX to be smaller than usual."Pierre Pfister1-0/+3
2016-06-17router: initial commitJeff Shaw7-0/+932
Change-Id: Ief5544e58f002e8d33b72dd87295c29f93345d37 Signed-off-by: Jeff Shaw <jeffrey.b.shaw@intel.com>
2016-06-17netlink: re-define DBL_MAX to be smaller than usual.Jeff Shaw1-0/+3
Without this modification I see a timing wheel assertion failure. Change-Id: I20435b36e06d8978771809857cd1a1121f785bc0 Signed-off-by: Jeff Shaw <jeffrey.b.shaw@intel.com>
2016-05-19[Netlink] Bugfix - Use indexes rather than pointersPierre Pfister2-11/+12
Change-Id: I76d3400b4d62e871def81420203407761c8d5c7f Signed-off-by: Pierre Pfister <ppfister@cisco.com>
2016-05-19[Netlink] Add format function to get namespace pathPierre Pfister2-14/+19
Change-Id: I5a3e955696ea4b1b866f6217c375cfce8d722681 Signed-off-by: Pierre Pfister <ppfister@cisco.com>
2016-05-19[Netlink] Fix Makefile.am test plugin dependency to librtnlPierre Pfister1-2/+1
Change-Id: I59b393888246e8b37f815ffda6259977f9c03c7b Signed-off-by: Pierre Pfister <ppfister@cisco.com>
2016-05-11Initial commit for the netlink effortPierre Pfister13-0/+2371
Change-Id: Ie804a9855f20e12f44fe040d15efb710941dee9f Signed-off-by: Pierre Pfister <ppfister@cisco.com>
2016-05-11Initial commit with README.mdPierre Pfister1-0/+13
Change-Id: I74e55293ce7fb9888a9473eb5a3a2f06bd2a97e5 Signed-off-by: Pierre Pfister <ppfister@cisco.com>
2016-05-09Initial empty repositoryC.J. Collier0-0/+0