Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: oskarb/ipctl
base: 27ffaef480
...
head fork: oskarb/ipctl
compare: 9274d2893c
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 12 additions and 2 deletions.
  1. +5 −0 Makefile.am
  2. +7 −2 src/cli/ipctl.c
View
5 Makefile.am
@@ -19,3 +19,8 @@ modules_install:
all: modules
#clean: modules_clean
+
+
+EXTRA_DIST = src/module/ipctlm.c src/module/Kbuild src/module/Makefile bootstrap \
+ README.md
+
View
9 src/cli/ipctl.c
@@ -31,6 +31,9 @@ int main( int argc, const char* argv[] )
// Allocate a new netlink socket
sock = nl_socket_alloc();
+ //struct nl_cb *cb = nl_cb_alloc(NL_CB_DEBUG);
+ //sock = nl_socket_alloc_cb(cb);
+
// Connect to generic netlink socket on kernel side
genl_connect(sock);
@@ -41,16 +44,18 @@ int main( int argc, const char* argv[] )
{
int rc = ipctl_set_proxy_arp(sock, family, ifIndex, proxyArpOn);
if (rc)
- fprintf(stderr, "Error: %d\n", rc);
+ fprintf(stderr, "Error: %d %s\n", rc, nl_geterror(rc));
}
else
{
int response = -1;
int rc = ipctl_get_proxy_arp(sock, family, ifIndex, &response);
if (rc)
- fprintf(stderr, "Error: %d\n", rc);
+ fprintf(stderr, "Error: %d %s\n", rc, nl_geterror(rc));
else
printf("%d\n", response);
}
+
+ nl_socket_free(sock);
}

No commit comments for this range

Something went wrong with that request. Please try again.