📄 decode_rip.c
字号:
/* decode_rip.c Routing Information Protocol. Copyright (c) 2000 Dug Song <dugsong@monkey.org> $Id: decode_rip.c,v 1.3 2000/11/06 14:08:42 dugsong Exp $*/#include "config.h"#include <sys/types.h>#include <stdio.h>#include <string.h>#include "decode.h"intdecode_rip(u_char *buf, int len, u_char *obuf, int olen){ if (len < 21) return (0); /* Version 2 simple password authentication. */ if (buf[1] != 2 || memcmp(buf + 4, "\xff\xff\x00\x02", 4) != 0) return (0); buf[20] = '\0'; return (snprintf(obuf, olen, "%s\n", buf + 20));}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -