summaryrefslogtreecommitdiffstats
path: root/test/fixtures/shared/bin/ifconfig
blob: 59c9140b9d5487dfd8f3e7aaef085db3ed7bf5e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

# Dummy "ifconfig -a" emulator

cat <<EOF
eth0      Link encap:Ethernet  HWaddr 33:33:33:33:33:33
          inet addr:192.168.80.11  Bcast:192.168.80.255  Mask:255.255.255.0
          inet6 addr: fe80::000:0000:0000:0000/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:855946 errors:42 dropped:0 overruns:0 frame:42
          TX packets:477196 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1142133425 (1.0 GiB)  TX bytes:47621718 (45.4 MiB)
          Interrupt:23 Base address:0xc000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:129059 errors:0 dropped:0 overruns:0 frame:0
          TX packets:129059 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:7456154 (7.1 MiB)  TX bytes:7456154 (7.1 MiB)
EOF