New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ndn/dpdkmgmt

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ndn/dpdkmgmt - npm Package Compare versions

Comparing version 0.0.20200606 to 0.0.20200909

lib/face_browser.js

10

lib/face.d.ts
import { Forwarder, FwFace } from "@ndn/fw";
import { L3Face } from "@ndn/l3face";
export interface CreateFaceOptions {
export interface OpenFaceOptions {
/** NDNts forwarder. */

@@ -10,7 +10,5 @@ fw?: Forwarder;

localHost?: string;
/** NDN-DPDK IP address. */
host?: string;
/** NDN-DPDK management port. */
port?: number;
/** NDN-DPDK GraphQL server. */
gqlServer?: string;
}
export declare function createFace({ fw, attributes, localHost, host, port, }?: CreateFaceOptions): Promise<FwFace>;
export declare function openFace({ fw, attributes, localHost, gqlServer, }?: OpenFaceOptions): Promise<FwFace>;

18

lib/prefix-reg.d.ts
import { ReadvertiseDestination } from "@ndn/fw";
import { Name } from "@ndn/packet";
import { RpcClient } from "./rpc-client";
export declare class NdndpdkPrefixReg extends ReadvertiseDestination {
private readonly rpc;
private readonly faceId;
constructor(rpc: RpcClient, faceId: number);
protected doAdvertise(name: Name): Promise<void>;
protected doWithdraw(name: Name): Promise<void>;
import { GraphQLClient } from "graphql-request";
interface State {
fibEntryID?: string;
}
export declare class NdndpdkPrefixReg extends ReadvertiseDestination<State> {
private readonly client;
private readonly faceID;
constructor(client: GraphQLClient, faceID: string);
protected doAdvertise(name: Name, state: State): Promise<void>;
protected doWithdraw(name: Name, state: State): Promise<void>;
}
export {};
{
"name": "@ndn/dpdkmgmt",
"version": "0.0.20200606",
"version": "0.0.20200909",
"description": "NDNts: NDN-DPDK Management",

@@ -15,4 +15,3 @@ "keywords": [

"type": "module",
"main": "lib/mod.js",
"sideEffects": false,
"main": "lib/mod_node.js",
"homepage": "https://yoursunny.com/p/NDNts/",

@@ -25,10 +24,10 @@ "repository": {

"dependencies": {
"@ndn/fw": "0.0.20200606",
"@ndn/l3face": "0.0.20200606",
"@ndn/node-transport": "0.0.20200606",
"@ndn/packet": "0.0.20200606",
"mole-rpc": "koorchik/node-mole-rpc#ffa46f755d5dfba80a74bac5dba9d050b440eb4e",
"mole-rpc-transport-tcp": "^0.0.20200417",
"tslib": "*"
}
"@ndn/fw": "0.0.20200909",
"@ndn/l3face": "0.0.20200909",
"@ndn/node-transport": "0.0.20200909",
"@ndn/packet": "0.0.20200909",
"graphql-request": "^3.1.0",
"tslib": "^2.0.1"
},
"types": "lib/mod.d.ts"
}

@@ -8,7 +8,2 @@ # @ndn/nfdmgmt

NDN-DPDK forwarder should be configured as follows:
* Management listener on TCP.
* Socket faces enabled.
Currently, there are several limitations using this package:

@@ -21,3 +16,3 @@

```ts
import { createFace } from "@ndn/dpdkmgmt";
import { openFace } from "@ndn/dpdkmgmt";

@@ -32,8 +27,8 @@ // other imports for examples

const gqlServer = process.env.DEMO_DPDKMGMT_GQLSERVER;
const localHost = process.env.DEMO_DPDKMGMT_LOCAL;
const host = process.env.DEMO_DPDKMGMT_FW;
if (!localHost || !host) {
if (!gqlServer || !localHost) {
console.log(`
To run @ndn/dpdkmgmt demo, set the following environment variables:
DEMO_DPDKMGMT_FW= IP address of NDN-DPDK forwarder
DEMO_DPDKMGMT_GQLSERVER= NDN-DPDK forwarder GraphQL server URI
DEMO_DPDKMGMT_LOCAL= IP address to reach local host from NDN-DPDK forwarder

@@ -44,3 +39,11 @@ `);

// Create two forwarders, one as consumer and one as producer.
// Topology of this demo
//
// producer consumer
// | |
// fwP fwC
// \---------- NDN-DPDK ----------/
// uplinkP uplinkC
// Create two logical forwarders, one as consumer and one as producer.
const fwC = Forwarder.create();

@@ -50,12 +53,12 @@ const fwP = Forwarder.create();

// Connect to NDN-DPDK.
const uplinkC = await createFace({
const uplinkC = await openFace({
fw: fwC,
localHost,
host,
gqlServer,
});
uplinkC.addRoute(new Name("/"));
const uplinkP = await createFace({
const uplinkP = await openFace({
fw: fwP,
localHost,
host,
gqlServer,
});

@@ -62,0 +65,0 @@ console.log(`uplinkC=${uplinkC}`, `uplinkP=${uplinkP}`);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc