Merge pull request #223 from arter97/devel

Resolve a segmentation fault from io_module.c and improve README
master
Asim Jamshed 2019-02-26 15:27:27 -08:00 committed by GitHub
commit 932cc65a4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 9 deletions

11
README
View File

@ -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

View File

@ -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

View File

@ -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 */