ARP flags
Oqak
node.ch na centrum.cz
Pátek Září 23 03:48:01 CEST 2005
>> IP address HW type Flags HW address Mask
>> Device
>> 192.168.10.10 0x1 0x2 00:1A:A2:F4:42:18 *
>> br0
>>
> Podle me je 0x1 ethernet, do /proc/net/arp zapisuje obsah
> net_device->type, ktery je definovan v include/linux/netdevice.h jako
> unsigned short type; /* interface hardware type */
> Zjistuje se to podle RFC1700,
> ARPHRD_NETROM NET/ROM(tm) devices
> ARPHRD_ETHER 10 and 100Mbit/second Ethernet
> ARPHRD_EETHER Experimental Ethernet (not used)
> ARPHRD_AX25 AX.25 level 2 interfaces
> ARPHRD_PRONET PROnet token ring (not used)
> ARPHRD_CHAOS ChaosNET (not used)
> ARPHRD_IEE802 802.2 networks notably token ring
> ARPHRD_ARCNET ARCnet interfaces
> ARPHRD_DLCI Frame Relay DLCI
> Defined by Linux:
> ARPHRD_SLIP Serial Line IP protocol
> ARPHRD_CSLIP SLIP with VJ header compression
> ARPHRD_SLIP6 6bit encoded SLIP
> ARPHRD_CSLIP6 6bit encoded header compressed SLIP
> ARPHRD_ADAPT SLIP interface in adaptive mode
> ARPHRD_PPP PPP interfaces (async and sync)
> ARPHRD_TUNNEL IPIP tunnels
> ARPHRD_TUNNEL6 IPv6 over IP tunnels
> ARPHRD_FRAD Frame Relay Access Device
> ARPHRD_SKIP SKIP encryption tunnel
> ARPHRD_LOOPBACK Loopback device
> ARPHRD_LOCALTLK Localtalk apple networking device
> ARPHRD_METRICOM Metricom Radio Network
>
> Opravte me, jestli se mylim.
a ten flag? Ten se myslim meni podle toho jak dlouho je PC odpojene...
Btw a kde jsou cisla pro ty promenne?
>> A dale by me zajimalo, za jak dlouho po vypnuti PC zmizi standardne
>> zaznam z
>> ARP tabulky routeru?
>>
> Muzete si to zmerit ;-), je to OS specific
je to linux 2.4.20 tusim, merit se mi to nechce asi je timeout v nejakem
zdrojaku na ktery jsem myslel ze kernel hacker odkaze (nejlepe linkem, ne
abych musel stahovat pul jadra), anebo to nekdo vi z hlavy, alespon
priblizne dik.
Další informace o konferenci Linux