Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277971
b: refs/heads/master
c: 450faac
h: refs/heads/master
i:
  277969: 6a82941
  277967: 50423b1
v: v3
  • Loading branch information
David S. Miller committed Nov 26, 2011
1 parent 5ba6369 commit 86eaf3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 49f5ed4250c757cb19d953fcac2737a35ca14d76
refs/heads/master: 450faacc621dbe0a4945ed8292afd45f4602d263
2 changes: 2 additions & 0 deletions trunk/Documentation/networking/ifenslave.c
Original file line number Diff line number Diff line change
Expand Up @@ -539,12 +539,14 @@ static int if_getconfig(char *ifname)
metric = 0;
} else
metric = ifr.ifr_metric;
printf("The result of SIOCGIFMETRIC is %d\n", metric);

strcpy(ifr.ifr_name, ifname);
if (ioctl(skfd, SIOCGIFMTU, &ifr) < 0)
mtu = 0;
else
mtu = ifr.ifr_mtu;
printf("The result of SIOCGIFMTU is %d\n", mtu);

strcpy(ifr.ifr_name, ifname);
if (ioctl(skfd, SIOCGIFDSTADDR, &ifr) < 0) {
Expand Down

0 comments on commit 86eaf3a

Please sign in to comment.