Hi, I am wondering how I can find the network address under following situation.
Things available:
1. An active network drop without knowing any details about the network.
2. I have windows, Linux, and Solaris machine available to use.
Things to achieve:
1. Find out the... (5 Replies)
I'm trying to find the IP address of a print queue. I tried this, but nada.
cat /etc/hosts | lp -d lp01
Looked in the hosts file but it's not there (2 Replies)
I connect to my client's network via VPN. We have a UNIX box there & I would like to know IP address of my PC when I connect to UNIX box using Putty software. I checked this command - /usr/sbin/ifconfig -a and it showed me the output
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232... (4 Replies)
Hello,
I got a list of IP address from which I would like to remove the duplicates. I cat the file and pipe it to uniq -u or uniq -c, I got the same output with all the duplicates. Can anybody please tell me how I can remove the duplicates IPs from this file? This is what I used.
cat filename |... (3 Replies)
Hi all,
I am new to this forum and this is my first question :). Using Red hat Linux.I tried to find file which stores IP address based on different helps given in this forum but did not get success. Here is the system details:
-bash-3.2$ lsb_release -a
LSB Version: ... (2 Replies)
I'm trying to remotely probe a range of IP addresses. First I need a list of IP addresses for a very small geographic area. I've had a lot of trouble obtaining them. I would like to find a database or something.
Suppose I do get the data. Can I see if that IP address is in use by someone? Can I... (2 Replies)
Hi,
I am trying to write a script that will check all used IP on the server and then print me an addressees that are not in use. Problem is in comparing two variables
#!/bin/bash
NETSTAT=$(netstat -ntp | awk '{ print $4 }' | grep -v "127.0.0.1" | cut -d ":" -f1 | grep "^"|sort | uniq )... (6 Replies)
Discussion started by: nemesis911
6 Replies
LEARN ABOUT NETBSD
arpresolve
ARP(9) BSD Kernel Developer's Manual ARP(9)NAME
arp, arp_ifinit, arpresolve, arpintr -- externally visible ARP functions
SYNOPSIS
#include <netinet/if_inarp.h>
void
arp_ifinit(struct ifnet *ifp, struct ifaddr *ifa);
int
arpresolve(struct ifnet *ifp, struct rtentry *rt, struct mbuf *m, struct sockaddr *dst, u_char *desten);
void
arpintr();
DESCRIPTION
The arp functions provide the interface between the arp module and the network drivers which need arp functionality. Such drivers must
request the arp attribute in their "files" declaration.
arp_ifinit() Sets up the arp specific fields in ifa. Additionally, it sends out a gratuitous arp request on ifp, so that other machines are
warned that we have a (new) address and duplicate addresses can be detected.
You must call this in your drivers' ioctl function when you get a SIOCSIFADDR request with an AF_INET address family.
arpresolve() is called by network output functions to resolve an IPv4 address. If no rt is given, a new one is looked up or created. If
the passed or found rt does not contain a valid gateway link level address, a pointer to the packet in m is stored in the route
entry, possibly replacing older stored packets, and an arp request is sent instead. When an arp reply is received, the last
held packet is send. Otherwise, the looked up address is returned and written into the storage desten points to. arpresolve()
returns 1, if a valid address was stored to desten, and the packet can be sent immediately. Else a 0 is returned.
arpintr() When an arp packet is received, the network driver (class) input interrupt handler queues the packet on the arpintrq queue, and
requests an arpintr() soft interrupt callback. arpintr() dequeues the packets, performs sanity checks and calls (for IPv4 arp
packets, which are the only ones supported currently) the in_arpinput() function. in_arpinput() either generates a reply to
request packets, and adds the sender address translation to the routing table, if a matching route entry is found. If the
route entry contained a pointer to a held packet, that packet is sent.
SEE ALSO ether_ifattach(9)
Plummer, D., "RFC826", An Ethernet Address Resolution Protocol.
STANDARDS
RFC 826
HISTORY
Rewritten to support other than Ethernet link level addresses in NetBSD 1.3.
AUTHORS
UCB CSRG (original implementation)
Ignatios Souvatzis (support for non-Ethernet)
CODE REFERENCES
The ARP code is implemented in sys/net/if_arp.h, sys/netinet/if_inarp.h and sys/netinet/if_arp.c.
BSD March 3, 1997 BSD