Skip to content

Instantly share code, notes, and snippets.

package main
import (
"archive/zip"
"encoding/xml"
"fmt"
"io"
"log"
"os"
"strings"
@khirono
khirono / notify_test.go
Created May 13, 2022 06:59
netlink notifications
package gtp5gnl
import (
"encoding/json"
"log"
"syscall"
"testing"
"github.com/khirono/go-nl"
)

OMNI Hands-on#2向け free5GCのアーキテクチャ(構造・特徴)説明資料

本ドキュメントは、OMNI Hands-on#2向けに、OMNI Meetup#2で発表した「free5GCの構造と特徴」から一部抜粋してfree5GCのアーキテクチャについて説明したものです。

OMNI Meetup#2で発表したフルのテキストは以下にあります。free5GCに興味がありましたらこちらも是非ご参照ください。

package context
import (
"container/heap"
"errors"
"net"
)
type IPAllocator struct {
base net.IP
@khirono
khirono / msg.go
Created September 17, 2021 04:26
package gtpv1
import (
"encoding/binary"
)
type Encoder interface {
Len() int
Encode([]byte) (int, error)
}
@khirono
khirono / free5gc-gnb-aps.yaml
Last active April 5, 2022 02:34
free5GC+UERANSIM config & consolelog
mcc: '208' # Mobile Country Code value
mnc: '93' # Mobile Network Code value (2 or 3 digits)
nci: '0x000000010' # NR Cell Identity (36-bit)
idLength: 32 # NR gNB ID length in bits [22...32]
tac: 1 # Tracking Area Code
linkIp: 127.0.0.1 # gNB's local IP address for Radio Link Simulation (Usually same with local IP)
ngapIp: 20.20.20.1 # gNB's local IP address for N2 Interface (Usually same with local IP)
gtpIp: 30.30.30.1 # gNB's local IP address for N3 Interface (Usually same with local IP)