dsniff  2.4b2
About: A collection of tools for network auditing
  Fossies Dox: dsniff-2.4b2.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

decode_pptp.c File Reference
#include "config.h"
#include <sys/types.h>
#include <openssl/sha.h>
#include <stdio.h>
#include <string.h>
#include "buf.h"
#include "decode.h"
Include dependency graph for decode_pptp.c:

Go to the source code of this file.

Data Structures

struct  pptp_gre_header
 
struct  ppp_header
 
struct  ppp_lcp_chap_header
 
struct  ppp_chap_challenge
 
struct  challenge
 

Macros

#define PPTP_GRE_PROTO   0x880B
 
#define PPTP_GRE_VER   0x1
 
#define PPTP_GRE_IS_C(f)   ((f) & 0x80)
 
#define PPTP_GRE_IS_R(f)   ((f) & 0x40)
 
#define PPTP_GRE_IS_K(f)   ((f) & 0x20)
 
#define PPTP_GRE_IS_S(f)   ((f) & 0x10)
 
#define PPTP_GRE_IS_A(f)   ((f) & 0x80)
 
#define PPP_PROTO_CHAP   0xc223
 
#define PPP_CHAP_CODE_CHALLENGE   1
 
#define PPP_CHAP_CODE_RESPONSE   2
 

Functions

int decode_pptp (u_char *buf, int len, u_char *obuf, int olen)
 

Macro Definition Documentation

◆ PPP_CHAP_CODE_CHALLENGE

#define PPP_CHAP_CODE_CHALLENGE   1

Definition at line 57 of file decode_pptp.c.

◆ PPP_CHAP_CODE_RESPONSE

#define PPP_CHAP_CODE_RESPONSE   2

Definition at line 58 of file decode_pptp.c.

◆ PPP_PROTO_CHAP

#define PPP_PROTO_CHAP   0xc223

Definition at line 49 of file decode_pptp.c.

◆ PPTP_GRE_IS_A

#define PPTP_GRE_IS_A (   f)    ((f) & 0x80)

Definition at line 41 of file decode_pptp.c.

◆ PPTP_GRE_IS_C

#define PPTP_GRE_IS_C (   f)    ((f) & 0x80)

Definition at line 37 of file decode_pptp.c.

◆ PPTP_GRE_IS_K

#define PPTP_GRE_IS_K (   f)    ((f) & 0x20)

Definition at line 39 of file decode_pptp.c.

◆ PPTP_GRE_IS_R

#define PPTP_GRE_IS_R (   f)    ((f) & 0x40)

Definition at line 38 of file decode_pptp.c.

◆ PPTP_GRE_IS_S

#define PPTP_GRE_IS_S (   f)    ((f) & 0x10)

Definition at line 40 of file decode_pptp.c.

◆ PPTP_GRE_PROTO

#define PPTP_GRE_PROTO   0x880B

Definition at line 34 of file decode_pptp.c.

◆ PPTP_GRE_VER

#define PPTP_GRE_VER   0x1

Definition at line 35 of file decode_pptp.c.

Function Documentation

◆ decode_pptp()