diff options
author | laforge <laforge> | 2003-10-16 13:00:51 +0000 |
---|---|---|
committer | laforge <laforge> | 2003-10-16 13:00:51 +0000 |
commit | cfca74b76d4cf4cf24ff6c41e9baf76ee1ae3411 (patch) | |
tree | 49303acac21ee9523aec4605e76042255395363b /ulogd/extensions | |
parent | d880bb845c93761c0ab028e6f9ec31f2c43edb1a (diff) |
print AH/ESP SPI like ipt_LOG.c (Yoshihiro Kawabe)
Diffstat (limited to 'ulogd/extensions')
-rw-r--r-- | ulogd/extensions/printpkt.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ulogd/extensions/printpkt.c b/ulogd/extensions/printpkt.c index 91f6e2b..a8cbf03 100644 --- a/ulogd/extensions/printpkt.c +++ b/ulogd/extensions/printpkt.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * $Id: ulogd_LOGEMU.c,v 1.15 2003/09/28 15:19:26 laforge Exp $ + * $Id: printpkt.c,v 1.1 2003/10/10 15:56:37 laforge Exp $ * */ @@ -224,6 +224,14 @@ int printpkt_print(ulog_iret_t *res, char *buf, int prefix) break; } break; + case IPPROTO_ESP: + case IPPROTO_AH: + buf_cur += sprintf(buf_cur, "PROTO=%s ", GET_VALUE(12).ui8 == IPPROTO_ESP ? "ESP" : "AH"); + /* FIXME: "INCOMPLETE [%u bytes]" in case of short pkt */ + if (intr_ids[34].id > 0) { + buf_cur += sprintf(buf_cur, "SPI=0x%x ", GET_VALUE(34).ui32); + } + break; default: buf_cur += sprintf(buf_cur, "PROTO=%u ", GET_VALUE(11).ui8); |