Changeset 1eda9e9


Ignore:
Timestamp:
Apr 10, 2013 5:01:54 PM (8 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
13633a0
Parents:
e1c533e
Message:

set ethertype to IPv4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/streaming/java/src/net/i2p/client/streaming/PcapWriter.java

    re1c533e r1eda9e9  
    5050                                                0, 0, (byte) 0xff, (byte) 0xff, 0, 0, 0, 1 };
    5151
    52     /** dummy macs and ethertype */
     52    /** dummy macs, IPv4 ethertype */
    5353    private static final byte[] MAC_HEADER = { 1, 2, 3, 4, 5, 6,
    5454                                               1, 2, 3, 4, 5, 6,
    55                                                (byte) 0x80, 0 };
     55                                               (byte) 0x08, 0 };
    5656    private static final byte[] IP_HEADER_1 = { 0x45, 0 };  // the length goes after this
    5757    private static final byte[] IP_HEADER_2 = { 0x12, 0x34, 0x40, 0, 64, 6 };  // ID, flags, TTL and TCP
Note: See TracChangeset for help on using the changeset viewer.