Skip to main content

Posts

Showing posts from September, 2021

Developer tools, tricks

 Developer Tips ------------ create cscope and tags to source code -------------- Create CTAGS, CREATE FILE LIST [cscope.files], start cscope where the cscope.file exist. cscope steps - ctags -R . ; find . -name *.[CchH] > cscope.files ; cscope # ready to start using cscope. Using Ctrl+] Ctril+T for moving forward/ backwards. ---------------------------------------------------------- Setting up messages file log rotation on linux 1. # su - $ change to root account 2. # go to /etc/logrotate.d    # delete the line (/var/log/messages) from file syslog sed "/message/d" /etc/logrotate.d/syslog > /tmp/tmpsyslog && mv /tmp/tmpsyslog /etc/logrotate.d/syslog OR grep -v "message" /etc/logrotate.d/syslog > /tmp/tmpsyslog && mv /tmp/tmpsyslog /etc/logrotate.d/syslog 3. #create new file and add below content to limit the file rotate on 20M file size or weekly once which is satisfied cat <<EOF > /etc/logrotate.d/messageslog /var/log/messages {  
3gpp UE Identities IMSI # MSISDN # External Identifier # IP address # IoT # 5G # 6G IMSI # (15 Digits/ E.164/ ) The IMSI number is subscriber identification with given operator/ network (PLMN) with a maximum length of 15 digits. The IMSI is consists of an MCC (Mobile Country Code), an MNC (Mobile Network Code), and an MSIN (Mobile Subscriber Identity)  formation IMSI (15) = MCC (3) + MNC (2-3) + MSIN (9-10) format - TBCD format MSISDN format (15 digits/ E.164/ TBCD Format) The ITU-T recommendation E.164 limits the maximum length of an MSISDN to 15 digits. wherein 1-3 digits are reserved for country code. Prefixes are not included (e.g., 00 prefixes an international MSISDN when dialing from Sweden). http://www.3gpp.org/wiki/index.php?title=Current%20Capacity%20of%20IMSI%2C%20MSISDN%2C%20and%20IPv6%20Identifiers https://www.linkedin.com/pulse/mobile-numbering-basics-explained-imsi-vs-msisdn-atte-miettinen/ From 3GPP TS 23.003:  IMSI : No more than 15 digits. Is composed of three fields:

Linux Interface bonding

interface bonding (reference - https://wiki.linuxfoundation.org/networking/bonding) purpose - to provide always connected / seamless connectivity service The Linux bonding driver provides a method for aggregating multiple network interfaces into a single logical bonded interface  => source code available in drivers/net/bonding directory bonding driver creates a logical network interface by using multiple physical network interfaces underneath Bonding provides benefits such as link aggregation (bandwidth), redundancy (availability) etc.  Upper layers communicate through the logical bond interface which has an IP address but eventually the active physical interface(s) communicate thus hiding the actual interface. Permanent Address of physical link (virtual link does not have it) command - ethtool -P eth01 Permanent address: 2c:59:77:95:22:11 The real/ physical port/ interface has Interrupts and Permanent Address (MAC), verify using ifconfig command, something like this "Interrupt