Skip to content
Success

Changes

Summary

  1. Refactor tun_t fields and alloc APIs (details)
Commit 9f1fd4214877a7ac2de469769d8c837dd9e480b2 by Pau Espin Pedrol
Refactor tun_t fields and alloc APIs

The previous state of code made allocation code more complex for no good
reason; use usual alloc() type function instead, splitting between the 2
types of tun_t implementations available to make it easier to
understand.

Move the several tun-iface specific mode fields to a substruct to make
it clear those are only really containing useful information when the
tun_t is created in tun-iface mode.

Change-Id: Ic71f91c62cd5bd48c6d35534eaac2091e4c69735
The file was modifiedlib/tun.h
The file was modifiedlib/tun.c
The file was modifiedggsn/ggsn.c
The file was modifiedsgsnemu/sgsnemu.c