更新: | 2024-05-20 |
---|---|
作者: | @voluntas |
バージョン: | 2024.1 |
URL: | https://voluntas.github.io/ |
日時: | 2023-12-03 |
---|---|
作: | voluntas |
バージョン: | 2023.1 |
url: | https://voluntas.github.io |
この記事が良いと思ったらこの記事に Star をお願いします
更新: | 2018-08-20 |
---|---|
作者: | @voluntas |
バージョン: | 18.8.3 |
URL: | https://voluntas.github.io/ |
更新: | 2020-02-01 |
---|---|
作者: | @voluntas |
バージョン: | 2020.1 |
URL: | https://voluntas.github.io/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(bridge). | |
-export([start/2]). | |
-define(SIOCGIFINDEX, 16#8933). | |
-define(ETH_P_ALL, 16#0300). | |
start(Iface1, Iface2) -> | |
S1 = bind(Iface1), | |
S2 = bind(Iface2), |