~james-page/ubuntu/saucy/openvswitch/1.12-snapshot

« back to all changes in this revision

Viewing changes to lib/netlink-notifier.c

  • Committer: James Page
  • Date: 2013-08-21 10:16:57 UTC
  • mfrom: (1.1.20)
  • Revision ID: james.page@canonical.com-20130821101657-3o0z0qeiv5zkwlzi
New upstream snapshot

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (c) 2009, 2010, 2011, 2012 Nicira, Inc.
 
2
 * Copyright (c) 2009, 2010, 2011, 2012, 2013 Nicira, Inc.
3
3
 *
4
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
5
 * you may not use this file except in compliance with the License.
41
41
 
42
42
    /* Passed in by nln_create(). */
43
43
    int multicast_group;         /* Multicast group we listen on. */
44
 
    int protocol;                /* Protocal passed to nl_sock_create(). */
 
44
    int protocol;                /* Protocol passed to nl_sock_create(). */
45
45
    nln_parse_func *parse;       /* Message parsing function. */
46
46
    void *change;                /* Change passed to parse. */
47
47
};
115
115
        }
116
116
        if (error) {
117
117
            nl_sock_destroy(sock);
118
 
            VLOG_WARN("could not create netlink socket: %s", strerror(error));
 
118
            VLOG_WARN("could not create netlink socket: %s",
 
119
                      ovs_strerror(error));
119
120
            return NULL;
120
121
        }
121
122
        nln->notify_sock = sock;
184
185
                VLOG_WARN_RL(&rl, "netlink receive buffer overflowed");
185
186
            } else {
186
187
                VLOG_WARN_RL(&rl, "error reading netlink socket: %s",
187
 
                             strerror(error));
 
188
                             ovs_strerror(error));
188
189
            }
189
190
            nln_report(nln, NULL);
190
191
        }