hi all
iam trying to set my eri0 interface but with little luck .
when i set the ip using ipconfig i always get "bad adress"..
moreover when i use ifconfig eri0 i can notice that the inet is 0.0.0.0 and the netmask 0
i am runnig solaris 9 on sparc .
any helpis highly appreciated ... ... (2 Replies)
Hello,
I have a server with two ip addresses. I need to make the ip address that's currently the secondary the primary. How do I use the ifconfig command and primary option?
Thanks. (5 Replies)
HI All,
My interface card has failed.If i am giving the command to uplumb it i am getting an error.
ce401001: flags=219040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,FAILED,CoS> mtu 1500 index 3
inet 10.188.24.18 netmask ffffffc0 broadcast 10.188.24.63
# ifconfig... (2 Replies)
Is it possible to use a variable as the delimiter using basename?
I have a num variable that will be changing in the filename now.
The files could looke like this
my.email.address@mydomain.com.VL010600_474
my.email.address@mydomain.com.VL020600_474... (2 Replies)
hi,
i want to know how to grep inet address for below
below is the output of ifconfig command
/home/JA> ifconfig
eth0 Link encap:Ethernet HWaddr 00:11:0A:5B:2E:E9
inet addr:161.239.203.18 Bcast:161.239.203.127 Mask:255.255.255.128
UP BROADCAST RUNNING... (3 Replies)
Hello All,
Can someone show me how to cat "only the IP address of e1000g0" using ifconfig -a.
i am trying to grep only the ip address (xx.xx.xx.xx) from the bunch of all other things like, broadcast address, IPV4, UP........and so on.
thanks (1 Reply)
I'm a newbie to linux, so pleases forgive me!
I would like to find a script that I could use to extract a dynamic ip from the ppp0 and set it as a variable to be used in IPTables
basically, if ppp0 ip address is 10.10.10.20, I would like a script that would set a var to 10.10.10.0. of... (9 Replies)
I'm working on an AIX Unix LPAR (AIX 3.5 00C3C9904C00 as returned by uname -a)
I can access this box using telnet, port 22 using adress IP A and B
A=AA.AA.XX.XX and B=AA.AA.YYY.YYY
I can confirm these 2 are the same space, I can see
I can't find address B listed anywhere... so I wonder what... (1 Reply)
hi,
I am trying to configure one of my interfaces, but after reboot - i lose the changes to the netmask & broadcast address.
I have added an entry in /etc/netmasks, but it doesnt pick up the new settings. any ideas - much appreciated.
before reboot:
eri0:... (3 Replies)
Hi Everybody,
Goal:
From my backup box on my local network, knowing the Wifi MAC address of my laptop, I would like to dynamically identify which ip address is attributed to my laptop.
The aim is to store this ip address in a local variable and that this information is retrieved by another... (11 Replies)
Discussion started by: freddie50
11 Replies
LEARN ABOUT NETBSD
__builtin_prefetch
__BUILTIN_PREFETCH(3) BSD Library Functions Manual __BUILTIN_PREFETCH(3)NAME
__builtin_prefetch -- GNU extension to prefetch memory
SYNOPSIS
void
__builtin_prefetch(const void *addr, ...);
DESCRIPTION
The __builtin_prefetch() function prefetches memory from addr. The rationale is to minimize cache-miss latency by trying to move data into a
cache before accessing the data. Possible use cases include frequently called sections of code in which it is known that the data in a given
address is likely to be accessed soon.
In addition to addr, there are two optional stdarg(3) arguments, rw and locality. The value of the latter should be a compile-time constant
integer between 0 and 3. The higher the value, the higher the temporal locality in the data. When locality is 0, it is assumed that there
is little or no temporal locality in the data; after access, it is not necessary to leave the data in the cache. The default value is 3.
The value of rw is either 0 or 1, corresponding with read and write prefetch, respectively. The default value of rw is 0. Also rw must be a
compile-time constant integer.
The __builtin_prefetch() function translates into prefetch instructions only if the architecture has support for these. If there is no sup-
port, addr is evaluated only if it includes side effects, although no warnings are issued by gcc(1).
EXAMPLES
The following optimization appears in the heavily used cpu_in_cksum() function that calculates checksums for the inet(4) headers:
while (mlen >= 32) {
__builtin_prefetch(data + 32);
partial += *(uint16_t *)data;
partial += *(uint16_t *)(data + 2);
partial += *(uint16_t *)(data + 4);
...
partial += *(uint16_t *)(data + 28);
partial += *(uint16_t *)(data + 30);
data += 32;
mlen -= 32;
...
SEE ALSO gcc(1), attribute(3)
Ulrich Drepper, What Every Programmer Should Know About Memory, http://www.akkadia.org/drepper/cpumemory.pdf, November 21, 2007.
CAVEATS
This is a non-standard, compiler-specific extension.
BSD December 22, 2010 BSD