diff options
author | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-06-05 16:49:32 +0200 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-06-14 14:05:28 +0200 |
commit | aeb53fcd725fe291afa6ffb683373c8e589afa64 (patch) | |
tree | 3f9840107501dc98472406dadfa16eba860ca61b /src/tools/irm/irm_create_ipcp.c | |
parent | a76b638a370cd0cdd087ec780e6b1f8d18bac66d (diff) | |
download | ouroboros-aeb53fcd725fe291afa6ffb683373c8e589afa64.tar.gz ouroboros-aeb53fcd725fe291afa6ffb683373c8e589afa64.zip |
ipcpd: Adds a shim over IEEE 802.2 over IEEE 802.3
This adds a shim over LLC over Ethernet. It uses the raw socket API to
send messages directly over an interface.
Diffstat (limited to 'src/tools/irm/irm_create_ipcp.c')
-rw-r--r-- | src/tools/irm/irm_create_ipcp.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tools/irm/irm_create_ipcp.c b/src/tools/irm/irm_create_ipcp.c index 21438bd4..cb957d94 100644 --- a/src/tools/irm/irm_create_ipcp.c +++ b/src/tools/irm/irm_create_ipcp.c @@ -34,6 +34,7 @@ #define NORMAL "normal" #define SHIM_UDP "shim-udp" +#define SHIM_ETH_LLC "shim-eth-llc" #define LOCAL "local" static void usage() @@ -41,7 +42,8 @@ static void usage() printf("Usage: irm create_ipcp\n" " ap <application process name>\n" " type [TYPE]\n\n" - "where TYPE = {" NORMAL " " LOCAL " " SHIM_UDP "}\n"); + "where TYPE = {" NORMAL " " LOCAL " " + SHIM_UDP " " SHIM_ETH_LLC "}\n"); } int do_create_ipcp(int argc, char ** argv) @@ -76,6 +78,8 @@ int do_create_ipcp(int argc, char ** argv) type = IPCP_SHIM_UDP; else if (strcmp(ipcp_type, LOCAL) == 0) type = IPCP_LOCAL; + else if (strcmp(ipcp_type, SHIM_ETH_LLC) == 0) + type = IPCP_SHIM_ETH_LLC; else { usage(); return -1; |