Commit 2d70b2c6ed56abe9ad3cba9ea0255b3d8a521337

Authored by achemin1
1 parent 629c100c

feat: virtual interface implementer but not working

Showing 3 changed files with 69 additions and 0 deletions   Show diff stats
@@ -36,6 +36,7 @@ int s=connexionServeur(serveur, service); @@ -36,6 +36,7 @@ int s=connexionServeur(serveur, service);
36 if(s<0){ fprintf(stderr,"Erreur de connexion au serveur\n"); exit(EXIT_FAILURE); } 36 if(s<0){ fprintf(stderr,"Erreur de connexion au serveur\n"); exit(EXIT_FAILURE); }
37 37
38 // Ouverture de l'interface reseau 38 // Ouverture de l'interface reseau
  39 +creationInterfaceVirtuelle("CLIENT2");
39 40
40 // Communication avec le serveur 41 // Communication avec le serveur
41 boucle(s); 42 boucle(s);
with.txt 0 → 100644
@@ -0,0 +1,34 @@ @@ -0,0 +1,34 @@
  1 +1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
  2 + link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
  3 + inet 127.0.0.1/8 scope host lo
  4 + valid_lft forever preferred_lft forever
  5 + inet6 ::1/128 scope host
  6 + valid_lft forever preferred_lft forever
  7 +2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bridge state UP group default qlen 1000
  8 + link/ether 8c:ec:4b:83:b9:65 brd ff:ff:ff:ff:ff:ff
  9 +3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast master bridge state DOWN group default qlen 1000
  10 + link/ether 00:15:17:9e:b7:2e brd ff:ff:ff:ff:ff:ff
  11 +4: bridge: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
  12 + link/ether 00:15:17:9e:b7:2e brd ff:ff:ff:ff:ff:ff
  13 + inet 172.26.145.68/24 brd 172.26.145.255 scope global bridge
  14 + valid_lft forever preferred_lft forever
  15 + inet6 2001:660:4401:6050:d4cb:cb76:5f6d:2e40/64 scope global temporary dynamic
  16 + valid_lft 997sec preferred_lft 897sec
  17 + inet6 2001:660:4401:6050:215:17ff:fe9e:b72e/64 scope global dynamic mngtmpaddr
  18 + valid_lft 997sec preferred_lft 897sec
  19 + inet6 2001:660:4401:6050:5000::18/64 scope global
  20 + valid_lft forever preferred_lft forever
  21 + inet6 fe80::215:17ff:fe9e:b72e/64 scope link
  22 + valid_lft forever preferred_lft forever
  23 +5: vmnet1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000
  24 + link/ether 00:50:56:c0:00:01 brd ff:ff:ff:ff:ff:ff
  25 + inet 172.16.242.1/24 brd 172.16.242.255 scope global vmnet1
  26 + valid_lft forever preferred_lft forever
  27 + inet6 fe80::250:56ff:fec0:1/64 scope link
  28 + valid_lft forever preferred_lft forever
  29 +6: vmnet8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000
  30 + link/ether 00:50:56:c0:00:08 brd ff:ff:ff:ff:ff:ff
  31 + inet 192.168.69.1/24 brd 192.168.69.255 scope global vmnet8
  32 + valid_lft forever preferred_lft forever
  33 + inet6 fe80::250:56ff:fec0:8/64 scope link
  34 + valid_lft forever preferred_lft forever
without.txt 0 → 100644
@@ -0,0 +1,34 @@ @@ -0,0 +1,34 @@
  1 +1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
  2 + link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
  3 + inet 127.0.0.1/8 scope host lo
  4 + valid_lft forever preferred_lft forever
  5 + inet6 ::1/128 scope host
  6 + valid_lft forever preferred_lft forever
  7 +2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bridge state UP group default qlen 1000
  8 + link/ether 8c:ec:4b:83:b9:65 brd ff:ff:ff:ff:ff:ff
  9 +3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast master bridge state DOWN group default qlen 1000
  10 + link/ether 00:15:17:9e:b7:2e brd ff:ff:ff:ff:ff:ff
  11 +4: bridge: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
  12 + link/ether 00:15:17:9e:b7:2e brd ff:ff:ff:ff:ff:ff
  13 + inet 172.26.145.68/24 brd 172.26.145.255 scope global bridge
  14 + valid_lft forever preferred_lft forever
  15 + inet6 2001:660:4401:6050:d4cb:cb76:5f6d:2e40/64 scope global temporary dynamic
  16 + valid_lft 941sec preferred_lft 841sec
  17 + inet6 2001:660:4401:6050:215:17ff:fe9e:b72e/64 scope global dynamic mngtmpaddr
  18 + valid_lft 941sec preferred_lft 841sec
  19 + inet6 2001:660:4401:6050:5000::18/64 scope global
  20 + valid_lft forever preferred_lft forever
  21 + inet6 fe80::215:17ff:fe9e:b72e/64 scope link
  22 + valid_lft forever preferred_lft forever
  23 +5: vmnet1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000
  24 + link/ether 00:50:56:c0:00:01 brd ff:ff:ff:ff:ff:ff
  25 + inet 172.16.242.1/24 brd 172.16.242.255 scope global vmnet1
  26 + valid_lft forever preferred_lft forever
  27 + inet6 fe80::250:56ff:fec0:1/64 scope link
  28 + valid_lft forever preferred_lft forever
  29 +6: vmnet8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000
  30 + link/ether 00:50:56:c0:00:08 brd ff:ff:ff:ff:ff:ff
  31 + inet 192.168.69.1/24 brd 192.168.69.255 scope global vmnet8
  32 + valid_lft forever preferred_lft forever
  33 + inet6 fe80::250:56ff:fec0:8/64 scope link
  34 + valid_lft forever preferred_lft forever