Skip to content

Commit

Permalink
conf.help created for ether-header, ARP, IPv6, ICMPv6, ND-RA
Browse files Browse the repository at this point in the history
  • Loading branch information
0xba1a committed Aug 17, 2013
1 parent 30773a9 commit 1b6b43e
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 0 deletions.
21 changes: 21 additions & 0 deletions sample_confs/conf_arp.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
BUFF_SIZE=1024

IF_NAME=lo
PK_DST_MAC=00:01:9B:04:03:3C

ETHER_HEADER
DST_MAC=ff:ff:ff:ff:ff:ff
SRC_MAC=5C:D9:98:C1:8E:FE
ETHR_TYPE=2054

ARP
ARP_HW_TYPE=1
ARP_HW_LEN=6
ARP_PROTO_TYPE=2048
ARP_PROTO_LEN=4
ARP_OPCODE=1
ARP_SRC_MAC=12:34:56:78:90:AB
ARP_SRC_IP=1.2.3.4
ARP_DST_MAC=AB:CD:EF:12:34:56
ARP_DST_IP=5.6.7.8

54 changes: 54 additions & 0 deletions sample_confs/conf_icmp6_RA.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
BUFF_SIZE=1024

IF_NAME=lo
PK_DST_MAC=00:01:9B:04:03:3C

ETHER_HEADER
DST_MAC=ff:ff:ff:ff:ff:ff
SRC_MAC=5C:D9:98:C1:8E:FE
ETHR_TYPE=34525

IPV6
IPV6_VERSION=6
IPV6_TRAFFIC_CLASS=255
IPV6_FLOW_LABEL=1234
IPV6_PAYLOAD_LENGTH=64
IPV6_NEXT_HEADER=58
IPV6_HOP_LIMIT=128
IPV6_SRC_ADDR=fe80::213
IPV6_DST_ADDR=E23::9AD
IPV6_EXT_HDRS=0

ICMP6
ICMP6_TYPE=134
ICMP6_CODE=0
ICMP6_CHECKSUM=-1

NDISC_RA
NDISC_RA_CUR_HOP_LIMIT=124
NDISC_RA_M_FLAG=1
NDISC_RA_O_FLAG=1
NDISC_RA_ROUTER_LIFETIME=1223
NDISC_RA_REACHABLE_TIME=2342
NDISC_RA_RETRANS_TIMER=45543
NDISC_RA_OPTION_NUM=3

NDISC_RA_OPTION=NDISC_RA_PREFIX_INFO
NDISC_RA_OP_TYPE=3
NDISC_RA_OP_LEN=4
NDISC_RA_PREFIX_LEN=64
NDISC_RA_L_FLAG=1
NDISC_RA_A_FLAG=0
NDISC_RA_PREFIX_VALID_LIFETIME=12345
NDISC_RA_PREFIX_PREFERRED_LIFETIME=54321
NDISC_RA_PREFIX=2001:23

NDISC_RA_OPTION=NDISC_RA_SRC_LINK_ADDR
NDISC_RA_OP_TYPE=1
NDISC_RA_OP_LEN=1
NDISC_RA_OP_SRC_LINK_ADDR=00:01:02:03:04:05

NDISC_RA_OPTION=NDISC_RA_MTU
NDISC_RA_OP_TYPE=5
NDISC_RA_OP_LEN=1
NDISC_RA_MTU=245
45 changes: 45 additions & 0 deletions sample_confs/conf_ipv6.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
BUFF_SIZE=1024

IF_NAME=lo
PK_DST_MAC=00:01:9B:04:03:3C

ETHER_HEADER
DST_MAC=ff:ff:ff:ff:ff:ff
SRC_MAC=5C:D9:98:C1:8E:FE
ETHR_TYPE=34525

IPV6
IPV6_VERSION=6
IPV6_TRAFFIC_CLASS=255
IPV6_FLOW_LABEL=1234
IPV6_PAYLOAD_LENGTH=80
IPV6_NEXT_HEADER=0
IPV6_HOP_LIMIT=128
IPV6_SRC_ADDR=fe80::213
IPV6_DST_ADDR=E23::9AD
IPV6_EXT_HDRS=4

HOP_BY_HOP
HBH_NXT_HDR=60
HBH_HDR_EXT_LEN=1
HBH_OPTION=0x00010B0000000000000000000000

DESTINATION_HEADER
DH_NXT_HDR=43
DH_HDR_EXT_LEN=1
DH_OPTION=0x00010B0000000000000000000000

ROUTING_HEADER
RH_NXT_HDR=44
RH_EXT_LEN=4
RH_TYPE=0
RH_SEG_LEFT=2
RH_DATA
RH_ADDR=abcd::1
RH_ADDR=1234::a

FRAGMENT_HEADER
FH_NXT_HDR=59
FH_OFFSET=4
FH_M_FLAG=1
FH_IDENTIFICATION=45

0 comments on commit 1b6b43e

Please sign in to comment.