Merge pull request #223 from arter97/devel
Resolve a segmentation fault from io_module.c and improve READMEmaster
commit
932cc65a4b
11
README
11
README
|
@ -299,9 +299,14 @@ We tested the DPDK version (polling driver) with Linux-3.13.0 kernel.
|
|||
- Use ^C to gracefully shutdown the application. Two consecutive
|
||||
^C (separated by 1 sec) will force quit.
|
||||
|
||||
2. My application keeps printing "No route to 0.0.0.0"
|
||||
- Try to turn off your network-manager for xge*. The network manager
|
||||
can override the IP configuration set by install.py in PSIO driver.
|
||||
2. My application doesn't use the address specified from ifconfig.
|
||||
- For some Linux distros(e.g. Ubuntu), NetworkManager may re-assign
|
||||
a different IP address, or delete the assigned IP address.
|
||||
|
||||
Disable NetworkManager temporarily if that's the case.
|
||||
NetworkManager will be re-enabled upon reboot.
|
||||
|
||||
# sudo service network-manager stop
|
||||
|
||||
3. Can I statically set the routing or arp table?
|
||||
- Yes, mTCP allows static route and arp configuration. Go to the
|
||||
|
|
13
README.md
13
README.md
|
@ -348,9 +348,16 @@ We tested the DPDK version (polling driver) with Linux-3.13.0 kernel.
|
|||
- Use ^C to gracefully shutdown the application. Two consecutive
|
||||
^C (separated by 1 sec) will force quit.
|
||||
|
||||
2. My application keeps printing "No route to 0.0.0.0"
|
||||
- Try to turn off your network-manager for xge*. The network manager
|
||||
can override the IP configuration set by install.py in PSIO driver.
|
||||
2. My application doesn't use the address specified from ifconfig.
|
||||
- For some Linux distros(e.g. Ubuntu), NetworkManager may re-assign
|
||||
a different IP address, or delete the assigned IP address.
|
||||
|
||||
- Disable NetworkManager temporarily if that's the case.
|
||||
NetworkManager will be re-enabled upon reboot.
|
||||
|
||||
```bash
|
||||
sudo service network-manager stop
|
||||
```
|
||||
|
||||
3. Can I statically set the routing or arp table?
|
||||
- Yes, mTCP allows static route and arp configuration. Go to the
|
||||
|
|
|
@ -374,7 +374,7 @@ SetNetEnv(char *dev_name_list, char *port_stat_list)
|
|||
|
||||
iter_if = ifap;
|
||||
do {
|
||||
if (iter_if->ifa_addr->sa_family == AF_INET &&
|
||||
if (iter_if->ifa_addr && iter_if->ifa_addr->sa_family == AF_INET &&
|
||||
!set_all_inf &&
|
||||
(seek=strstr(dev_name_list, iter_if->ifa_name)) != NULL &&
|
||||
/* check if the interface was not aliased */
|
||||
|
@ -473,7 +473,7 @@ SetNetEnv(char *dev_name_list, char *port_stat_list)
|
|||
|
||||
iter_if = ifap;
|
||||
do {
|
||||
if (iter_if->ifa_addr->sa_family == AF_INET &&
|
||||
if (iter_if->ifa_addr && iter_if->ifa_addr->sa_family == AF_INET &&
|
||||
!set_all_inf &&
|
||||
(seek=strstr(dev_name_list, iter_if->ifa_name)) != NULL &&
|
||||
/* check if the interface was not aliased */
|
||||
|
@ -623,7 +623,7 @@ SetNetEnv(char *dev_name_list, char *port_stat_list)
|
|||
|
||||
iter_if = ifap;
|
||||
do {
|
||||
if (iter_if->ifa_addr->sa_family == AF_INET &&
|
||||
if (iter_if->ifa_addr && iter_if->ifa_addr->sa_family == AF_INET &&
|
||||
!set_all_inf &&
|
||||
(seek=strstr(dev_name_list, iter_if->ifa_name)) != NULL &&
|
||||
/* check if the interface was not aliased */
|
||||
|
|
Loading…
Reference in New Issue