NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

IPPROTO_ESP and vpnc

I'm trying to use vpnc and getting the following error:
socket(PF_INET, SOCK_RAW, IPPROTO_ESP): Protocol not supported

I wrote the following test program and get the same thing:

#include <stdio.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <errno.h>
#include <string.h>

int main(int argc, char *argv[])
  int sock;
  sock = socket(PF_INET, SOCK_RAW, IPPROTO_ESP);
  if ( sock < 0 )
    perror("sock problem");


Is this because my kernel has IPSEC commented out?


Home | Main Index | Thread Index | Old Index