diff -urN iproute2.altpatches/include/utils.h iproute2.altpatches.ipsec/include/utils.h --- iproute2.altpatches/include/utils.h 2002-01-08 21:41:16 +0200 +++ iproute2.altpatches.ipsec/include/utils.h 2004-02-17 15:12:47 +0200 @@ -22,6 +22,9 @@ #ifndef IPPROTO_AH #define IPPROTO_AH 51 #endif +#ifndef ARPHRD_IPSECTUN +#define ARPHRD_IPSECTUN 31 /* IPSec tunneled mode */ +#endif #define SPRINT_BSIZE 64 #define SPRINT_BUF(x) char x[SPRINT_BSIZE] diff -urN iproute2.altpatches/lib/ll_addr.c iproute2.altpatches.ipsec/lib/ll_addr.c --- iproute2.altpatches/lib/ll_addr.c 2004-02-17 15:06:50 +0200 +++ iproute2.altpatches.ipsec/lib/ll_addr.c 2004-02-17 15:09:33 +0200 @@ -33,7 +33,7 @@ int l; if (alen == 4 && - (type == ARPHRD_TUNNEL || type == ARPHRD_SIT || type == ARPHRD_IPGRE)) { + (type == ARPHRD_TUNNEL || type == ARPHRD_SIT || type == ARPHRD_IPGRE || type == ARPHRD_IPSECTUN)) { return inet_ntop(AF_INET, addr, buf, blen); } l = 0; diff -urN iproute2.altpatches/lib/ll_types.c iproute2.altpatches.ipsec/lib/ll_types.c --- iproute2.altpatches/lib/ll_types.c 2004-02-17 15:06:50 +0200 +++ iproute2.altpatches.ipsec/lib/ll_types.c 2004-02-17 15:41:55 +0200 @@ -23,6 +23,7 @@ #include #include #include +#include "utils.h" char * ll_type_n2a(int type, char *buf, int len) { @@ -52,6 +53,7 @@ #ifdef ARPHRD_IEEE1394 __PF(IEEE1394,ieee1394) #endif +__PF(IPSECTUN,ipsectun) __PF(SLIP,slip) __PF(CSLIP,cslip)