Skip to content

v1.0.2

Choose a tag to compare

@stefanwerfling stefanwerfling released this 25 Jul 07:49
· 5 commits to main since this release

Fix build, update readme.

Sample for use:

import {Tun} from 'tuntap2';
import {Rohc} from 'node-rohc';

const tun = new Tun();
const rohc = new Rohc();

tun.mtu = 1400;
tun.ipv4 = '4.3.2.1/24';
tun.on('data', (buf) => {
     const cmpBuf = rohc.compress(new Uint8Array(buf));
     const ippacket = IP.decodeIP(buf);
     console.log(ippacket);
     console.log(cmpBuf);
});