Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*-----------\
- | GDB output |
- \-----------*/
- (gdb) break abort
- Function "abort" not defined.
- Make breakpoint pending on future shared library load? (y or [n]) y
- Breakpoint 1 (abort) pending.
- (gdb) r /etc/olsrd.conf -print
- Starting program: /home/user/olsr/olsrd/src/cfgparser/olsrd_cfgparser /etc/olsrd.conf -print
- Parsing file: "/etc/olsrd.conf"
- Debug level: 1
- setting ifs_in_curr_cfg = 0
- HELLO interval: 6.00
- HELLO validity: 600.00
- TC interval: 0.50
- TC validity: 300.00
- MID interval: 10.00
- MID validity: 300.00
- HNA interval: 10.00
- HNA validity: 300.00
- Link quality fish eye 1
- IpVersion: 4
- Clear screen enabled
- HNA IPv4 entry: 0.0.0.0/0.0.0.0
- Noint set to 1
- Willingness: 3
- IPC host: 127.0.0.1
- Hysteresis enabled
- Hysteresis Scaling: 0.50
- Hysteresis UpperThr: 0.80
- Hysteresis LowerThr: 0.30
- Link quality level 0
- *** olsrd configuration ***
- Debug Level : 1
- IpVersion : 4
- No interfaces : ALLOWED
- TOS : 0xc0
- OlsrPort : 698
- RtTable : 0
- RtTableDefault : 0
- RtTableTunnel : 0
- Willingness : 3
- IPC connections : 2
- Host 127.0.0.1
- Pollrate : 0.05
- NIC ChangPollrate: 2.50
- TC redundancy : 2
- MPR coverage : 7
- LQ level : 0
- LQ fish eye : 1
- LQ aging factor : 0.050000
- LQ algorithm name: default
- NAT threshold : 1.000000
- Clear screen : yes
- Use niit : yes
- Smart Gateway : no
- SmGw. Del Srv Tun: no
- SmGw. Use Count : 1
- SmGw. Takedown% : 25
- SmGw. Pol. Script: (null)
- SmGw. Egress I/Fs:
- SmGw. Mark Egress: 91
- SmGw. Mark Tunnel: 101
- SmGw. Allow NAT : yes
- SmGw. period : 10000
- SmGw. stablecount: 6
- SmGw. threshold : 0%
- Smart Gw. Uplink : both
- SmGw. Uplink NAT : yes
- Smart Gw. speed : 128 kbit/s up, 1024 kbit/s down
- # Smart Gw. prefix : ::/0
- InterfaceDefaults:
- Program received signal SIGSEGV, Segmentation fault.
- 0x08049cd6 in olsrd_print_interface_cnf (cnf=0x0, cnfi=0x0, defcnf=true) at olsrd_conf.c:186
- 186 if (cnf->ipv4_multicast.v4.s_addr) {
- (gdb) bt
- #0 0x08049cd6 in olsrd_print_interface_cnf (cnf=0x0, cnfi=0x0, defcnf=true) at olsrd_conf.c:186
- #1 0x0804c435 in olsrd_print_cnf (cnf=0x8064008) at olsrd_conf.c:1086
- #2 0x08049b24 in main (argc=3, argv=0xbffff3b4) at olsrd_conf.c:112
- (gdb) l
- 181 {
- 182 struct olsr_lq_mult *mult;
- 183 int lq_mult_cnt = 0;
- 184 char ipv6_buf[INET6_ADDRSTRLEN]; /* buffer for IPv6 inet_htop */
- 185
- 186 if (cnf->ipv4_multicast.v4.s_addr) {
- 187 printf("\tIPv4 broadcast/multicast : %s%s\n", inet_ntoa(cnf->ipv4_multicast.v4),DEFAULT_STR(ipv4_multicast.v4.s_addr));
- 188 } else {
- 189 printf("\tIPv4 broadcast/multicast : AUTO%s\n",DEFAULT_STR(ipv4_multicast.v4.s_addr));
- 190 }
- (gdb) p cnf
- $1 = (struct if_config_options *) 0x0
- ====================================================================================
- /*-------------------------\
- | cfgparser without -print |
- \-------------------------*/
- user@user-laptop:~/olsr/olsrd$ ./src/cfgparser/olsrd_cfgparser /etc/olsrd.conf
- Parsing file: "/etc/olsrd.conf"
- Debug level: 1
- setting ifs_in_curr_cfg = 0
- HELLO interval: 6.00
- HELLO validity: 600.00
- TC interval: 0.50
- TC validity: 300.00
- MID interval: 10.00
- MID validity: 300.00
- HNA interval: 10.00
- HNA validity: 300.00
- Link quality fish eye 1
- IpVersion: 4
- Clear screen enabled
- HNA IPv4 entry: 0.0.0.0/0.0.0.0
- Noint set to 1
- Willingness: 3
- IPC host: 127.0.0.1
- Hysteresis enabled
- Hysteresis Scaling: 0.50
- Hysteresis UpperThr: 0.80
- Hysteresis LowerThr: 0.30
- Link quality level 0
- Use -print to view parsed values
- Configfile parsed OK
- /*-----------------------\
- | cfgparser with -print |
- \-----------------------*/
- user@user-laptop:~/olsr/olsrd$ ./src/cfgparser/olsrd_cfgparser /etc/olsrd.conf -print
- Parsing file: "/etc/olsrd.conf"
- Debug level: 1
- setting ifs_in_curr_cfg = 0
- HELLO interval: 6.00
- HELLO validity: 600.00
- TC interval: 0.50
- TC validity: 300.00
- MID interval: 10.00
- MID validity: 300.00
- HNA interval: 10.00
- HNA validity: 300.00
- Link quality fish eye 1
- IpVersion: 4
- Clear screen enabled
- HNA IPv4 entry: 0.0.0.0/0.0.0.0
- Noint set to 1
- Willingness: 3
- IPC host: 127.0.0.1
- Hysteresis enabled
- Hysteresis Scaling: 0.50
- Hysteresis UpperThr: 0.80
- Hysteresis LowerThr: 0.30
- Link quality level 0
- *** olsrd configuration ***
- Debug Level : 1
- IpVersion : 4
- No interfaces : ALLOWED
- TOS : 0xc0
- OlsrPort : 698
- RtTable : 0
- RtTableDefault : 0
- RtTableTunnel : 0
- Willingness : 3
- IPC connections : 2
- Host 127.0.0.1
- Pollrate : 0.05
- NIC ChangPollrate: 2.50
- TC redundancy : 2
- MPR coverage : 7
- LQ level : 0
- LQ fish eye : 1
- LQ aging factor : 0.050000
- LQ algorithm name: default
- NAT threshold : 1.000000
- Clear screen : yes
- Use niit : yes
- Smart Gateway : no
- SmGw. Del Srv Tun: no
- SmGw. Use Count : 1
- SmGw. Takedown% : 25
- SmGw. Pol. Script: (null)
- SmGw. Egress I/Fs:
- SmGw. Mark Egress: 91
- SmGw. Mark Tunnel: 101
- SmGw. Allow NAT : yes
- SmGw. period : 10000
- SmGw. stablecount: 6
- SmGw. threshold : 0%
- Smart Gw. Uplink : both
- SmGw. Uplink NAT : yes
- Smart Gw. speed : 128 kbit/s up, 1024 kbit/s down
- # Smart Gw. prefix : ::/0
- InterfaceDefaults:
- Segmentation fault (core dumped)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement