Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

now you can transmit proper packet on loopback interface.

(applications don't have to prepend 4 byte to denote its address family,
 since it is done in kernel bpf)
  • Loading branch information...
commit 9bb1d00406aa848577c3666f0f3de8908710b24b 1 parent 7d0cdf0
suz authored
Showing with 6 additions and 13 deletions.
  1. +5 −1 CHANGELOG
  2. +1 −12 kame/kame/v6test/v6test.c
6 CHANGELOG
View
@@ -1,8 +1,12 @@
CHANGELOG for KAME kit
-$KAME: CHANGELOG,v 1.1677 2001/05/18 08:11:49 sakane Exp $
+$KAME: CHANGELOG,v 1.1678 2001/05/20 03:31:01 suz Exp $
<200105>
+Sun May 20 12:26:54 JST 2001 suz@sdl.hitachi.co.jp
+ * kame/v6test/v6test.c:
+ now you can transmit proper packet on loopback interface.
+
Fri May 18 17:10:10 JST 2001 sakane@ydc.co.jp
* kame/racoon:
Fixed to copy "reqid" into a proposal table from policy entries.
13 kame/kame/v6test/v6test.c
View
@@ -45,7 +45,6 @@ int bpf_open __P((char *));
static int linkhdrlen __P((int, char *));
static void form __P((int, char *));
static void form_ether __P((void));
-static void form_null __P((void));
static void
usage()
@@ -185,7 +184,7 @@ linkhdrlen(fd, iface)
case DLT_EN10MB:
return sizeof(struct ether_header);
case DLT_NULL:
- return sizeof(u_int);
+ return 0;
}
return -1;
@@ -210,7 +209,6 @@ form(fd, iface)
form_ether();
break;
case DLT_NULL:
- form_null();
break;
}
}
@@ -250,12 +248,3 @@ form_ether()
cksum6();
}
-
-static void
-form_null()
-{
- u_int *af;
-
- af = (u_int *)buf;
- *af = AF_INET6;
-}
Please sign in to comment.
Something went wrong with that request. Please try again.