Results 1 to 2 of 2
Hello There,
We are getting the below error in /var/log/messages can someone please give us a hint/guide, what is this related to and why this had occurred? Thanks in advance.
...
- 08-28-2009 #1Just Joined!
- Join Date
- Aug 2009
- Posts
- 1
Odd messages in linux... please aid.
Hello There,
We are getting the below error in /var/log/messages can someone please give us a hint/guide, what is this related to and why this had occurred? Thanks in advance.
May 6 15:31:16 l3msps03 kernel: cpu6 pid32755 <1241616676sec 620583164ns> ERROR inet_getname peer=1
May 6 15:31:16 l3msps03 kernel: cpu6 pid32755 <1241616676sec 620583164ns> ERROR getsockopt
May 6 15:31:32 l3msps03 kernel: cpu3 pid32755 <1241616692sec 826646862ns> ERROR inet_getname peer=1
May 6 15:31:32 l3msps03 kernel: cpu3 pid32755 <1241616692sec 826646862ns> ERROR getsockopt
May 6 15:31:35 l3msps03 kernel: cpu0 pid32755 <1241616694sec 991655372ns> ERROR inet_getname peer=1
May 6 15:31:35 l3msps03 kernel: cpu0 pid32755 <1241616694sec 991655372ns> ERROR getsockopt
May 6 15:41:00 l3msps04 kernel: cpu5 pid9495 <1241617260sec 877334560ns> ERROR inet_getname peer=1
May 6 15:41:00 l3msps04 kernel: cpu5 pid9495 <1241617260sec 878334568ns> ERROR getsockopt
May 6 15:41:00 l3msps04 kernel: cpu5 pid9495 <1241617260sec 880334582ns> ERROR inet_getname peer=1
May 6 15:41:00 l3msps04 kernel: cpu5 pid9495 <1241617260sec 880334582ns> ERROR getsockopt
May 6 15:41:00 l3msps04 kernel: cpu5 pid9495 <1241617260sec 882334596ns> ERROR inet_getname peer=1
May 6 15:41:00 l3msps04 kernel: cpu5 pid9495 <1241617260sec 882334596ns> ERROR getsockopt
May 6 15:44:42 l3msps04 kernel: cpu0 pid3489 <1241617482sec 192895259ns> ERROR inet_getname peer=1
May 6 15:44:42 l3msps04 kernel: cpu0 pid3489 <1241617482sec 192895259ns> ERROR getsockopt
- 08-29-2009 #2Linux Newbie
- Join Date
- Jan 2008
- Location
- Canada
- Posts
- 109
Hi
The code snippet below is where the error is coming from.
/*
674 * This does both peername and sockname.
675 */
676 int inet_getname(struct socket *sock, struct sockaddr *uaddr,
677 int *uaddr_len, int peer)
678 {
679 struct sock *sk = sock->sk;
680 struct inet_sock *inet = inet_sk(sk);
681 struct sockaddr_in *sin = (struct sockaddr_in *)uaddr;
682
683 sin->sin_family = AF_INET;
684 if (peer) {
685 if (!inet->dport ||
686 (((1 << sk->sk_state) & (TCPF_CLOSE | TCPF_SYN_SENT)) &&
687 peer == 1))
688 return -ENOTCONN;
689 sin->sin_port = inet->dport;
690 sin->sin_addr.s_addr = inet->daddr;
691 } else {
692 __be32 addr = inet->rcv_saddr;
693 if (!addr)
694 addr = inet->saddr;
695 sin->sin_port = inet->sport;
696 sin->sin_addr.s_addr = addr;
697 }
698 memset(sin->sin_zero, 0, sizeof(sin->sin_zero));
699 *uaddr_len = sizeof(*sin);
700 return 0;
701 }
It is part of the code within Linux that attempts to make a socket connection for Network related stuff. Line 687 is the peer=1 part of the error.
So something is not correct with TCP/IP part of your distro. Do you have a proper connection with your Network/Internet etc.? If so it may be a 'run time error' which may not be critical. If not you should uninstall your network related services and reinstall them. Hope this helps. Cheers...
Robert


Reply With Quote

